Problem with the position of tick labels in postscript file

Hi to all,
I'm new to Matplotlib and I noticed a problem concerning the placement of tick
labels when saving a figure to a postscript file. I'm using windows XP with
Matplotlib 0.90.0 and the default setup and backend. I also use ipython with
the -pylab option.
So, I type plot((1,2,3)) in the shell and I get a figure similar to that
presented in the user guide. Then I save it as an eps file and when I open the
resulting file (using GSVIEW) I notice that the labels on the y axis are not
properly aligned. That is, the 1.5 and 2.5 labels are almost stuck to the y
axis, while the 1.0, 2.0 and 3.0 labels are farther. Furthermore, when I add a
grid to my plot and save it to eps, I notice that the grid lines are not well
aligned with the ticks. This problem seems to occur both with ps, eps and pdf
files. Does anybody know what's the problem here?
Thank you

Maybe you could post your file? Mine looks ok, see attached.

test.eps (20.3 KB)

···

On Friday 04 May 2007 11:10:32 am Richard Vernhes wrote:

Hi to all,
I'm new to Matplotlib and I noticed a problem concerning the placement of
tick labels when saving a figure to a postscript file. I'm using windows XP
with Matplotlib 0.90.0 and the default setup and backend. I also use
ipython with the -pylab option.
So, I type plot((1,2,3)) in the shell and I get a figure similar to that
presented in the user guide. Then I save it as an eps file and when I open
the resulting file (using GSVIEW) I notice that the labels on the y axis
are not properly aligned. That is, the 1.5 and 2.5 labels are almost stuck
to the y axis, while the 1.0, 2.0 and 3.0 labels are farther. Furthermore,
when I add a grid to my plot and save it to eps, I notice that the grid
lines are not well aligned with the ticks. This problem seems to occur both
with ps, eps and pdf files. Does anybody know what's the problem here?

Darren Dale wrote:

Maybe you could post your file? Mine looks ok, see attached.

A close look at that attached file shows that the grid lines are not quite lined up with the tics -- by about a line width.

I suspect that the grid code and tic code are rounding differently or something.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Here is attached the eps file with misaligned labels and grid.
Richard

test.eps (130 KB)

Hi Richard, what exactly wrong here?
I didn't found anything...

···

On 4 May 2007, Richard Vernhes wrote:

Here is attached the eps file with misaligned labels and grid.
Richard

--
Zack

Hi, I have the same problem, I have joined examples.

http://www.nabble.com/file/p22180990/example.py example.py
http://www.nabble.com/file/p22180990/example.pdf example.pdf
http://www.nabble.com/file/p22180990/example.pdf example.pdf

Zack 24 wrote:

···

Hi Richard, what exactly wrong here?
I didn't found anything...

On 4 May 2007, Richard Vernhes wrote:

Here is attached the eps file with misaligned labels and grid.
Richard

--
Zack

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
View this message in context: http://www.nabble.com/Problem-with-the-position-of-tick-labels-in-postscript-file-tp10324639p22180990.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

I think the new version of matplotlib corrected the bug.

I have the problem with version 0.91.2, and there is no problem with the
version 0.98.3.

david.froger wrote:

···

Hi, I have the same problem, I have joined examples.

http://www.nabble.com/file/p22180990/example.py example.py
http://www.nabble.com/file/p22180990/example.pdf example.pdf
http://www.nabble.com/file/p22180990/example.pdf example.pdf

Zack 24 wrote:

Hi Richard, what exactly wrong here?
I didn't found anything...

On 4 May 2007, Richard Vernhes wrote:

Here is attached the eps file with misaligned labels and grid.
Richard

--
Zack

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
View this message in context: http://www.nabble.com/Problem-with-the-position-of-tick-labels-in-postscript-file-tp10324639p22197268.html
Sent from the matplotlib - users mailing list archive at Nabble.com.