##// END OF EJS Templates
Rename 'paste' function to 'pastefig'.
Fernando Perez -
Show More
@@ -446,10 +446,10 b' Inline matplotlib graphics'
446
446
447 The IPython console is capable of displaying matplotlib figures inline, in SVG
447 The IPython console is capable of displaying matplotlib figures inline, in SVG
448 format. If started with the ``--pylab inline`` flag, then all figures are
448 format. If started with the ``--pylab inline`` flag, then all figures are
449 rendered inline automatically. If started with ``--pylab`` or ``--pylab
449 rendered inline automatically. If started with ``--pylab`` or ``--pylab <your
450 <your backend>``, then a GUI backend will be used, but the ``paste()`` function
450 backend>``, then a GUI backend will be used, but the ``pastefig()`` function is
451 is added to the global and ``plt`` namespaces. You can paste any figure that
451 added to the global and ``plt`` namespaces. You can paste any figure that is
452 is currently open in a window with this function; type ``paste?`` for
452 currently open in a window with this function; type ``pastefig?`` for
453 additional details."""
453 additional details."""
454
454
455 quick_guide = """\
455 quick_guide = """\
@@ -112,10 +112,10 b' def import_pylab(user_ns, backend, import_all=True, shell=None):'
112 from IPython.zmq.pylab.backend_inline import flush_svg
112 from IPython.zmq.pylab.backend_inline import flush_svg
113 shell.register_post_execute(flush_svg)
113 shell.register_post_execute(flush_svg)
114 else:
114 else:
115 from IPython.zmq.pylab.backend_inline import paste
115 from IPython.zmq.pylab.backend_inline import pastefig
116 from matplotlib import pyplot
116 from matplotlib import pyplot
117 # Add 'paste' to pyplot and to the user's namespace
117 # Add 'paste' to pyplot and to the user's namespace
118 user_ns['paste'] = pyplot.paste = paste
118 user_ns['pastefig'] = pyplot.pastefig = pastefig
119
119
120 if import_all:
120 if import_all:
121 exec("from matplotlib.pylab import *\n"
121 exec("from matplotlib.pylab import *\n"
@@ -38,8 +38,8 b' def show(close=True):'
38 show._draw_called = False
38 show._draw_called = False
39
39
40
40
41 def paste(*figs):
41 def pastefig(*figs):
42 """Paste figures into the console workspace.
42 """Paste one or more figures into the console workspace.
43
43
44 If no arguments are given, all available figures are pasted. If the
44 If no arguments are given, all available figures are pasted. If the
45 argument list contains references to invalid figures, a warning is printed
45 argument list contains references to invalid figures, a warning is printed
General Comments 0
You need to be logged in to leave comments. Login now