>
> For my current use it would be enough if savefig had an option
>         bbox = 'tight'
> so that only the area actually drawn in was written
> to file.
>
> The problem is that if you set the fig size and then
> set the axis size proportionately, you must fiddle
> with things to get a tight fit to what's actually drawn
> (including the tick labels and axis labels).

It seems that you want not only to fix the size of the axes but also
to adjust its position (and the figure size accordingly). Adjusting
the position of the axes is not straight forward but take a look at
the following tutorial (if you haven't).

http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels

Anyhow, there might not be a neat way to do this within the current
mpl framework.

On the other hand, I think it might be possible to implement
"bbox=tight" option by tweaking the figure class (or renderer) and
I'll think about it later if possible. Meanwhile, I'm afraid that
there is not much I can help.

Regards,

-JJ

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to