@@ -44,13 +44,6 @@ Drop support for python 2
44
44
Matplotlib 3 only supports python 3.5 and higher.
45
45
46
46
47
- Hold machinery removed
48
- ----------------------
49
-
50
- Setting or unsetting ``hold `` (deprecated in version 2.1) has now
51
- been completely removed. Matplotlib now always behaves as if ``hold=True ``.
52
- To clear an axes you can manually use :meth: `~.axes.Axes.cla() `,
53
- or to clear an entire figure use :meth: `~.figure.Figure.clf() `.
54
47
55
48
56
49
`.Axes.hist2d ` now uses `~.Axes.pcolormesh ` instead of `~.Axes.pcolorfast `
@@ -74,6 +67,9 @@ This change sets text objects passed ``None`` to have empty strings, so that
74
67
75
68
Deprecations
76
69
------------
70
+
71
+ Modules
72
+ ```````
77
73
The following modules are deprecated:
78
74
79
75
- :mod: `matplotlib.compat.subprocess `. This was a python 2 workaround, but all
@@ -82,6 +78,9 @@ The following modules are deprecated:
82
78
- :mod: `matplotlib.backends.wx_compat `. Python 3 is only compatible with
83
79
wxPython 4, so support for wxPython 3 or earlier can be dropped.
84
80
81
+ Classes, methods, functions, and attributes
82
+ ```````````````````````````````````````````
83
+
85
84
The following classes, methods, functions, and attributes are deprecated:
86
85
87
86
- ``RcParams.msg_depr ``, ``RcParams.msg_depr_ignore ``,
@@ -126,12 +125,16 @@ The following classes, methods, functions, and attributes are deprecated:
126
125
- `.Legend.draggable() `, in favor of `.Legend.set_draggable() `
127
126
(``Legend.draggable `` may be reintroduced as a property in future releases)
128
127
- ``textpath.TextToPath.tex_font_map ``
129
-
130
- The following rcParams are deprecated:
131
-
132
- - ``examples.directory `` (use ``datapath `` instead)
133
- - ``pgf.debug `` (the pgf backend relies on logging)
134
- - ``text.latex.unicode ``
128
+ - :class: `matplotlib.cbook.deprecation.mplDeprecation ` will be removed in
129
+ future versions. It is just an alias for
130
+ :class: `matplotlib.cbook.deprecation.MatplotlibDeprecationWarning `.
131
+ Please use the :class: `~.MatplotlibDeprecationWarning ` directly if neccessary.
132
+ - The ``matplotlib.cbook.Bunch `` class has been deprecated. Instead, use
133
+ `types.SimpleNamespace ` from the standard library which provides the same
134
+ functionality.
135
+ - ``Axes.mouseover_set `` is now a frozenset, and deprecated. Directly
136
+ manipulate the artist's ``.mouseover `` attribute to change their mouseover
137
+ status.
135
138
136
139
The following keyword arguments are deprecated:
137
140
@@ -142,75 +145,86 @@ The following call signatures are deprecated:
142
145
143
146
- passing a ``wx.EvtHandler `` as first argument to ``backend_wx.TimerWx ``
144
147
148
+ rcParams
149
+ ````````
145
150
146
- Deprecated methods removed from `matplotlib.testing `
147
- ----------------------------------------------------
148
-
149
- The deprecated methods `knownfailureif ` and `remove_text ` have been removed
150
- from :mod: `matplotlib.testing.decorators `.
151
-
152
- The entire contents of `testing.noseclasses ` have also been removed.
153
-
151
+ The following rcParams are deprecated:
154
152
155
- ``matplotlib.cbook.deprecation.mplDeprecation `` is deprecated
156
- -------------------------------------------------------------
153
+ - ``examples.directory `` (use ``datapath `` instead)
154
+ - ``pgf.debug `` (the pgf backend relies on logging)
155
+ - ``text.latex.unicode ``
157
156
158
- :class: `matplotlib.cbook.deprecation.mplDeprecation ` will be removed in
159
- future versions. It is just an alias for
160
- :class: `matplotlib.cbook.deprecation.MatplotlibDeprecationWarning `.
161
- Please use the :class: `~.MatplotlibDeprecationWarning ` directly if neccessary.
162
157
158
+ marker styles
159
+ `````````````
160
+ - Using ``(n, 3) `` as marker style to specify a circle marker is deprecated. Use
161
+ ``"o" `` instead.
162
+ - Using ``([(x0, y0), (x1, y1), ...], 0) `` as marker style to specify a custom
163
+ marker path is deprecated. Use ``[(x0, y0), (x1, y1), ...] `` instead.
163
164
164
- matplotlib.cbook.Bunch deprecated
165
- ---------------------------------
166
165
167
- The ``matplotlib.cbook.Bunch `` class has been deprecated. Instead, use
168
- `types.SimpleNamespace ` from the standard library which provides the same
169
- functionality.
166
+ Deprecation of ``LocatableAxes `` in toolkits
167
+ ````````````````````````````````````````````
170
168
169
+ The ``LocatableAxes `` classes in toolkits have been deprecated. The base `Axes `
170
+ classes provide the same functionality to all subclasses, thus these mixins are
171
+ no longer necessary. Related functions have also been deprecated. Specifically:
171
172
172
- Deprecation of certain marker styles
173
- ------------------------------------
173
+ * ``mpl_toolkits.axes_grid1.axes_divider.LocatableAxesBase ``: no specific
174
+ replacement; use any other ``Axes ``-derived class directly instead.
175
+ * ``mpl_toolkits.axes_grid1.axes_divider.locatable_axes_factory ``: no specific
176
+ replacement; use any other ``Axes ``-derived class directly instead.
177
+ * ``mpl_toolkits.axes_grid1.axes_divider.Axes ``: use
178
+ `mpl_toolkits.axes_grid1.mpl_axes.Axes ` directly.
179
+ * ``mpl_toolkits.axes_grid1.axes_divider.LocatableAxes ``: use
180
+ `mpl_toolkits.axes_grid1.mpl_axes.Axes ` directly.
181
+ * ``mpl_toolkits.axisartist.axes_divider.Axes ``: use
182
+ `mpl_toolkits.axisartist.axislines.Axes ` directly.
183
+ * ``mpl_toolkits.axisartist.axes_divider.LocatableAxes ``: use
184
+ `mpl_toolkits.axisartist.axislines.Axes ` directly.
174
185
175
- Using ``(n, 3) `` as marker style to specify a circle marker is deprecated. Use
176
- ``"o" `` instead.
177
186
178
- Using ``([(x0, y0), (x1, y1), ...], 0) `` as marker style to specify a custom
179
- marker path is deprecated. Use ``[(x0, y0), (x1, y1), ...] `` instead.
180
187
188
+ ``Axes3D.get_xlim ``, ``get_ylim `` and ``get_zlim `` now return a tuple
189
+ ---------------------------------------------------------------------
181
190
182
- Removal of deprecated backends
183
- ------------------------------
191
+ They previously returned an array. Returning a tuple is consistent with the
192
+ behavior for 2D axes.
184
193
185
- Deprecated backends have been removed:
186
194
187
- * GTKAgg
188
- * GTKCairo
189
- * GTK
190
- * GDK
195
+ Removals
196
+ --------
191
197
198
+ Hold machinery
199
+ ``````````````
192
200
193
- ``Axes3D.get_xlim ``, ``get_ylim `` and ``get_zlim `` now return a tuple
194
- ---------------------------------------------------------------------
201
+ Setting or unsetting ``hold `` (deprecated in version 2.1) has now
202
+ been completely removed. Matplotlib now always behaves as if ``hold=True ``.
203
+ To clear an axes you can manually use :meth: `~.axes.Axes.cla() `,
204
+ or to clear an entire figure use :meth: `~.figure.Figure.clf() `.
195
205
196
- They previously returned an array. Returning a tuple is consistent with the
197
- behavior for 2D axes.
198
206
207
+ Removal of deprecated backends
208
+ ``````````````````````````````
199
209
200
- Modified APIs
201
- -------------
210
+ Deprecated backends have been removed:
202
211
203
- The following APIs have been modified:
212
+ * GTKAgg
213
+ * GTKCairo
214
+ * GTK
215
+ * GDK
204
216
205
- - ``Axes.mouseover_set `` is now a frozenset, and deprecated. Directly
206
- manipulate the artist's ``.mouseover `` attribute to change their mouseover
207
- status.
208
217
209
218
Removal of deprecated APIs
210
- --------------------------
219
+ ``````````````````````````
211
220
212
221
The following deprecated API elements have been removed:
222
+ Deprecated methods removed from ``
223
+
213
224
225
+ - The deprecated methods ``knownfailureif `` and ``remove_text `` have been removed
226
+ from :mod: `matplotlib.testing.decorators `.
227
+ - The entire contents of ``testing.noseclasses `` have also been removed.
214
228
- ``matplotlib.checkdep_tex ``, ``matplotlib.checkdep_xmllint ``,
215
229
- ``backend_bases.IdleEvent ``,
216
230
- ``cbook.converter ``, ``cbook.tostr ``, ``cbook.todatetime ``, ``cbook.todate ``,
@@ -301,8 +315,8 @@ warning if only two positional arguments are passed. To supply only ``x`` and
301
315
``y `` margins, use keyword arguments.
302
316
303
317
304
- lib/mpl_examples removed
305
- ------------------------
318
+ lib/mpl_examples symlink removed
319
+ --------------------------------
306
320
307
321
The symlink from lib/mpl_examples to ../examples has been removed.
308
322
This is not installed as an importable package and should not affect
@@ -509,26 +523,6 @@ particular, this prevents the ``backend`` and ``interactive`` rcParams from
509
523
being incorrectly modified by these functions.
510
524
511
525
512
- Deprecation of ``LocatableAxes `` in toolkits
513
- --------------------------------------------
514
-
515
- The ``LocatableAxes `` classes in toolkits have been deprecated. The base `Axes `
516
- classes provide the same functionality to all subclasses, thus these mixins are
517
- no longer necessary. Related functions have also been deprecated. Specifically:
518
-
519
- * ``mpl_toolkits.axes_grid1.axes_divider.LocatableAxesBase ``: no specific
520
- replacement; use any other ``Axes ``-derived class directly instead.
521
- * ``mpl_toolkits.axes_grid1.axes_divider.locatable_axes_factory ``: no specific
522
- replacement; use any other ``Axes ``-derived class directly instead.
523
- * ``mpl_toolkits.axes_grid1.axes_divider.Axes ``: use
524
- `mpl_toolkits.axes_grid1.mpl_axes.Axes ` directly.
525
- * ``mpl_toolkits.axes_grid1.axes_divider.LocatableAxes ``: use
526
- `mpl_toolkits.axes_grid1.mpl_axes.Axes ` directly.
527
- * ``mpl_toolkits.axisartist.axes_divider.Axes ``: use
528
- `mpl_toolkits.axisartist.axislines.Axes ` directly.
529
- * ``mpl_toolkits.axisartist.axes_divider.LocatableAxes ``: use
530
- `mpl_toolkits.axisartist.axislines.Axes ` directly.
531
-
532
526
533
527
534
528
`.matplotlib.Axes.get_tightbbox ` now includes all artists
0 commit comments