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