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

Skip to content

Remove API deprecated in 3.1 #15878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions doc/api/next_api_changes/removals.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,70 @@
Removals
--------
The following deprecated APIs have been removed:

Classes and methods
~~~~~~~~~~~~~~~~~~~
- ``backend_bases.RendererBase.strip_math()``
(use ``cbook.strip_math()`` instead)

- ``backend_wx.debug_on_error()`` (no replacement)
- ``backend_wx.raise_msg_to_str()`` (no replacement)
- ``backend_wx.fake_stderr`` (no replacement)
- ``backend_wx.MenuButtonWx`` (no replacement)
- ``backend_wx.PrintoutWx`` (no replacement)
- ``_backend_tk.NavigationToolbar2Tk.set_active()`` (no replacement)

- ``backend_ps.PsBackendHelper.gs_exe`` property (no replacement)
- ``backend_ps.PsBackendHelper.gs_version`` property (no replacement)
- ``backend_ps.PsBackendHelper.supports_ps2write`` property (no replacement)
- ``backend_ps.RendererPS.afmfontd`` property (no replacement)
- ``backend_ps.GraphicsContextPS.shouldstroke`` property (no replacement)

- ``backend_gtk3.FileChooserDialog`` (no replacement)
- ``backend_gtk3.SaveFigureGTK3.get_filechooser()`` (no replacement)
- ``backend_gtk3.NavigationToolbar2GTK3.get_filechooser()`` (no replacement)

- ``backend_gtk3cairo.FigureManagerGTK3Cairo``
(use ``backend_gtk3.FigureManagerGTK3`` instead)

- ``backend_pdf.RendererPdf.afm_font_cache`` property (no replacement)

- ``backend_pgf.LatexManagerFactory`` (no replacement)

- ``backend_qt5.NavigationToolbar2QT.buttons`` property (no replacement)
- ``backend_qt5.NavigationToolbar2QT.adj_window`` property (no replacement)

- ``matplotlib.checkdep_dvipng`` (no replacement)
- ``matplotlib.checkdep_ghostscript`` (no replacement)
- ``matplotlib.checkdep_pdftops`` (no replacement)
- ``matplotlib.checkdep_inkscape`` (no replacement)
- ``matplotlib.get_py2exe_datafiles`` (no replacement)
- ``matplotlib.tk_window_focus`` (use ``rcParams['tk.window_focus']`` instead)

- ``pyplot.plotfile()`` (Instead, load the data using
`pandas.read_csv` or `numpy.loadtxt` or similar and use regular pyplot
functions to plot the loaded data.)
- ``rcsetup.validate_qt4()`` (no replacement)
- ``rcsetup.validate_qt5()`` (no replacement)
- ``rcsetup.validate_verbose()`` (no replacement)
- ``rcsetup.ValidateInterval`` (no replacement)

- ``sphinxext.plot_directive.plot_directive()``
(use the class ``PlotDirective`` instead)

- ``Artist.aname`` property (no replacement)
- ``Axis.iter_ticks`` (no replacement)

- ``image.BboxImage.interp_at_native`` property (no replacement)
- ``lines.Line2D.verticalOffset`` property (no replacement)
- ``bezier.find_r_to_boundary_of_closedpath()`` (no relacement)

- ``quiver.Quiver.color()`` (use ``Quiver.get_facecolor()`` instead)
- ``quiver.Quiver.keyvec`` property (no replacement)
- ``quiver.Quiver.keytext`` property (no replacement)

- ``colorbar.ColorbarBase.get_cmap`` (use ``ScalarMappable.get_cmap`` instead)
- ``colorbar.ColorbarBase.set_cmap`` (use ``ScalarMappable.set_cmap`` instead)
- ``colorbar.ColorbarBase.get_clim`` (use ``ScalarMappable.get_clim`` instead)
- ``colorbar.ColorbarBase.set_clim`` (use ``ScalarMappable.set_clim`` instead)
- ``colorbar.ColorbarBase.set_norm`` (use ``ScalarMappable.set_norm`` instead)
2 changes: 1 addition & 1 deletion doc/api/prev_api_changes/api_changes_1.3.x.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,6 @@ Configuration and rcParams
other rcParams.

* Removed call of :meth:`~matplotlib.axes.Axes.grid` in
:meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set the
``matplotlib.pyplot.plotfile``. To draw the axes grid, set the
``axes.grid`` rcParam to *True*, or explicitly call
:meth:`~matplotlib.axes.Axes.grid`.
56 changes: 28 additions & 28 deletions doc/api/prev_api_changes/api_changes_3.1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ suggest that custom backends let their ``GraphicsContext`` class
inherit from `.GraphicsContextBase`, to at least provide stubs for all
required methods.

- `.spine.Spine.is_frame_like`
- ``spine.Spine.is_frame_like``

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

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

- `.mpl_toolkits.axisartist.axislines.SimpleChainedObjects`
- `.mpl_toolkits.Axes.AxisDict`
- ``mpl_toolkits.axisartist.axislines.SimpleChainedObjects``
- ``mpl_toolkits.Axes.AxisDict``

Internal Helper Functions
~~~~~~~~~~~~~~~~~~~~~~~~~

- `.checkdep_dvipng`
- `.checkdep_ghostscript`
- `.checkdep_pdftops`
- `.checkdep_inkscape`
- ``checkdep_dvipng``
- ``checkdep_ghostscript``
- ``checkdep_pdftops``
- ``checkdep_inkscape``


- `.ticker.decade_up`
- `.ticker.decade_down`
- ``ticker.decade_up``
- ``ticker.decade_down``


- `.cbook.dedent`
- `.docstring.Appender`
- `.docstring.dedent`
- `.docstring.copy_dedent`
- ``cbook.dedent``
- ``docstring.Appender``
- ``docstring.dedent``
- ``docstring.copy_dedent``

Use the standard library's docstring manipulation tools instead, such as
`inspect.cleandoc` and `inspect.getdoc`.
Expand All @@ -875,7 +875,7 @@ future version.
- `.cbook.is_hashable`
Use ``isinstance(..., collections.abc.Hashable)`` instead.

- The `.backend_bases.RendererBase.strip_math`. Use
- The ``.backend_bases.RendererBase.strip_math``. Use
`.cbook.strip_math` instead.

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

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


Date related functions
~~~~~~~~~~~~~~~~~~~~~~

- `.dates.seconds()`
- `.dates.minutes()`
- `.dates.hours()`
- `.dates.weeks()`
- ``dates.seconds()``
- ``dates.minutes()``
- ``dates.hours()``
- ``dates.weeks()``
- `.dates.strpdate2num`
- `.dates.bytespdate2num`

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

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

- `.GraphicsContextPS.shouldstroke`
- ``GraphicsContextPS.shouldstroke``


Transforms / scales
Expand Down Expand Up @@ -1038,11 +1038,11 @@ Text
Unused attributes
~~~~~~~~~~~~~~~~~

- `.NavigationToolbar2QT.buttons`
- `.Line2D.verticalOffset`
- `.Quiver.keytext`
- `.Quiver.keyvec`
- `.SpanSelector.buttonDown`
- ``NavigationToolbar2QT.buttons``
- ``Line2D.verticalOffset``
- ``Quiver.keytext``
- ``Quiver.keyvec``
- ``SpanSelector.buttonDown``

These are unused and never updated.

Expand Down
7 changes: 3 additions & 4 deletions doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ if so desired).

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

axes and axis
~~~~~~~~~~~~~
Expand Down
170 changes: 0 additions & 170 deletions examples/misc/plotfile_demo_sgskip.py

This file was deleted.

Loading