-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove (some) features deprecated in mpl2.2 #12245
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
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
04aea74
Remove (most) APIs deprecated in mpl2.2.
anntzer 08a2502
Kill _string_to_bool.
anntzer 5258291
Update API changes
dstansby 4271616
Unremove the normed kwarg to hist().
anntzer 8b99e41
More alternatives in API changes
timhoffm 893a0a3
Make svg note clearer
dstansby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
API removals | ||
```````````` | ||
|
||
The following deprecated APIs were removed: | ||
|
||
Classes and methods | ||
------------------- | ||
- ``Verbose`` (replaced by python logging library) | ||
- ``artist.Artist.hitlist`` (no replacement) | ||
- ``artist.Artist.is_figure_set`` (use ``artist.figure is not None`` instead) | ||
- ``axis.Axis.unit_data`` (use ``axis.Axis.units`` instead) | ||
- ``backend_bases.FigureCanvasBase.onRemove`` (no replacement) | ||
``backend_bases.FigureManagerBase.show_popup`` (this never did anything) | ||
- ``backend_wx.SubplotToolWx`` (no replacement) | ||
- ``backend_wx.Toolbar`` (use ``backend_wx.NavigationToolbar2Wx`` instead) | ||
- ``cbook.align_iterators`` (no replacment) | ||
- ``contour.ContourLabeler.get_real_label_width`` (no replacement) | ||
- ``legend.Legend.draggable`` (use `legend.Legend.set_draggable()` instead) | ||
- ``texmanager.TexManager.postscriptd``, ``texmanager.TexManager.pscnt``, | ||
``texmanager.TexManager.make_ps``, ``texmanager.TexManager.get_ps_bbox`` | ||
(no replacements) | ||
|
||
Arguments | ||
--------- | ||
- The ``fig`` kwarg to ``GridSpec.get_subplot_params`` and | ||
``GridSpecFromSubplotSpec.get_subplot_params`` (use the argument | ||
``figure`` instead) | ||
- Passing 'box-forced' to `axes.Axes.set_adjustable` (use 'box' instead) | ||
- Support for the strings 'on'/'true'/'off'/'false' to mean | ||
``True``/``False`` (directly use ``True``/``False`` instead). | ||
The following functions are affected: `Axes.grid`, `Axes3D.grid` | ||
`Axis.set_tick_params`, `pyplot.box`. | ||
- Using `pyplot.axes` with an `axes.Axes` type argument | ||
(use `pyplot.sca` instead) | ||
|
||
Other | ||
----- | ||
- svgfont support (in :rc:`svg.fonttype`) has been removed, | ||
- Logging is now done with the standard python ``logging`` library. | ||
``matplotlib.verbose`` and the command line switches ``--verbose-LEVEL`` are | ||
removed. | ||
|
||
To control the logging output use:: | ||
|
||
import logging | ||
logger = logging.getLogger('matplotlib') | ||
logger.set_level(logging.INFO) |
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps say "use pandas instead" or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have a specific replacement in mind, please push it (or I can do it), but otherwise that seems a bit vague (at least I don't know what replacement you're thinking about).