SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Claudio <cla...@ac...> - 2007年04月30日 08:45:09
Hello.
I'm writing for a question about the bar() object. My problem is that I
have to write long labels to the ticks to indicate the bins' meaning but
they are overlapping one onto another. Is there any way i can handle the
size (without having to actually modify the whole system through config
file)? I paste the code I'm using:
ind = arange(len(colors.keys()))
bar(ind, colorpie, width=0.8)
grid(True)
ylabel('good categorizations')
xticks(ind, colors.keys())
savefig(results+'cate_pie.eps')
TIA
claudio martella
-- 
Claudio Martella
cla...@ac...
MSN: cla...@ho...
SKYPE: thefly_pd
From: <jk...@ik...> - 2007年04月30日 08:57:38
Claudio <cla...@ac...> writes:
> Is there any way i can handle the size (without having to actually
> modify the whole system through config file)?
Yes, the size keyword:
> xticks(ind, colors.keys())
xticks(ind, colors.keys(), size='smaller')
The possible values of size are listed at
http://matplotlib.sourceforge.net/fonts.html
(see font.size).
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /