From: John H. <jd...@gm...> - 2009-06-10 15:16:36
|
On Wed, Jun 10, 2009 at 9:40 AM, Paul Anton Letnes<pau...@gm...> wrote: > Hm, I see. Thanks for an informative answer. I'll dig into my rcParams > and matplotlibrc then... That is worth doing, but you needn't change the defaults. You can also pass in the arguments explicitly: fig = plt.figure((3,3)) fig.subplots_adjust(left=0.2, bottom=0.2) ax = fig.add_subplot(111) ax.plot(something) ax.set_xlabel('test', fontsize=10) for label in ax.get_xticklabels() + ax.get_yticklabels(): label.set_fontsize(8) plt.show() If you do want to change the defaults via matplotlibrc, though, something to bear in mind is that you can have "per-directory" rc files. So for example if you want your defaults to be changed for a figures for publication, you can drop an rc file into the scripts directory for that publication, and that will be used for that directory only and will not affect the global defaults in ~/.matplotlib/matplotlibrc. See http://matplotlib.sourceforge.net/users/customizing.html JDH |