From 2c33e48e435e6439c0387e14f4b2e2c3856a0bb6 2011-02-19 23:38:57 From: MinRK Date: 2011-02-19 23:38:57 Subject: [PATCH] tweak default font size for inline pylab backend xlabels on 6x4 log plots with 12pt font get cut off, so use 10pt, and increase bottom pad by 25% --- diff --git a/IPython/lib/pylabtools.py b/IPython/lib/pylabtools.py index c26c06d..5a621cb 100644 --- a/IPython/lib/pylabtools.py +++ b/IPython/lib/pylabtools.py @@ -219,6 +219,10 @@ def import_pylab(user_ns, backend, import_all=True, shell=None): # The typical default figure size is too large for inline use. We # might make this a user-configurable parameter later. figsize(6.0, 4.0) + # 12pt labels get cutoff on 6x4 logplots, so use 10pt. + pyplot.rcParams['font.size'] = 10 + # 10pt still needs a little more room on the xlabel: + pyplot.rcParams['figure.subplot.bottom'] = .125 # Add 'figsize' to pyplot and to the user's namespace user_ns['figsize'] = pyplot.figsize = figsize shell.user_ns_hidden['figsize'] = figsize