|
From: John H. <jdh...@ac...> - 2005-06-08 15:12:22
|
>>>>> "Nicolas" == Nicolas Girard <nic...@ne...> writes:
Nicolas> Hi all, I find ytitle() to behave quite strangely ; the
Nicolas> first link points to a figure to each left subplot of
Nicolas> which I used
Nicolas> ylabel(labl)
Nicolas> and on the figure pointed by the second link I used
Nicolas> text(-0.07,0.5,labl,verticalalignment='center',
Nicolas> rotation='vertical',transform=gca().transAxes,clip_on=False)
Nicolas> http://nicolasgirard.nerim.net/ytitle.jpg
Nicolas> http://nicolasgirard.nerim.net/text.jpg
Nicolas> from these 2 samples it seems like ytitle()'s behaviour
Nicolas> is odd, or at least not optimal. What do you think ?
Which backend are you using? It could be a backend specific bug. From
the fact that you are making jpg images, my guess is you are using GTK
or WX. Unless you have good reason not to, I would advise you to use
GTKAgg/WXAgg and output PNG. PNG is a much better format for line art
and text.
Do you see the extra horizontal space in *Agg or PS backends? Note
also that the space between the yticklabels and the ylabel is
controlled by ax.yaxis.LABELPAD, which defaults to 5 points. Also,
are you using mathtext or rc.usetex=True?
When reporting problems, it is very helpful to
1) run your script with --verbose-helpful and report the output
2) indicated any nondefault rc options (rc.usetex?)
3) attach a standalone script we can run, if possible
This will save me a lot of guessing and typing.
Thanks!
JDH
|