bounding box in eps export -> change in release 0.8

Hi,

I realized a change in the behavior of the eps export with the release 0.8. Sometimes (not always!) the bounding box on the left side is very close to the ylabel. When converting this to a pdf and printing it, this results in a (partially or even totally) cutted ylabel on your printout...

Greetings,
Sascha

Hi Sascha,

I can't think of anything that has changed that would cause this. But if you
could be a little more specific about the conditions causing the behavior,
I'll look into it. Posting a short script that reproduces the problem would
be helpful.

Thanks,
Darren

···

On Friday 15 April 2005 5:32 am, Sascha Schnepp wrote:

Hi,

I realized a change in the behavior of the eps export with the release 0.8.
Sometimes (not always!) the bounding box on the left side is very close to
the ylabel. When converting this to a pdf and printing it, this results in
a (partially or even totally) cutted ylabel on your printout...

Greetings,
Sascha

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Darren S. Dale

Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850

dd55@...163...

The script at the end of this message will reproduce the behavior Sasha
reported.

Sasha, the short answer is to try replacing your call pl=subplot(111) with
pl = axes([0.16,0.11,0.8,0.8]).

The problem is that MPL will not be able to guess the appropriate position of
the axes in every circumstance, because the precision of the tick labels is
allowed to go as far as 3 or 4 places, and the presence scientific notation
will also push the axis label off the page.

I did some work on a new formatter a while back, and think it would help to
solve this issue more generally. The idea was to pull the scientific notation
out of the ticklabels, and render it at the top of the axis, like Matlab
does. Another place to render could be in the axis label, like Igor allows.
It might also be appropriate to add a new rc setting for the tick precision:
the number of sigfigs to include in a ticklabel. MPL would then be able to
intelligently place the axis in the plot window, based on the rc settings for
fontsize of the axis labels, the fontsize of the ticklabels, and the
precision.

from pylab import *

a=arange(-1,1,.01)

plot(a,a*1e-4)
xlabel('X axis')
ylabel('Y axis')
savefig('test.eps')
show()

···

On Friday 15 April 2005 5:32 am, Sascha Schnepp wrote:

I realized a change in the behavior of the eps export with the release 0.8.
Sometimes (not always!) the bounding box on the left side is very close to
the ylabel. When converting this to a pdf and printing it, this results in
a (partially or even totally) cutted ylabel on your printout...

--
Darren S. Dale

Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850

dd55@...163...