Skip to content

Commit

Permalink
Remove the Fltk backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed May 20, 2013
1 parent c933a62 commit e955a74
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 740 deletions.
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
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 comments on commit e955a74

Please sign in to comment.