hello list,
I'm having quite a big number of subplots all together inside of the same figure, which pushes me to reduce the font size quite a lot to avoid overlap.
I've been able to set quite everything, except of the ytickslabels:
sp = fig.add_subplot(611, xlim=(10, 100))
sp.set_title(my_title, fontsize='small')
sp.set_xticklabels(('10', '15', '20', '30', '45', '60', '75', '90'), fontsize='small')
sp.set_xticks(X)
sp.set_ylabel('Y', fontsize='small')
#sp.set_yticklabels(sp.get_yticklabels(), fontsize='small')
sp.plot(X, Y, "b--")
unfortunately I can't set yticklabes without passing the labels as well, which i'd like to avoid as it really much depends on the data and the subplot. I'm happy with matplotlib calculating the yticklabels the way it does, i just would like to have control over their fonts size.
Any idea?
···
--
Claudio Martella
claudio.martella@...3890...
I always taylor a matplotlibrc file for a given project, but you can
modify the rc parameters on the fly:
http://matplotlib.sourceforge.net/users/customizing.html#dynamic-rc-settings
You need to set themodified rc parameters at the top of your script.
Hope that helps.
-paul
···
On Wed, Jan 25, 2012 at 4:29 AM, Martella, C. <claudio.martella@...3890...> wrote:
hello list,
I'm having quite a big number of subplots all together inside of the same figure, which pushes me to reduce the font size quite a lot to avoid overlap.
I've been able to set quite everything, except of the ytickslabels:
sp = fig.add_subplot(611, xlim=(10, 100))
sp.set_title(my_title, fontsize='small')
sp.set_xticklabels(('10', '15', '20', '30', '45', '60', '75', '90'), fontsize='small')
sp.set_xticks(X)
sp.set_ylabel('Y', fontsize='small')
#sp.set_yticklabels(sp.get_yticklabels(), fontsize='small')
sp.plot(X, Y, "b--")
unfortunately I can't set yticklabes without passing the labels as well, which i'd like to avoid as it really much depends on the data and the subplot. I'm happy with matplotlib calculating the yticklabels the way it does, i just would like to have control over their fonts size.
Any idea?
--
Claudio Martella
claudio.martella@...3890...
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options