FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Deprecations and housecleaning by mdboom · Pull Request #2026 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Prev Previous commit
Next Next commit
Remove deprecated code
  • Loading branch information
mdboom committed May 20, 2013
commit 84ffb605d4dd06de0dc7eebb2605a35596c9e092
46 changes: 46 additions & 0 deletions doc/api/api_changes.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,52 @@ For new features that were added to matplotlib, please see
Changes in 1.3.x
================

* The following items that were deprecated in version 1.2 or earlier
have now been removed completely. Use the following mapping to
update your code:

- The Qt 3.x backends (`qt` and `qtagg`) have been removed in
favor of the Qt 4.x backends (`qt4` and `qt4agg`).

- The `matplotlib.nxutils` module has been removed. Use the
functionality on `matplotlib.path.Path.contains_point` and
friends instead.

- Instead of `axes.Axes.get_frame`, use `axes.Axes.patch`.

- The following `kwargs` to the `legend` function have been
renamed:

- `pad` -> `borderpad`
- `labelsep` -> `labelspacing`
- `handlelen` -> `handlelength`
- `handletextsep` -> `handletextpad`
- `axespad` -> `borderaxespad`

Related to this, the following rcParams have been removed:

- `legend.pad`, `legend.labelsep`, `legend.handlelen`,
`legend.handletextsep` and `legend.axespad`

- For the `hist` function, instead of `width`, use `rwidth`
(relative width).

- On `patches.Circle`, the `resolution` kwarg has been removed.
For a circle made up of line segments, use
`patches.CirclePolygon`.

- The printing functions in the Wx backend have been removed due
to the burden of keeping them up-to-date.

- `mlab.liaupunov` has been removed.

- `mlab.save`, `mlab.load`, `pylab.save` and `pylab.load` have
been removed. We recommend using `numpy.savetxt` and
`numpy.loadtxt` instead.

- `widgets.HorizontalSpanSelector` has been removed. Use
`widgets.SpanSelector` instead.

* The top-level functions in `matplotlib.path` that are implemented in
C++ were never meant to be public. Instead, users should use the
Pythonic wrappers for them in the `path.Path` and
Expand Down
5 changes: 1 addition & 4 deletions doc/faq/usage_faq.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ 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, qt, macosx, or fltk; also
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").
Expand Down Expand Up @@ -266,8 +266,6 @@ WXAgg Agg rendering to to a :term:`wxWidgets` canvas
WX Native :term:`wxWidgets` drawing to a :term:`wxWidgets` Canvas
(not recommended) (requires wxPython_)
TkAgg Agg rendering to a :term:`Tk` canvas (requires TkInter_)
QtAgg Agg rendering to a :term:`Qt` canvas (requires PyQt_)
(deprecated; use Qt4Agg)
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
Expand All @@ -288,7 +286,6 @@ macosx Cocoa rendering in OSX windows
.. _pycairo: http://www.cairographics.org/pycairo/
.. _wxPython: http://www.wxpython.org/
.. _TkInter: http://wiki.python.org/moin/TkInter
.. _PyQt: http://www.riverbankcomputing.co.uk/software/pyqt/intro
.. _PyQt4: http://www.riverbankcomputing.co.uk/software/pyqt/intro
.. _pyFLTK: http://pyfltk.sourceforge.net

Expand Down
2 changes: 1 addition & 1 deletion doc/users/screenshots.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 Qt
You can embed matplotlib into pygtk, wxpython, Tk, FLTK 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
66 changes: 0 additions & 66 deletions examples/animation/old_animation/animation_blit_qt.py

This file was deleted.

1 change: 0 additions & 1 deletion examples/event_handling/pipong.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ def key_press(self,event):

if event.key == 'g':
#self.ax.clear()
#self.ax.grid() # seems to be necessary for qt backend
self.on = not self.on
if event.key == 't':
self.inst = not self.inst
Expand Down
40 changes: 0 additions & 40 deletions examples/event_handling/pong_qt.py

This file was deleted.

1 change: 0 additions & 1 deletion examples/event_handling/test_mouseclicks.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#matplotlib.use("WxAgg")
#matplotlib.use("TkAgg")
#matplotlib.use("GTKAgg")
#matplotlib.use("QtAgg")
#matplotlib.use("Qt4Agg")
#matplotlib.use("CocoaAgg")
#matplotlib.use("MacOSX")
Expand Down
137 changes: 0 additions & 137 deletions examples/user_interfaces/embedding_in_qt.py

This file was deleted.

5 changes: 0 additions & 5 deletions lib/matplotlib/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,6 @@ def matplotlib_fname():
}

_deprecated_ignore_map = {
'legend.pad' : 'legend.borderpad',
'legend.labelsep' : 'legend.labelspacing',
'legend.handlelen' : 'legend.handlelength',
'legend.handletextsep' : 'legend.handletextpad',
'legend.axespad' : 'legend.borderaxespad',
}


Expand Down
10 changes: 0 additions & 10 deletions lib/matplotlib/axes.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1366,11 +1366,6 @@ def axis(self, *v, **kwargs):

return v

def get_frame(self):
"""Return the axes Rectangle frame"""
warnings.warn('use ax.patch instead', mplDeprecation)
return self.patch

def get_legend(self):
"""
Return the legend.Legend instance, or None if no legend is defined
Expand Down Expand Up @@ -8209,11 +8204,6 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
raise ValueError(
"orientation kwarg %s is not recognized" % orientation)

if kwargs.get('width') is not None:
raise mplDeprecation(
'hist now uses the rwidth to give relative width '
'and not absolute width')

if histtype == 'barstacked' and not stacked:
stacked = True

Expand Down
Loading

Back | FazBrowse Home | New Git URL