##// END OF EJS Templates
remove pylab from notebook doc
MinRK -
Show More
@@ -477,26 +477,7 b' setup for IPython to work correctly hand in hand with ``matplotlib``; it does'
477 477 *not*, however, actually execute any Python ``import`` commands, that is, no
478 478 names are added to the namespace.
479 479
480 For more agile *interactive* use of the notebook space, an alternative magic,
481 ``%pylab``, is provided. This does the same work as the ``%matplotlib`` magic,
482 but *in addition* it automatically executes a standard sequence of ``import``
483 statements required to work with the ``%matplotlib`` library, importing the
484 following names into the namespace:
485
486 ``numpy`` as ``np``; ``matplotlib.pyplot`` as ``plt``;
487 ``matplotlib``, ``pylab`` and ``mlab`` from ``matplotlib``; and *all names*
488 from within ``numpy`` and ``pylab``.
489
490 However, the use of ``%pylab`` is discouraged, since names coming from
491 different packages may collide. In general, the use of ``from package import
492 *`` is discouraged. A better option is then::
493
494 %pylab --no-import-all
495
496 which imports the names listed above, but does *not* perform this
497 ``import *`` imports.
498
499 If the ``%matplotlib`` or ``%pylab` magics are called without an argument, the
480 If the ``%matplotlib`` magic is called without an argument, the
500 481 output of a plotting command is displayed using the default ``matplotlib``
501 482 backend in a separate window. Alternatively, the backend can be explicitly
502 483 requested using, for example::
@@ -504,7 +485,7 b' requested using, for example::'
504 485 %matplotlib gtk
505 486
506 487 A particularly interesting backend is the ``inline`` backend.
507 This is applicable only for the IPython Notebook and the IPython Qtconsole.
488 This is applicable only for the IPython Notebook and the IPython QtConsole.
508 489 It can be invoked as follows::
509 490
510 491 %matplotlib inline
General Comments 0
You need to be logged in to leave comments. Login now