8000 Deprecations and housecleaning by mdboom · Pull Request #2026 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Deprecations and housecleaning #2026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 21, 2013
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove the Fltk backend
  • Loading branch information
mdboom committed May 20, 2013
commit e955a740f68024ee1a0b564754e4b190925549f5
15 changes: 5 additions & 10 deletions doc/faq/usage_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,11 @@ others in web application servers to dynamically serve up graphs.
To support all of these use cases, matplotlib can target different
outputs, and each of these capabilities is called a backend; the
"frontend" is the user facing code, ie the plotting code, whereas the
"backend" does all the hard work behind-the-scenes to make the
figure. There are two types of backends: user interface backends (for
use in pygtk, wxpython, tkinter, qt4, macosx, or fltk; also
referred to as "interactive backends") and hardcopy backends to
make image files (PNG, SVG, PDF, PS; also referred to as "non-interactive
backends").
"backend" does all the hard work behind-the-scenes to make the figure.
There are two types of backends: user interface backends (for use in
pygtk, wxpython, tkinter, qt4, or macosx; also referred to as
"interactive backends") and hardcopy backends to make image files
(PNG, SVG, PDF, PS; also referred to as "non-interactive backends").

There are a two primary ways to configure your backend. One is to set
the ``backend`` parameter in your ``matplotlibrc`` file (see
Expand Down Expand Up @@ -267,9 +266,6 @@ WX Native :term:`wxWidgets` drawing to a :term:`wxWidgets` Canvas
(not recommended) (requires wxPython_)
TkAgg Agg rendering to a :term:`Tk` canvas (requires TkInter_)
Qt4Agg Agg rendering to a :term:`Qt4` canvas (requires PyQt4_)
FLTKAgg Agg rendering to a :term:`FLTK` canvas (requires pyFLTK_)
(not widely used; consider TKAgg, GTKAgg, WXAgg, or
QT4Agg instead)
macosx Cocoa rendering in OSX windows
(presently lacks blocking show() behavior when matplotlib
is in non-interactive mode)
Expand All @@ -287,7 +283,6 @@ macosx Cocoa rendering in OSX windows
.. _wxPython: http://www.wxpython.org/
.. _TkInter: http://wiki.python.org/moin/TkInter
.. _PyQt4: http://www.riverbankcomputing.co.uk/software/pyqt/intro
.. _pyFLTK: http://pyfltk.sourceforge.net



Expand Down
9 changes: 0 additions & 9 deletions doc/glossary/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ Glossary
EPS
Encapsulated Postscript (`EPS <http://en.wikipedia.org/wiki/Encapsulated_PostScript>`_)

FLTK
`FLTK <http://www.fltk.org/>`_ (pronounced "fulltick") is a cross-platform C++ GUI toolkit for
UNIX/Linux (X11), Microsoft Windows, and MacOS X

freetype
`freetype <http://www.freetype.org/>`_ is a font rasterization
library used by matplotlib which supports TrueType, Type 1, and
Expand Down Expand Up @@ -68,11 +64,6 @@ Glossary
channel. PDF was designed in part as a next-generation document
format to replace postscript

pyfltk
`pyfltk <http://pyfltk.sourceforge.net/>`_ provides python
wrappers for the :term:`FLTK` widgets library for use with
FLTKAgg

pygtk
`pygtk <http://www.pygtk.org/>`_ provides python wrappers for
the :term:`GTK` widgets library for use with the GTK or GTKAgg
Expand Down
26 changes: 13 additions & 13 deletions doc/users/event_handling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
Event handling and picking
**************************

matplotlib works with 6 user interface toolkits (wxpython, tkinter,
qt, gtk, fltk and macosx) and in order to support features like interactive
panning and zooming of figures, it is helpful to the developers to
have an API for interacting with the figure via key presses and mouse
movements that is "GUI neutral" so we don't have to repeat a lot of
code across the different user interfaces. Although the event
handling API is GUI neutral, it is based on the GTK model, which was
the first user interface matplotlib supported. The events that are
triggered are also a bit richer vis-a-vis matplotlib than standard GUI
events, including information like which :class:`matplotlib.axes.Axes`
the event occurred in. The events also understand the matplotlib
coordinate system, and report event locations in both pixel and data
coordinates.
matplotlib works with a number of user interface toolkits (wxpython,
tkinter, qt4, gtk, and macosx) and in order to support features like
interactive panning and zooming of figures, it is helpful to the
developers to have an API for interacting with the figure via key
presses and mouse movements that is "GUI neutral" so we don't have to
repeat a lot of code across the different user interfaces. Although
the event handling API is GUI neutral, it is based on the GTK model,
which was the first user interface matplotlib supported. The events
that are triggered are also a bit richer vis-a-vis matplotlib than
standard GUI events, including information like which
:class:`matplotlib.axes.Axes` the event occurred in. The events also
understand the matplotlib coordinate system, and report event
locations in both pixel and data coordinates.

.. _event-connections:

Expand Down
2 changes: 1 addition & 1 deletion doc/users/screenshots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ rendering of strings with the *usetex* option.
EEG demo
=========

You can embed matplotlib into pygtk, wxpython, Tk, FLTK or Qt4
You can embed matplotlib into pygtk, wxpython, Tk, or Qt4
applications. Here is a screenshot of an eeg viewer called pbrain
which is part of the NeuroImaging in Python suite `NIPY
<http://neuroimaging.scipy.org>`_. Pbrain is written in pygtk using
Expand Down
10 changes: 10 additions & 0 deletions doc/users/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ revision, see the :ref:`github-stats`.

new in matplotlib-1.3
=====================

Housecleaning
-------------

A number of features that were deprecated in 1.2 or earlier, or have
not been in a working state for a long time have been removed.
Highlights in include removing the Qt version 3 backends, and the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete "in".

FltkAgg and Emf backends. See :ref:`changes_in_1_3` for a complete
list.

`xkcd`-style sketch plotting
----------------------------

Expand Down
55 changes: 0 additions & 55 deletions examples/animation/old_animation/animation_blit_fltk.py

This file was deleted.

5 changes: 1 addition & 4 deletions examples/misc/rc_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class PatchRC(traits.HasTraits):
antialiased = flexible_true_trait

timezones = 'UTC', 'US/Central', 'ES/Eastern' # fixme: and many more
backends = ('GTKAgg', 'Cairo', 'FltkAgg', 'GDK', 'GTK', 'Agg',
backends = ('GTKAgg', 'Cairo', 'GDK', 'GTK', 'Agg',
'GTKCairo', 'PS', 'SVG', 'Template', 'TkAgg',
'WX')

Expand Down Expand Up @@ -192,6 +192,3 @@ def __init__(self,
print()
print('Patch')
p.print_traits()



Loading
0