@@ -28,6 +28,15 @@ Drop support for python 2
28
28
Matplotlib 3 only supports python 3.5 and higher
29
29
30
30
31
+ Hold machinery removed
32
+ ----------------------
33
+
34
+ Setting or unsetting ``hold `` (deprecated in version 2.1) has now
35
+ been completely removed. Matplotlib now always behaves as if ``hold=True ``.
36
+ To clear an axes you can manually use :meth: `~.axes.Axes.cla() `,
37
+ or to clear an entire figure use :meth: `~.figure.Figure.clf() `.
38
+
39
+
31
40
`.Axes.hist2d ` now uses `~.Axes.pcolormesh ` instead of `~.Axes.pcolorfast `
32
41
--------------------------------------------------------------------------
33
42
@@ -61,46 +70,51 @@ The following classes, methods, functions, and attributes are deprecated:
61
70
62
71
- ``RcParams.msg_depr ``, ``RcParams.msg_depr_ignore ``,
63
72
``RcParams.msg_depr_set ``, ``RcParams.msg_obsolete ``,
64
- ``RcParams.msg_backend_obsolete ``,
65
- - ``afm.parse_afm ``,
66
- - ``backend_pgf.get_texcommand ``,
67
- - ``backend_ps.get_bbox ``,
68
- - ``backend_qt5.error_msg_qt ``, ``backend_qt5.exception_handler ``,
69
- - ``backend_wx.FigureCanvasWx.macros ``,
70
- - ``cbook.GetRealpathAndStat ``, ``cbook.Locked ``,
73
+ ``RcParams.msg_backend_obsolete ``
74
+ - ``afm.parse_afm ``
75
+ - ``backend_pgf.get_texcommand ``
76
+ - ``backend_ps.get_bbox ``
77
+ - ``backend_qt5.error_msg_qt ``, ``backend_qt5.exception_handler ``
78
+ - ``backend_wx.FigureCanvasWx.macros ``
79
+ - ``cbook.GetRealpathAndStat ``, ``cbook.Locked ``
71
80
- ``cbook.is_numlike `` (use ``isinstance(..., numbers.Number) `` instead),
72
- ``cbook.listFiles ``, ``cbook.unicode_safe ``,
73
- - ``container.Container.set_remove_method ``,
74
- - ``contour.ContourLabeler.cl ``, ``.cl_xy ``, and ``.cl_cvalues ``,
75
- - ``dates.DateFormatter.strftime_pre_1900 ``, ``dates.DateFormatter.strftime ``,
76
- - ``font_manager.TempCache ``,
77
- - ``mathtext.unichr_safe `` (use ``chr `` instead),
78
- - ``table.Table.get_child_artists `` (use ``get_children `` instead),
81
+ ``cbook.listFiles ``, ``cbook.unicode_safe ``
82
+ - ``container.Container.set_remove_method ``
83
+ - ``contour.ContourLabeler.cl ``, ``.cl_xy ``, and ``.cl_cvalues ``
84
+ - ``dates.DateFormatter.strftime_pre_1900 ``, ``dates.DateFormatter.strftime ``
85
+ - ``font_manager.TempCache ``
86
+ - ``mathtext.unichr_safe `` (use ``chr `` instead)
87
+ - ``table.Table.get_child_artists `` (use ``get_children `` instead)
79
88
- ``testing.compare.ImageComparisonTest ``, ``testing.compare.compare_float ``,
80
- - ``testing.decorators.CleanupTest ``,
81
- ``testing.decorators.skip_if_command_unavailable ``,
89
+ - ``testing.decorators.CleanupTest ``
90
+ ``testing.decorators.skip_if_command_unavailable ``
82
91
- ``FigureCanvasQT.keyAutoRepeat `` (directly check
83
92
``event.guiEvent.isAutoRepeat() `` in the event handler to decide whether to
84
- handle autorepeated key presses).
85
- - ``FigureCanvasWx.macros ``,
93
+ handle autorepeated key presses)
94
+ - ``FigureCanvasWx.macros ``
86
95
- ``_ImageBase.iterpnames ``, use the ``interpolation_names `` property instead.
87
96
(this affects classes that inherit from ``_ImageBase `` including
88
- :class: `FigureImage `, :class: `BboxImage `, and :class: `AxesImage `),
89
- - ``patches.Polygon.xy ``,
90
- - ``texmanager.dvipng_hack_alpha ``,
91
- - ``text.Annotation.arrow ``,
97
+ :class: `FigureImage `, :class: `BboxImage `, and :class: `AxesImage `)
98
+ - ``patches.Polygon.xy ``
99
+ - ``texmanager.dvipng_hack_alpha ``
100
+ - ``text.Annotation.arrow ``
101
+ - `.Legend.draggable() `, in favor of `.Legend.set_draggable() `
102
+ (``Legend.draggable `` may be reintroduced as a property in future releases)
103
+
92
104
93
105
The following rcParams are deprecated:
94
- - ``examples.directory `` (use ``datapath `` instead),
95
- - ``pgf.debug `` (the pgf backend relies on logging),
96
- - ``text.latex.unicode ``,
106
+
107
+ - ``examples.directory `` (use ``datapath `` instead)
108
+ - ``pgf.debug `` (the pgf backend relies on logging)
109
+ - ``text.latex.unicode ``
97
110
98
111
The following keyword arguments are deprecated:
99
- - passing ``verts `` to ``Axes.scatter `` (use ``marker `` instead),
100
- - passing ``obj_type `` to ``cbook.deprecated ``,
112
+
113
+ - passing ``verts `` to ``Axes.scatter `` (use ``marker `` instead)
114
+ - passing ``obj_type `` to ``cbook.deprecated ``
101
115
102
116
The following call signatures are deprecated:
103
- - passing a ``wx.EvtHandler `` as first argument to ``backend_wx.TimerWx ``,
117
+ - passing a ``wx.EvtHandler `` as first argument to ``backend_wx.TimerWx ``
104
118
105
119
Deprecated methods removed from `matplotlib.testing `
106
120
----------------------------------------------------
@@ -111,6 +125,15 @@ from :mod:`matplotlib.testing.decorators`.
111
125
The entire contents of `testing.noseclasses ` have also been removed.
112
126
113
127
128
+ ``matplotlib.cbook.deprecation.mplDeprecation `` is deprecated
129
+ -------------------------------------------------------------
130
+
131
+ :class: `matplotlib.cbook.deprecation.mplDeprecation ` will be removed in
132
+ future versions. It is just an alias for
133
+ :class: `matplotlib.cbook.deprecation.MatplotlibDeprecationWarning `.
134
+ Please use the :class: `~.MatplotlibDeprecationWarning ` directly if neccessary.
135
+
136
+
114
137
matplotlib.cbook.Bunch deprecated
115
138
---------------------------------
116
139
@@ -119,6 +142,16 @@ The ``matplotlib.cbook.Bunch`` class has been deprecated. Instead, use
119
142
functionality.
120
143
121
144
145
+ Deprecation of certain marker styles
146
+ ------------------------------------
147
+
148
+ Using ``(n, 3) `` as marker style to specify a circle marker is deprecated. Use
149
+ ``"o" `` instead.
150
+
151
+ Using ``([(x0, y0), (x1, y1), ...], 0) `` as marker style to specify a custom
152
+ marker path is deprecated. Use ``[(x0, y0), (x1, y1), ...] `` instead.
153
+
154
+
122
155
Removal of deprecated backends
123
156
------------------------------
124
157
@@ -130,15 +163,6 @@ Deprecated backends have been removed:
130
163
* GDK
131
164
132
165
133
- Hold machinery removed
134
- ----------------------
135
-
136
- Setting or unsetting ``hold `` (deprecated in version 2.1) has now
137
- been completely removed. Matplotlib now always behaves as if ``hold=True ``.
138
- To clear an axes you can manually use :meth: `~.axes.Axes.cla() `,
139
- or to clear an entire figure use :meth: `~.figure.Figure.clf() `.
140
-
141
-
142
166
``Axes3D.get_xlim ``, ``get_ylim `` and ``get_zlim `` now return a tuple
143
167
---------------------------------------------------------------------
144
168
@@ -213,16 +237,6 @@ These arguments were renamed in 2.0 to ``x``/``y`` following the change of the
213
237
default alignment from ``edge `` to ``center ``.
214
238
215
239
216
- Deprecation of certain marker styles
217
- ------------------------------------
218
-
219
- Using ``(n, 3) `` as marker style to specify a circle marker is deprecated. Use
220
- ``"o" `` instead.
221
-
222
- Using ``([(x0, y0), (x1, y1), ...], 0) `` as marker style to specify a custom
223
- marker path is deprecated. Use ``[(x0, y0), (x1, y1), ...] `` instead.
224
-
225
-
226
240
Different exception types for undocumented options
227
241
--------------------------------------------------
228
242
@@ -243,7 +257,7 @@ Improved call signature for Axes.margins()
243
257
------------------------------------------
244
258
245
259
:meth: `matplotlib.axes.Axes.margins ` and :meth: `mpl_toolkits.mplot3d.Axes3D.margins `
246
- no longer accept arbitrary keywords. ``TypeError `` will therefore be raised
260
+ no longer accept arbitrary keywords. ``TypeError `` will therefore be raised
247
261
if unknown kwargs are passed; previously they would be silently ignored.
248
262
249
263
If too many positional arguments are passed, ``TypeError `` will be raised
@@ -254,8 +268,8 @@ warning if only two positional arguments are passed. To supply only ``x`` and
254
268
``y `` margins, use keyword arguments.
255
269
256
270
257
- Remove lib/mpl_examples
258
- -----------------------
271
+ lib/mpl_examples removed
272
+ ------------------------
259
273
260
274
The symlink from lib/mpl_examples to ../examples has been removed.
261
275
This is not installed as an importable package and should not affect
@@ -287,20 +301,12 @@ unhandled positional arguments. If two or more arguments are passed
287
301
will be raised instead of treating X as Y and Y as linefmt.
288
302
289
303
290
- ``matplotlib.cbook.deprecation.mplDeprecation `` is deprecated
291
- -------------------------------------------------------------
292
-
293
- :class: `matplotlib.cbook.deprecation.mplDeprecation ` will be removed in
294
- future versions. It is just an alias for
295
- :class: `matplotlib.cbook.deprecation.MatplotlibDeprecationWarning `.
296
- Please use the :class: `~.MatplotlibDeprecationWarning ` directly if neccessary.
297
-
298
-
299
- The cleanup decorators and test classes in matplotlib.testing.decorators no longer destroy the warnings filter on exit
300
- ----------------------------------------------------------------------------------------------------------------------
304
+ Cleanup decorators and test classes no longer destroy warnings filter on exit
305
+ -----------------------------------------------------------------------------
301
306
302
- Instead, they restore the warnings filter that existed before the test started
303
- using ``warnings.catch_warnings ``.
307
+ The decorators and classes in matplotlib.testing.decorators no longer
308
+ destroy the warnings filter on exit. Instead, they restore the warnings
309
+ filter that existed before the test started using ``warnings.catch_warnings ``.
304
310
305
311
306
312
Non-interactive FigureManager classes are now aliases of FigureManagerBase
@@ -315,13 +321,13 @@ adding or overriding any attribute or method), are now direct aliases for
315
321
Change to the output of `.image.thumbnail `
316
322
------------------------------------------
317
323
318
- When called with ``preview=False ``, `` image.thumbnail ` ` previously returned an
324
+ When called with ``preview=False ``, `. image.thumbnail ` previously returned an
319
325
figure whose canvas class was set according to the output file extension. It
320
326
now returns a figure whose canvas class is the base `FigureCanvasBase ` (and
321
327
relies on `FigureCanvasBase.print_figure `) to handle the canvas switching
322
328
properly).
323
329
324
- As a side effect of this change, `image.thumbnail ` now also supports .ps, .eps,
330
+ As a side effect of this change, `. image.thumbnail ` now also supports .ps, .eps,
325
331
and .svgz output.
326
332
327
333
@@ -376,7 +382,7 @@ Changes to backend loading
376
382
377
383
Failure to load backend modules (``macosx `` on non-framework builds and
378
384
``gtk3 `` when running headless) now raises `ImportError ` (instead of
379
- `RuntimeError ` and `TypeError `, respectively.
385
+ `RuntimeError ` and `TypeError `, respectively) .
380
386
381
387
Third-party backends that integrate with an interactive framework are now
382
388
encouraged to define the ``required_interactive_framework `` global value to one
@@ -386,11 +392,11 @@ backend to another (specifically, whether they use the same interactive
386
392
framework).
387
393
388
394
389
- Changed default `AutoDateLocator ` kwarg `` interval_multiples `` to ``True ``
390
- --------------------------------------------------------------------------
395
+ Changed default `AutoDateLocator ` kwarg * interval_multiples * to ``True ``
396
+ ------------------------------------------------------------------------
391
397
392
398
The default value of the tick locator for dates, `.dates.AutoDateLocator `
393
- kwarg `` interval_multiples `` was set to ``False `` which leads to not-nice
399
+ kwarg * interval_multiples * was set to ``False `` which leads to not-nice
394
400
looking automatic ticks in many instances. The much nicer
395
401
``interval_multiples=True `` is the new default. See below to get the
396
402
old behavior back:
@@ -430,9 +436,9 @@ old behavior back:
430
436
431
437
`.Axes.get_position ` used to return the original position unless a
432
438
draw had been triggered or `.Axes.apply_aspect ` had been called, even
433
- if the kwarg *original * was set to * False * . Now `.Axes.apply_aspect `
439
+ if the kwarg *original * was set to `` False `` . Now `.Axes.apply_aspect `
434
440
is called so ``ax.get_position() `` will return the new modified position.
435
- To get the old behaviour, ``ax.get_position(original=True) ``.
441
+ To get the old behaviour use ``ax.get_position(original=True) ``.
436
442
437
443
438
444
The ticks for colorbar now adjust for the size of the colorbar
0 commit comments