Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56a7552

Browse files
committed
DOC: re-order the interactive backends in an opinionated way
Also add IPython magic details
1 parent 54adb36 commit 56a7552

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

tutorials/introductory/usage.py

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,6 @@ def my_plotter(ax, data1, data2, param_dict):
399399
# :term:`pdf`
400400
# :term:`svg`
401401
# ...
402-
# :term:`GDK` :term:`png` :term:`raster graphics` --
403-
# :term:`jpg` the `Gimp Drawing Kit`_ Deprecated in 2.0
404-
# :term:`tiff`
405-
# ...
406402
# ============= ============ ================================================
407403
#
408404
# And here are the user interfaces and renderer combinations supported;
@@ -413,27 +409,41 @@ def my_plotter(ax, data1, data2, param_dict):
413409
# ============ ================================================================
414410
# Backend Description
415411
# ============ ================================================================
416-
# GTKAgg Agg rendering to a :term:`GTK` 2.x canvas (requires PyGTK_ and
417-
# pycairo_ or cairocffi_; Python2 only)
412+
# Qt5Agg Agg rendering in a :term:`Qt5` canvas (requires PyQt5_). This
413+
# backend can be activated in IPython with ``%matplotlib qt5``.
414+
# ipympl Agg rendering embedded in a Jupyter widget. This can be enabled
415+
# in a Jupyter notebook with ``%matplotlib ipympl``
418416
# GTK3Agg Agg rendering to a :term:`GTK` 3.x canvas (requires PyGObject_
419417
# and pycairo_ or cairocffi_)
420-
# GTK GDK rendering to a :term:`GTK` 2.x canvas (not recommended and d
421-
# eprecated in 2.0) (requires PyGTK_ and pycairo_ or cairocffi_;
422-
# Python2 only)
423-
# GTKCairo Cairo rendering to a :term:`GTK` 2.x canvas (requires PyGTK_
424-
# and pycairo_ or cairocffi_; Python2 only)
418+
# This backend can be activated in IPython with
419+
# ``%matplotlib gtk3``.
420+
# macosx Agg rendering into a Cocoa canvas in OSX.
421+
# This backend can be activated in IPython with
422+
# ``%matplotlib osx``.
423+
# TkAgg Agg rendering to a :term:`Tk` canvas (requires TkInter_).
424+
# This backend can be activated in IPython with
425+
# ``%matplotlib tk``.
426+
# nbAgg Embed an interactive figure in a Jupyter classic notebook. This
427+
# backend can be enabled in Jupyter notebooks via
428+
# ``%matplotlib notebook``.
429+
# WebAgg On ``show()`` will start a tornado server with an interactive
430+
# figure.
425431
# GTK3Cairo Cairo rendering to a :term:`GTK` 3.x canvas (requires PyGObject_
426432
# and pycairo_ or cairocffi_)
433+
# Qt4Agg Agg rendering to a :term:`Qt4` canvas (requires PyQt4_
434+
# or ``pyside``).
435+
# This backend can be activated in IPython with
436+
# ``%matplotlib qt4``.
437+
# GTKAgg Agg rendering to a :term:`GTK` 2.x canvas (requires PyGTK_ and
438+
# pycairo_ or cairocffi_; Python2 only)
439+
# This backend can be activated in IPython with
440+
# ``%matplotlib gtk``.
441+
# GTKCairo Cairo rendering to a :term:`GTK` 2.x canvas (requires PyGTK_
442+
# and pycairo_ or cairocffi_; Python2 only)
427443
# WXAgg Agg rendering to a :term:`wxWidgets` canvas
428-
# (requires wxPython_)
429-
# WX Native :term:`wxWidgets` drawing to a :term:`wxWidgets` Canvas
430-
# (not recommended and deprecated in 2.0) (requires wxPython_)
431-
# TkAgg Agg rendering to a :term:`Tk` canvas (requires TkInter_)
432-
# Qt4Agg Agg rendering to a :term:`Qt4` canvas (requires PyQt4_ or ``pyside``)
433-
# Qt5Agg Agg rendering in a :term:`Qt5` canvas (requires PyQt5_)
434-
# macosx Cocoa rendering in OSX windows
435-
# (presently lacks blocking show() behavior when matplotlib
436-
# is in non-interactive mode)
444+
# (requires wxPython_).
445+
# This backend can be activated in IPython with
446+
# ``%matplotlib wx``.
437447
# ============ ================================================================
438448
#
439449
# .. _`Anti-Grain Geometry`: http://antigrain.com/

0 commit comments

Comments
 (0)