Grid Shifting in PS backend

Hello folks,

I have a Gaussian peak centered on zero. When the plot is drawn on
screen with the GTKAgg backend, the peak is shown in the correct place.
When I either click on the disk icon and save the plot as eps or use
savefig, the peak is shifted to the left of zero by several x axis units.

I am using Python 2.5 with matplotlib 0.90.1 and numpy 1.0.3. and scipy
0.5.1 in my script. These are running on my Fedora 7 box. I compiled
and installed mpl 0.90.1 this morning because I noticed this behavior
with python-matplotlib-0.90.0 that I had installed with yum. I also see
this behavior if I run my script from the command line and from ipython
0.8.1.

When I save using PNG, the peak is in the correct place. My Mac also
saves both EPS and PNG correctly.

Any thoughts?
Dave

- –
David D. Clark
Electrical Engineer
P-23, Neutron Science and Technology
e-mail mailto:ddclark@…652…
GPG Public key 0x018D6523 available at http://pgp.mit.edu
http://www.gnupg.org has information about public key cryptography

Maybe you could post a small example that demonstrates the problem. I dont see
any reason why eps output should be different depending on your OS, unless it
is a problem with your viewer, or you are distilling your postscript output
and it is a problem with ghostscript.

Darren

···

On Thursday 25 October 2007 03:17:05 pm David D Clark wrote:

Hello folks,

I have a Gaussian peak centered on zero. When the plot is drawn on
screen with the GTKAgg backend, the peak is shown in the correct place.
When I either click on the disk icon and save the plot as eps or use
savefig, the peak is shifted to the left of zero by several x axis units.

I am using Python 2.5 with matplotlib 0.90.1 and numpy 1.0.3. and scipy
0.5.1 in my script. These are running on my Fedora 7 box. I compiled
and installed mpl 0.90.1 this morning because I noticed this behavior
with python-matplotlib-0.90.0 that I had installed with yum. I also see
this behavior if I run my script from the command line and from ipython
0.8.1.

When I save using PNG, the peak is in the correct place. My Mac also
saves both EPS and PNG correctly.

Any thoughts?