Hi,
I'm new to pylab, and I find it very usefull. I want to know how is possibile to change font properties in legend (I particular fontsize): I tried adding "prop = FontProperties("smaller")" in legend(), but this give me an error... maybe I'm wrong...
Thanks, Alex.
Alex Rada wrote:
Hi,
I'm new to pylab, and I find it very usefull. I want to know how is possibile to change font properties in legend (I particular fontsize): I tried adding "prop = FontProperties("smaller")" in legend(), but this give me an error... maybe I'm wrong...
Try:
prop = FontProperties( size="smaller" )
From font_manager.py:
size - Either an absolute value of xx-small, x-small, small,
medium, large, x-large, xx-large; or a relative value
of smaller or larger; or an absolute font size, e.g. 12;
or scalable.
Robert
Hi everyone
Does anyone know how to asign different patches in
legend when plotting 2 or more histograms in the same
figure.
I've tried:
legend((patches1,patches2),(hist1,hist2)) ,
but this gives the same patches in the legend inset.
Kristen
ยทยทยท
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo