|
1 | 1 | API Changes for 3.1.0
|
2 | 2 | =====================
|
3 | 3 |
|
| 4 | +Exception changes |
| 5 | +----------------- |
| 6 | + |
| 7 | +- `mpl_toolkits.axes_grid1.axes_size.GetExtentHelper` now raises `ValueError` |
| 8 | + for invalid directions instead of `KeyError`. |
| 9 | + |
| 10 | +Removals |
| 11 | +-------- |
| 12 | + |
| 13 | +The following deprecated APIs have been removed: |
| 14 | + |
| 15 | +Classes and methods |
| 16 | +~~~~~~~~~~~~~~~~~~~ |
| 17 | +- ``Verbose`` (replaced by python logging library) |
| 18 | +- ``artist.Artist.hitlist`` (no replacement) |
| 19 | +- ``artist.Artist.is_figure_set`` (use ``artist.figure is not None`` instead) |
| 20 | +- ``axis.Axis.unit_data`` (use ``axis.Axis.units`` instead) |
| 21 | +- ``backend_bases.FigureCanvasBase.onRemove`` (no replacement) |
| 22 | + ``backend_bases.FigureManagerBase.show_popup`` (this never did anything) |
| 23 | +- ``backend_wx.SubplotToolWx`` (no replacement) |
| 24 | +- ``backend_wx.Toolbar`` (use ``backend_wx.NavigationToolbar2Wx`` instead) |
| 25 | +- ``cbook.align_iterators`` (no replacment) |
| 26 | +- ``contour.ContourLabeler.get_real_label_width`` (no replacement) |
| 27 | +- ``legend.Legend.draggable`` (use `legend.Legend.set_draggable()` instead) |
| 28 | +- ``texmanager.TexManager.postscriptd``, ``texmanager.TexManager.pscnt``, |
| 29 | + ``texmanager.TexManager.make_ps``, ``texmanager.TexManager.get_ps_bbox`` |
| 30 | + (no replacements) |
| 31 | + |
| 32 | +Arguments |
| 33 | +~~~~~~~~~ |
| 34 | +- The ``fig`` kwarg to ``GridSpec.get_subplot_params`` and |
| 35 | + ``GridSpecFromSubplotSpec.get_subplot_params`` (use the argument |
| 36 | + ``figure`` instead) |
| 37 | +- Passing 'box-forced' to `axes.Axes.set_adjustable` (use 'box' instead) |
| 38 | +- Support for the strings 'on'/'true'/'off'/'false' to mean |
| 39 | + ``True``/``False`` (directly use ``True``/``False`` instead). |
| 40 | + The following functions are affected: `Axes.grid`, `Axes3D.grid` |
| 41 | + `Axis.set_tick_params`, `pyplot.box`. |
| 42 | +- Using `pyplot.axes` with an `axes.Axes` type argument |
| 43 | + (use `pyplot.sca` instead) |
| 44 | + |
| 45 | +Other |
| 46 | +~~~~~ |
| 47 | +- svgfont support (in :rc:`svg.fonttype`) has been removed, |
| 48 | +- Logging is now done with the standard python ``logging`` library. |
| 49 | + ``matplotlib.verbose`` and the command line switches ``--verbose-LEVEL`` are |
| 50 | + removed. |
| 51 | + |
| 52 | + To control the logging output use:: |
| 53 | + |
| 54 | + import logging |
| 55 | + logger = logging.getLogger('matplotlib') |
| 56 | + logger.set_level(logging.INFO) |
| 57 | + |
4 | 58 | :mod:`matplotlib.mlab` removals
|
5 | 59 | -------------------------------
|
6 | 60 |
|
@@ -608,54 +662,6 @@ The following keyword arguments are deprecated:
|
608 | 662 | an unintended implementation detail with the same semantics as
|
609 | 663 | ``shade=False``. Please use the latter code instead.
|
610 | 664 |
|
611 |
| - API removals |
612 |
| - |
613 |
| - |
614 |
| -The following deprecated APIs were removed: |
615 |
| - |
616 |
| -Classes and methods |
617 |
| -------------------- |
618 |
| -- ``Verbose`` (replaced by python logging library) |
619 |
| -- ``artist.Artist.hitlist`` (no replacement) |
620 |
| -- ``artist.Artist.is_figure_set`` (use ``artist.figure is not None`` instead) |
621 |
| -- ``axis.Axis.unit_data`` (use ``axis.Axis.units`` instead) |
622 |
| -- ``backend_bases.FigureCanvasBase.onRemove`` (no replacement) |
623 |
| - ``backend_bases.FigureManagerBase.show_popup`` (this never did anything) |
624 |
| -- ``backend_wx.SubplotToolWx`` (no replacement) |
625 |
| -- ``backend_wx.Toolbar`` (use ``backend_wx.NavigationToolbar2Wx`` instead) |
626 |
| -- ``cbook.align_iterators`` (no replacment) |
627 |
| -- ``contour.ContourLabeler.get_real_label_width`` (no replacement) |
628 |
| -- ``legend.Legend.draggable`` (use `legend.Legend.set_draggable()` instead) |
629 |
| -- ``texmanager.TexManager.postscriptd``, ``texmanager.TexManager.pscnt``, |
630 |
| - ``texmanager.TexManager.make_ps``, ``texmanager.TexManager.get_ps_bbox`` |
631 |
| - (no replacements) |
632 |
| - |
633 |
| -Arguments |
634 |
| ---------- |
635 |
| -- The ``fig`` kwarg to ``GridSpec.get_subplot_params`` and |
636 |
| - ``GridSpecFromSubplotSpec.get_subplot_params`` (use the argument |
637 |
| - ``figure`` instead) |
638 |
| -- Passing 'box-forced' to `axes.Axes.set_adjustable` (use 'box' instead) |
639 |
| -- Support for the strings 'on'/'true'/'off'/'false' to mean |
640 |
| - ``True``/``False`` (directly use ``True``/``False`` instead). |
641 |
| - The following functions are affected: `Axes.grid`, `Axes3D.grid` |
642 |
| - `Axis.set_tick_params`, `pyplot.box`. |
643 |
| -- Using `pyplot.axes` with an `axes.Axes` type argument |
644 |
| - (use `pyplot.sca` instead) |
645 |
| - |
646 |
| -Other |
647 |
| ------ |
648 |
| -- svgfont support (in :rc:`svg.fonttype`) has been removed, |
649 |
| -- Logging is now done with the standard python ``logging`` library. |
650 |
| - ``matplotlib.verbose`` and the command line switches ``--verbose-LEVEL`` are |
651 |
| - removed. |
652 |
| - |
653 |
| - To control the logging output use:: |
654 |
| - |
655 |
| - import logging |
656 |
| - logger = logging.getLogger('matplotlib') |
657 |
| - logger.set_level(logging.INFO) |
658 |
| - |
659 | 665 | Deprecations
|
660 | 666 | ------------
|
661 | 667 |
|
@@ -886,9 +892,6 @@ Changes to the internal tick handling API
|
886 | 892 | The signature of the (private) ``Axis._update_ticks`` has been changed to not
|
887 | 893 | take the renderer as argument anymore (that argument is unused).
|
888 | 894 |
|
889 |
| -Deprecations |
890 |
| ------------- |
891 |
| - |
892 | 895 | `~Axes.bxp` now respects :rc:`boxplot.boxprops.linewidth` even when *patch_artist* is set
|
893 | 896 | -----------------------------------------------------------------------------------------
|
894 | 897 |
|
@@ -1082,9 +1085,3 @@ Such points are now included, but masked out by returning a masked array.
|
1082 | 1085 | If the *plotnonfinite* kwarg to `~.Axes.scatter` is set, then points with
|
1083 | 1086 | nonfinite values are plotted using the bad color of the `PathCollection`\ 's
|
1084 | 1087 | colormap (as set by `Colormap.set_bad`).
|
1085 |
| - |
1086 |
| -Changed exceptions |
1087 |
| ------------------- |
1088 |
| - |
1089 |
| -- `mpl_toolkits.axes_grid1.axes_size.GetExtentHelper` now raises `ValueError` |
1090 |
| - for invalid directions instead of `KeyError`. |
0 commit comments