Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 06240a1

Browse files
committed
Remove API deprecated in 3.1
1 parent aa18f5a commit 06240a1

26 files changed

+86
-1022
lines changed

doc/api/next_api_changes/removals.rst

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,70 @@
11
Removals
22
--------
3+
The following deprecated APIs have been removed:
4+
5+
Classes and methods
6+
~~~~~~~~~~~~~~~~~~~
7+
- ``backend_bases.RendererBase.strip_math()``
8+
(use ``cbook.strip_math()`` instead)
9+
10+
- ``backend_wx.debug_on_error()`` (no replacement)
11+
- ``backend_wx.raise_msg_to_str()`` (no replacement)
12+
- ``backend_wx.fake_stderr`` (no replacement)
13+
- ``backend_wx.MenuButtonWx`` (no replacement)
14+
- ``backend_wx.PrintoutWx`` (no replacement)
15+
- ``_backend_tk.NavigationToolbar2Tk.set_active()`` (no replacement)
16+
17+
- ``backend_ps.PsBackendHelper.gs_exe`` property (no replacement)
18+
- ``backend_ps.PsBackendHelper.gs_version`` property (no replacement)
19+
- ``backend_ps.PsBackendHelper.supports_ps2write`` property (no replacement)
20+
- ``backend_ps.RendererPS.afmfontd`` property (no replacement)
21+
- ``backend_ps.GraphicsContextPS.shouldstroke`` property (no replacement)
22+
23+
- ``backend_gtk3.FileChooserDialog`` (no replacement)
24+
- ``backend_gtk3.SaveFigureGTK3.get_filechooser()`` (no replacement)
25+
- ``backend_gtk3.NavigationToolbar2GTK3.get_filechooser()`` (no replacement)
26+
27+
- ``backend_gtk3cairo.FigureManagerGTK3Cairo``
28+
(use ``backend_gtk3.FigureManagerGTK3`` instead)
29+
30+
- ``backend_pdf.RendererPdf.afm_font_cache`` property (no replacement)
31+
32+
- ``backend_pgf.LatexManagerFactory`` (no replacement)
33+
34+
- ``backend_qt5.NavigationToolbar2QT.buttons`` property (no replacement)
35+
- ``backend_qt5.NavigationToolbar2QT.adj_window`` property (no replacement)
36+
37+
- ``matplotlib.checkdep_dvipng`` (no replacement)
38+
- ``matplotlib.checkdep_ghostscript`` (no replacement)
39+
- ``matplotlib.checkdep_pdftops`` (no replacement)
40+
- ``matplotlib.checkdep_inkscape`` (no replacement)
41+
- ``matplotlib.get_py2exe_datafiles`` (no replacement)
42+
- ``matplotlib.tk_window_focus`` (use ``rcParams['tk.window_focus']`` instead)
43+
44+
- ``pyplot.plotfile()`` (Instead, load the data using
45+
`pandas.read_csv` or `numpy.loadtxt` or similar and use regular pyplot
46+
functions to plot the loaded data.)
47+
- ``rcsetup.validate_qt4()`` (no replacement)
48+
- ``rcsetup.validate_qt5()`` (no replacement)
49+
- ``rcsetup.validate_verbose()`` (no replacement)
50+
- ``rcsetup.ValidateInterval`` (no replacement)
51+
52+
- ``sphinxext.plot_directive.plot_directive()``
53+
(use the class ``PlotDirective`` instead)
54+
55+
- ``Artist.aname`` property (no replacement)
56+
- ``Axis.iter_ticks`` (no replacement)
57+
58+
- ``image.BboxImage.interp_at_native`` property (no replacement)
59+
- ``lines.Line2D.verticalOffset`` property (no replacement)
60+
- ``bezier.find_r_to_boundary_of_closedpath()`` (no relacement)
61+
62+
- ``quiver.Quiver.color()`` (use ``Quiver._getfacecolor()`` instead)
63+
- ``quiver.Quiver.keyvec`` property (no replacement)
64+
- ``quiver.Quiver.keytext`` property (no replacement)
65+
66+
- ``colorbar.ColorbarBase.get_cmap`` (use ``ScalarMappable.get_cmap`` instead)
67+
- ``colorbar.ColorbarBase.set_cmap`` (use ``ScalarMappable.set_cmap`` instead)
68+
- ``colorbar.ColorbarBase.get_clim`` (use ``ScalarMappable.get_clim`` instead)
69+
- ``colorbar.ColorbarBase.set_clim`` (use ``ScalarMappable.set_clim`` instead)
70+
- ``colorbar.ColorbarBase.set_norm`` (use ``ScalarMappable.set_norm`` instead)

doc/api/prev_api_changes/api_changes_1.3.x.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ Configuration and rcParams
213213
other rcParams.
214214

215215
* Removed call of :meth:`~matplotlib.axes.Axes.grid` in
216-
:meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set the
216+
``matplotlib.pyplot.plotfile``. To draw the axes grid, set the
217217
``axes.grid`` rcParam to *True*, or explicitly call
218218
:meth:`~matplotlib.axes.Axes.grid`.

doc/api/prev_api_changes/api_changes_3.1.0.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ future version.
875875
- `.cbook.is_hashable`
876876
Use ``isinstance(..., collections.abc.Hashable)`` instead.
877877

878-
- The `.backend_bases.RendererBase.strip_math`. Use
878+
- The ``.backend_bases.RendererBase.strip_math``. Use
879879
`.cbook.strip_math` instead.
880880

881881
Multiple internal functions that were exposed as part of the public API
@@ -910,19 +910,19 @@ If your project relies on these functions, consider vendoring them.
910910
Font Handling
911911
~~~~~~~~~~~~~
912912

913-
- `.backend_pdf.RendererPdf.afm_font_cache`
914-
- `.backend_ps.RendererPS.afmfontd`
915-
- `.font_manager.OSXInstalledFonts`
913+
- ``backend_pdf.RendererPdf.afm_font_cache``
914+
- ``backend_ps.RendererPS.afmfontd``
915+
- ``font_manager.OSXInstalledFonts``
916916
- `.TextToPath.glyph_to_path` (Instead call ``font.get_path()`` and manually transform the path.)
917917

918918

919919
Date related functions
920920
~~~~~~~~~~~~~~~~~~~~~~
921921

922-
- `.dates.seconds()`
923-
- `.dates.minutes()`
924-
- `.dates.hours()`
925-
- `.dates.weeks()`
922+
- ``dates.seconds()``
923+
- ``dates.minutes()``
924+
- ``dates.hours()``
925+
- ``dates.weeks()``
926926
- `.dates.strpdate2num`
927927
- `.dates.bytespdate2num`
928928

@@ -983,7 +983,7 @@ available on PyPI. Install that module separately if you need it.
983983

984984
.. _formlayout: https://pypi.org/project/formlayout/
985985

986-
- `.GraphicsContextPS.shouldstroke`
986+
- ``GraphicsContextPS.shouldstroke``
987987

988988

989989
Transforms / scales
@@ -1038,11 +1038,11 @@ Text
10381038
Unused attributes
10391039
~~~~~~~~~~~~~~~~~
10401040

1041-
- `.NavigationToolbar2QT.buttons`
1042-
- `.Line2D.verticalOffset`
1043-
- `.Quiver.keytext`
1044-
- `.Quiver.keyvec`
1045-
- `.SpanSelector.buttonDown`
1041+
- ``NavigationToolbar2QT.buttons``
1042+
- ``Line2D.verticalOffset``
1043+
- ``Quiver.keytext``
1044+
- ``Quiver.keyvec``
1045+
- ``SpanSelector.buttonDown``
10461046

10471047
These are unused and never updated.
10481048

doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if so desired).
1010

1111
plotfile
1212
~~~~~~~~
13-
`.pyplot.plotfile` is deprecated in favor of separately loading and plotting
13+
``.pyplot.plotfile`` is deprecated in favor of separately loading and plotting
1414
the data. See :doc:`/gallery/misc/plotfile_demo_sgskip` for various ways to
1515
use pandas or NumPy to load data, and pandas or matplotlib to plot the
1616
resulting data.

examples/misc/plotfile_demo_sgskip.py

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

0 commit comments

Comments
 (0)