##// END OF EJS Templates
tweak default font size for inline pylab backend...
MinRK -
Show More
@@ -219,6 +219,10 b' def import_pylab(user_ns, backend, import_all=True, shell=None):'
219 # The typical default figure size is too large for inline use. We
219 # The typical default figure size is too large for inline use. We
220 # might make this a user-configurable parameter later.
220 # might make this a user-configurable parameter later.
221 figsize(6.0, 4.0)
221 figsize(6.0, 4.0)
222 # 12pt labels get cutoff on 6x4 logplots, so use 10pt.
223 pyplot.rcParams['font.size'] = 10
224 # 10pt still needs a little more room on the xlabel:
225 pyplot.rcParams['figure.subplot.bottom'] = .125
222 # Add 'figsize' to pyplot and to the user's namespace
226 # Add 'figsize' to pyplot and to the user's namespace
223 user_ns['figsize'] = pyplot.figsize = figsize
227 user_ns['figsize'] = pyplot.figsize = figsize
224 shell.user_ns_hidden['figsize'] = figsize
228 shell.user_ns_hidden['figsize'] = figsize
General Comments 0
You need to be logged in to leave comments. Login now