| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + GTK and GDK backends deprecated | ||
| 2 | + ``````````````````````````````` | ||
| 3 | + The untested and broken GDK and GTK backends have been deprecated. | ||
| 4 | + These backends allows figures to be rendered via the GDK api to | ||
| 5 | + files and GTK2 figures. They are untested, known to be broken and | ||
| 6 | + use have been discouraged for some time. The `GTKAgg` and `GTKCairo` backends | ||
| 7 | + provide better and more tested ways of rendering figures to GTK2 windows. | ||
| 8 | + | ||
| 9 | + WX backend deprecated | ||
| 10 | + ````````````````````` | ||
| 11 | + The untested WX backend has been deprecated. | ||
| 12 | + This backend allows figures to be rendered via the WX api to | ||
| 13 | + files and Wx figures. It is untested, and | ||
| 14 | + use have been discouraged for some time. The `WXAgg` backend | ||
| 15 | + provides a better and more tested way of rendering figures to WX windows. | ||
| 16 | + | ||
| 17 | + CocoaAgg backend removed | ||
| 18 | + ```````````````````````` | ||
| 19 | + | ||
| 20 | + The deprecated and not fully functional CocoaAgg backend has been removed | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -370,10 +370,10 @@ renderer for user interfaces is ``Agg`` which uses the `Anti-Grain | |||
| 370 | 370 | Geometry`_ C++ library to make a raster (pixel) image of the figure. | |
| 371 | 371 | All of the user interfaces except ``macosx`` can be used with | |
| 372 | 372 | agg rendering, e.g., | |
| 373 | - ``WXAgg``, ``GTKAgg``, ``QT4Agg``, ``TkAgg``. In | ||
| 373 | + ``WXAgg``, ``GTKAgg``, ``QT4Agg``, ``QT5Agg``, ``TkAgg``. In | ||
| 374 | 374 | addition, some of the user interfaces support other rendering engines. | |
| 375 | 375 | For example, with GTK, you can also select GDK rendering (backend | |
| 376 | - ``GTK``) or Cairo rendering (backend ``GTKCairo``). | ||
| 376 | + ``GTK`` deprecated in 2.0) or Cairo rendering (backend ``GTKCairo``). | ||
| 377 | 377 | ||
| 378 | 378 | For the rendering engines, one can also distinguish between `vector | |
| 379 | 379 | <http://en.wikipedia.org/wiki/Vector_graphics>`_ or `raster | |
@@ -404,7 +404,7 @@ SVG :term:`svg` :term:`vector graphics` -- | |||
| 404 | 404 | :term:`svg` | |
| 405 | 405 | ... | |
| 406 | 406 | :term:`GDK` :term:`png` :term:`raster graphics` -- | |
| 407 | - :term:`jpg` the `Gimp Drawing Kit`_ | ||
| 407 | + :term:`jpg` the `Gimp Drawing Kit`_ Deprecated in 2.0 | ||
| 408 | 408 | :term:`tiff` | |
| 409 | 409 | ... | |
| 410 | 410 | ============= ============ ================================================ | |
@@ -421,16 +421,17 @@ GTKAgg Agg rendering to a :term:`GTK` 2.x canvas (requires PyGTK_ and | |||
| 421 | 421 | pycairo_ or cairocffi_; Python2 only) | |
| 422 | 422 | GTK3Agg Agg rendering to a :term:`GTK` 3.x canvas (requires PyGObject_ | |
| 423 | 423 | and pycairo_ or cairocffi_) | |
| 424 | - GTK GDK rendering to a :term:`GTK` 2.x canvas (not recommended) | ||
| 425 | - (requires PyGTK_ and pycairo_ or cairocffi_; Python2 only) | ||
| 424 | + GTK GDK rendering to a :term:`GTK` 2.x canvas (not recommended and d | ||
| 425 | + eprecated in 2.0) (requires PyGTK_ and pycairo_ or cairocffi_; | ||
| 426 | + Python2 only) | ||
| 426 | 427 | GTKCairo Cairo rendering to a :term:`GTK` 2.x canvas (requires PyGTK_ | |
| 427 | 428 | and pycairo_ or cairocffi_; Python2 only) | |
| 428 | 429 | GTK3Cairo Cairo rendering to a :term:`GTK` 3.x canvas (requires PyGObject_ | |
| 429 | 430 | and pycairo_ or cairocffi_) | |
| 430 | 431 | WXAgg Agg rendering to to a :term:`wxWidgets` canvas | |
| 431 | 432 | (requires wxPython_) | |
| 432 | 433 | WX Native :term:`wxWidgets` drawing to a :term:`wxWidgets` Canvas | |
| 433 | - (not recommended) (requires wxPython_) | ||
| 434 | + (not recommended and deprecated in 2.0) (requires wxPython_) | ||
| 434 | 435 | TkAgg Agg rendering to a :term:`Tk` canvas (requires TkInter_) | |
| 435 | 436 | Qt4Agg Agg rendering to a :term:`Qt4` canvas (requires PyQt4_ or ``pyside``) | |
| 436 | 437 | Qt5Agg Agg rendering in a :term:`Qt5` canvas (requires PyQt5_) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -279,7 +279,7 @@ rendering of strings with the *usetex* option. | |||
| 279 | 279 | EEG demo | |
| 280 | 280 | ========= | |
| 281 | 281 | ||
| 282 | - You can embed matplotlib into pygtk, wx, Tk, FLTK, or Qt applications. | ||
| 282 | + You can embed matplotlib into pygtk, wx, Tk, or Qt applications. | ||
| 283 | 283 | Here is a screenshot of an EEG viewer called `pbrain | |
| 284 | 284 | <http://github.com/nipy/pbrain>`__. | |
| 285 | 285 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,6 @@ directories found here: | |||
| 38 | 38 | * units - working with unit data an custom types in matplotlib | |
| 39 | 39 | ||
| 40 | 40 | * user_interfaces - using matplotlib in a GUI application, e.g., | |
| 41 | - TkInter, WXPython, pygtk, pyqt or FLTK widgets | ||
| 41 | + TkInter, WXPython, pygtk, pyqt widgets | ||
| 42 | 42 | ||
| 43 | 43 | * widgets - Examples using interactive widgets | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,6 @@ | |||
| 6 | 6 | #matplotlib.use("TkAgg") | |
| 7 | 7 | #matplotlib.use("GTKAgg") | |
| 8 | 8 | #matplotlib.use("Qt4Agg") | |
| 9 | - #matplotlib.use("CocoaAgg") | ||
| 10 | 9 | #matplotlib.use("MacOSX") | |
| 11 | 10 | import matplotlib.pyplot as plt | |
| 12 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,11 +3,9 @@ Embedding matplotlib in graphical user interfaces | |||
| 3 | 3 | ||
| 4 | 4 | You can embed matplotlib directly into a user interface application by | |
| 5 | 5 | following the embedding_in_SOMEGUI.py examples here. Currently | |
| 6 | - matplotlib supports wxpython, pygtk, tkinter, pyqt, fltk and cocoa. | ||
| 6 | + matplotlib supports wxpython, pygtk, tkinter and pyqt4/5. | ||
| 7 | 7 | ||
| 8 | 8 | When embedding matplotlib in a GUI, you must use the matplotlib API | |
| 9 | 9 | directly rather than the pylab/pyplot proceedural interface, so take a | |
| 10 | 10 | look at the examples/api directory for some example code working with | |
| 11 | 11 | the API. | |
| 12 | - | ||
| 13 | - | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments