From: Sandro T. <mo...@de...> - 2009-03-03 21:46:19
|
Hi Eric, thanks for the reply. On Sat, Feb 28, 2009 at 20:56, Eric Firing <ef...@ha...> wrote: > It is not really a bug; it is an inherent limitation in mpl's default > automatic Axes positioning. Axes positions are given in normalized > coordinates relative to the figure, so if you shrink the height of the > figure (relative to the default, for which the default positioning > parameters are designed), there is less physical space available for the > x-axis ticks, ticklabels, and label--and things can get cut off. If you are > adjusting the figsize and/or the font size, then chances are you need to > adjust these normalized coordinate Axes position parameters as well. Trial Oh, ok, now it's clear > and error is typically needed; it can be facilitated by using the subplot > adjuster widget in an interactive window (second to last button on the > toolbar) to decide what looks good. Then use the figure.subplot.* entries Yeah, I used this to find 0.13 to be my number... > in matplotlibrc, or call plt.subplots_adjust(bottom=0.15) (for example), or > call it as a method of the figure you have just created. ...that I added this command and it worked. > For doing the interactive adjustment, you will want to use a smaller figure > dpi, something to match your screen. Everything will scale correctly when > you save the figure at higher dpi. luckily, even at dpi=300, the image still fits my screen :) Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |