Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionsdoc/api/next_api_changes/removals.rst
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletiondoc/api/prev_api_changes/api_changes_1.3.x.rst
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsdoc/api/prev_api_changes/api_changes_3.1.0.rst
View file
Open in desktop
Original file line numberDiff line numberDiff 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 DownExpand 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 DownExpand 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 DownExpand 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsexamples/misc/plotfile_demo_sgskip.py
View file
Open in desktop

This file was deleted.

Loading

[8]ページ先頭

©2009-2025 Movatter.jp