Show More
@@ -218,7 +218,7 b' def import_pylab(user_ns, backend, import_all=True, shell=None):' | |||||
218 | shell.register_post_execute(flush_svg) |
|
218 | shell.register_post_execute(flush_svg) | |
219 | # The typical default figure size is too large for inline use, |
|
219 | # The typical default figure size is too large for inline use, | |
220 | # so we shrink the figure size to 6x4, and tweak fonts to |
|
220 | # so we shrink the figure size to 6x4, and tweak fonts to | |
221 | # make that fit. This is configurable via Global.inline_rc, |
|
221 | # make that fit. This is configurable via Global.pylab_inline_rc, | |
222 | # or rather it will be once the zmq kernel is hooked up to |
|
222 | # or rather it will be once the zmq kernel is hooked up to | |
223 | # the config system. |
|
223 | # the config system. | |
224 |
|
224 | |||
@@ -229,9 +229,9 b' def import_pylab(user_ns, backend, import_all=True, shell=None):' | |||||
229 | # 10pt still needs a little more room on the xlabel: |
|
229 | # 10pt still needs a little more room on the xlabel: | |
230 | 'figure.subplot.bottom' : .125 |
|
230 | 'figure.subplot.bottom' : .125 | |
231 | } |
|
231 | } | |
232 | rc = getattr(shell.config.Global, 'inline_rc', default_rc) |
|
232 | rc = getattr(shell.config.Global, 'pylab_inline_rc', default_rc) | |
233 | pyplot.rcParams.update(rc) |
|
233 | pyplot.rcParams.update(rc) | |
234 | shell.config.Global.inline_rc = rc |
|
234 | shell.config.Global.pylab_inline_rc = rc | |
235 |
|
235 | |||
236 | # Add 'figsize' to pyplot and to the user's namespace |
|
236 | # Add 'figsize' to pyplot and to the user's namespace | |
237 | user_ns['figsize'] = pyplot.figsize = figsize |
|
237 | user_ns['figsize'] = pyplot.figsize = figsize |
General Comments 0
You need to be logged in to leave comments.
Login now