Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-28 Thread Jenna L.
That looks fine to me too, but if you plot that as one subplot in a 5x5 array of subplots or more, then you can see the shift I am talking about in the eps file. Example: import matplotlib.pyplot as plt import numpy as np arr = np.zeros((11, 11), dtype=d) arr[3,3]=1 plt.figure(1)

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-28 Thread Jae-Joon Lee
On Thu, Jul 29, 2010 at 1:17 AM, Jenna L. je...@astro.columbia.edu wrote: That looks fine to me too, but if you plot that as one subplot in a 5x5 array of subplots or more, then you can see the shift I am talking about in the eps file.  Example: I still don't see it (a capture of my eps output

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-28 Thread Jenna L.
Hmm that is not what my output looks like. Attached is a capture of my output. I am using matplotlib version 0.98.5.3 http://old.nabble.com/file/p29291928/shift_subplot_test.png shift_subplot_test.png Jae-Joon Lee wrote: On Thu, Jul 29, 2010 at 1:17 AM, Jenna L.

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-27 Thread Jae-Joon Lee
I tried a simple array (see the code below) but cannot reproduce the problem you reported. import matplotlib.pyplot as plt import numpy as np arr = np.zeros((11, 11), dtype=d) arr[3,3]=1 im = plt.imshow(arr, interpolation=nearest, origin=lower) cont = plt.contour(arr, levels=[0.5])

Re: [Matplotlib-users] Saving as eps file shifts image?

2010-07-22 Thread Benjamin Root
On Wed, Jul 21, 2010 at 3:40 PM, Jenna Lemonias je...@astro.columbia.eduwrote: I am trying to save a matplotlib 2d array image with an overlaid contour as an eps file. The contour appears to be shifted with respect to the image underneath in the eps file, particularly when I zoom in on the