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

Skip to content

Commit 3e5dcc6

Browse files
authored
Merge pull request #15878 from timhoffm/remove-3.1-depreactions
Remove API deprecated in 3.1
2 parents 741b140 + d1b1d0d commit 3e5dcc6

26 files changed

+102
-1039
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.get_facecolor()`` 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: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ suggest that custom backends let their ``GraphicsContext`` class
820820
inherit from `.GraphicsContextBase`, to at least provide stubs for all
821821
required methods.
822822

823-
- `.spine.Spine.is_frame_like`
823+
- ``spine.Spine.is_frame_like``
824824

825825
This has not been used in the codebase since its addition in 2009.
826826

@@ -829,28 +829,28 @@ This has not been used in the codebase since its addition in 2009.
829829
This has never been used internally, there is no equivalent method exists on
830830
the 2D Axis classes, and despite the similar name, it has a completely
831831
different behavior from the 2D Axis' `axis.Axis.get_ticks_position` method.
832-
- `.backend_pgf.LatexManagerFactory`
832+
- ``.backend_pgf.LatexManagerFactory``
833833

834-
- `.mpl_toolkits.axisartist.axislines.SimpleChainedObjects`
835-
- `.mpl_toolkits.Axes.AxisDict`
834+
- ``mpl_toolkits.axisartist.axislines.SimpleChainedObjects``
835+
- ``mpl_toolkits.Axes.AxisDict``
836836

837837
Internal Helper Functions
838838
~~~~~~~~~~~~~~~~~~~~~~~~~
839839

840-
- `.checkdep_dvipng`
841-
- `.checkdep_ghostscript`
842-
- `.checkdep_pdftops`
843-
- `.checkdep_inkscape`
840+
- ``checkdep_dvipng``
841+
- ``checkdep_ghostscript``
842+
- ``checkdep_pdftops``
843+
- ``checkdep_inkscape``
844844

845845

846-
- `.ticker.decade_up`
847-
- `.ticker.decade_down`
846+
- ``ticker.decade_up``
847+
- ``ticker.decade_down``
848848

849849

850-
- `.cbook.dedent`
851-
- `.docstring.Appender`
852-
- `.docstring.dedent`
853-
- `.docstring.copy_dedent`
850+
- ``cbook.dedent``
851+
- ``docstring.Appender``
852+
- ``docstring.dedent``
853+
- ``docstring.copy_dedent``
854854

855855
Use the standard library's docstring manipulation tools instead, such as
856856
`inspect.cleandoc` and `inspect.getdoc`.
@@ -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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ if so desired).
1010

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

1817
axes and axis
1918
~~~~~~~~~~~~~

examples/misc/plotfile_demo_sgskip.py

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

0 commit comments

Comments
 (0)