Skip to content

Commit e955a74

Browse files
committed
Remove the Fltk backend
1 parent c933a62 commit e955a74

File tree

10 files changed

+33
-740
lines changed

10 files changed

+33
-740
lines changed

doc/faq/usage_faq.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,11 @@ others in web application servers to dynamically serve up graphs.
164164
To support all of these use cases, matplotlib can target different
165165
outputs, and each of these capabilities is called a backend; the
166166
"frontend" is the user facing code, ie the plotting code, whereas the
167-
"backend" does all the hard work behind-the-scenes to make the
168-
figure. There are two types of backends: user interface backends (for
169-
use in pygtk, wxpython, tkinter, qt4, macosx, or fltk; also
170-
referred to as "interactive backends") and hardcopy backends to
171-
make image files (PNG, SVG, PDF, PS; also referred to as "non-interactive
172-
backends").
167+
"backend" does all the hard work behind-the-scenes to make the figure.
168+
There are two types of backends: user interface backends (for use in
169+
pygtk, wxpython, tkinter, qt4, or macosx; also referred to as
170+
"interactive backends") and hardcopy backends to make image files
171+
(PNG, SVG, PDF, PS; also referred to as "non-interactive backends").
173172

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

292287

293288

doc/glossary/index.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ Glossary
2222
EPS
2323
Encapsulated Postscript (`EPS <http://en.wikipedia.org/wiki/Encapsulated_PostScript>`_)
2424

25-
FLTK
26-
`FLTK <http://www.fltk.org/>`_ (pronounced "fulltick") is a cross-platform C++ GUI toolkit for
27-
UNIX/Linux (X11), Microsoft Windows, and MacOS X
28-
2925
freetype
3026
`freetype <http://www.freetype.org/>`_ is a font rasterization
3127
library used by matplotlib which supports TrueType, Type 1, and
@@ -68,11 +64,6 @@ Glossary
6864
channel. PDF was designed in part as a next-generation document
6965
format to replace postscript
7066

71-
pyfltk
72-
`pyfltk <http://pyfltk.sourceforge.net/>`_ provides python
73-
wrappers for the :term:`FLTK` widgets library for use with
74-
FLTKAgg
75-
7667
pygtk
7768
`pygtk <http://www.pygtk.org/>`_ provides python wrappers for
7869
the :term:`GTK` widgets library for use with the GTK or GTKAgg

doc/users/event_handling.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
Event handling and picking
55
**************************
66

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

2121
.. _event-connections:
2222

doc/users/screenshots.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ rendering of strings with the *usetex* option.
265265
EEG demo
266266
=========
267267

268-
You can embed matplotlib into pygtk, wxpython, Tk, FLTK or Qt4
268+
You can embed matplotlib into pygtk, wxpython, Tk, or Qt4
269269
applications. Here is a screenshot of an eeg viewer called pbrain
270270
which is part of the NeuroImaging in Python suite `NIPY
271271
<http://neuroimaging.scipy.org>`_. Pbrain is written in pygtk using

doc/users/whats_new.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ revision, see the :ref:`github-stats`.
2121

2222
new in matplotlib-1.3
2323
=====================
24+
25+
Housecleaning
26+
-------------
27+
28+
A number of features that were deprecated in 1.2 or earlier, or have
29+
not been in a working state for a long time have been removed.
30+
Highlights in include removing the Qt version 3 backends, and the
31+
FltkAgg and Emf backends. See :ref:`changes_in_1_3` for a complete
32+
list.
33+
2434
`xkcd`-style sketch plotting
2535
----------------------------
2636

examples/animation/old_animation/animation_blit_fltk.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

examples/misc/rc_traits.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class PatchRC(traits.HasTraits):
127127
antialiased = flexible_true_trait
128128

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

@@ -192,6 +192,3 @@ def __init__(self,
192192
print()
193193
print('Patch')
194194
p.print_traits()
195-
196-
197-

0 commit comments

Comments
 (0)