Skip to content

Commit

Permalink
Rename 'paste' function to 'pastefig'.
Browse files Browse the repository at this point in the history
  • Loading branch information
fperez committed Sep 16, 2010
1 parent 81969d9 commit a5b7d26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions IPython/core/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@
The IPython console is capable of displaying matplotlib figures inline, in SVG
format. If started with the ``--pylab inline`` flag, then all figures are
rendered inline automatically. If started with ``--pylab`` or ``--pylab
<your backend>``, then a GUI backend will be used, but the ``paste()`` function
is added to the global and ``plt`` namespaces. You can paste any figure that
is currently open in a window with this function; type ``paste?`` for
rendered inline automatically. If started with ``--pylab`` or ``--pylab <your
backend>``, then a GUI backend will be used, but the ``pastefig()`` function is
added to the global and ``plt`` namespaces. You can paste any figure that is
currently open in a window with this function; type ``pastefig?`` for
additional details."""

quick_guide = """\
Expand Down
4 changes: 2 additions & 2 deletions IPython/lib/pylabtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def import_pylab(user_ns, backend, import_all=True, shell=None):
from IPython.zmq.pylab.backend_inline import flush_svg
shell.register_post_execute(flush_svg)
else:
from IPython.zmq.pylab.backend_inline import paste
from IPython.zmq.pylab.backend_inline import pastefig
from matplotlib import pyplot
# Add 'paste' to pyplot and to the user's namespace
user_ns['paste'] = pyplot.paste = paste
user_ns['pastefig'] = pyplot.pastefig = pastefig

if import_all:
exec("from matplotlib.pylab import *\n"
Expand Down
4 changes: 2 additions & 2 deletions IPython/zmq/pylab/backend_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def show(close=True):
show._draw_called = False


def paste(*figs):
"""Paste figures into the console workspace.
def pastefig(*figs):
"""Paste one or more figures into the console workspace.
If no arguments are given, all available figures are pasted. If the
argument list contains references to invalid figures, a warning is printed
Expand Down

0 comments on commit a5b7d26

Please sign in to comment.