|
| 1 | +``Axes.pie`` *radius*, *startangle*, and *normalize* parameters |
| 2 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 3 | +Passing ``None`` as either the *radius* or *startangle* arguments of an |
| 4 | +`.Axes.pie` is no longer accepted; use the explicit defaults of 1 and 0, |
| 5 | +respectively, instead. |
| 6 | + |
| 7 | +Passing ``None`` as the *normalize* argument of `.Axes.pie` (the former |
| 8 | +default) is no longer accepted, and the pie will always be normalized by |
| 9 | +default. If you wish to plot an incomplete pie, explicitly pass |
| 10 | +``normalize=False``. |
| 11 | + |
| 12 | +Signatures of `.Artist.draw` and `.Axes.draw` |
| 13 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 14 | +The *inframe* parameter to `.Axes.draw` has been removed. Use |
| 15 | +`.Axes.redraw_in_frame` instead. |
| 16 | + |
| 17 | +Omitting the *renderer* parameter to `.Axes.draw` is no longer supported. |
| 18 | +Use ``axes.draw_artist(axes)`` instead. |
| 19 | + |
| 20 | +These changes make the signature of the ``draw`` (``artist.draw(renderer)``) |
| 21 | +method consistent across all artists; thus, additional parameters to |
| 22 | +`.Artist.draw` have also been removed. |
| 23 | + |
| 24 | +``Axes.update_datalim_bounds`` |
| 25 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 26 | +This method has been removed. Use |
| 27 | +``ax.dataLim.set(Bbox.union([ax.dataLim, bounds]))`` instead. |
| 28 | + |
| 29 | +``{,Symmetrical}LogScale.{,Inverted}LogTransform`` |
| 30 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 31 | +``LogScale.LogTransform``, ``LogScale.InvertedLogTransform``, |
| 32 | +``SymmetricalScale.SymmetricalTransform`` and |
| 33 | +``SymmetricalScale.InvertedSymmetricalTransform`` have been removed. Directly |
| 34 | +access the transform classes from the `matplotlib.scale` module. |
| 35 | + |
| 36 | +log/symlog scale base, ticks, and nonpos specification |
| 37 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 38 | +`~.Axes.semilogx`, `~.Axes.semilogy`, `~.Axes.loglog`, `.LogScale`, and |
| 39 | +`.SymmetricalLogScale` used to take keyword arguments that depends on the axis |
| 40 | +orientation ("basex" vs "basey", "subsx" vs "subsy", "nonposx" vs "nonposy"); |
| 41 | +these parameter names have been removed in favor of "base", "subs", |
| 42 | +"nonpositive". This removal also affects e.g. ``ax.set_yscale("log", |
| 43 | +basey=...)`` which must now be spelled ``ax.set_yscale("log", base=...)``. |
| 44 | + |
| 45 | +The change from "nonpos" to "nonpositive" also affects `~.scale.LogTransform`, |
| 46 | +`~.scale.InvertedLogTransform`, `~.scale.SymmetricalLogTransform`, etc. |
| 47 | + |
| 48 | +To use *different* bases for the x-axis and y-axis of a `~.Axes.loglog` plot, |
| 49 | +use e.g. ``ax.set_xscale("log", base=10); ax.set_yscale("log", base=2)``. |
| 50 | + |
| 51 | +Implicit initialization of ``Tick`` attributes |
| 52 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 53 | + |
| 54 | +The `.Tick` constructor no longer initializes the attributes ``tick1line``, |
| 55 | +``tick2line``, ``gridline``, ``label1``, and ``label2`` via ``_get_tick1line``, |
| 56 | +``_get_tick2line``, ``_get_gridline``, ``_get_text1``, and ``_get_text2``. |
| 57 | +Please directly set the attribute in the subclass' ``__init__`` instead. |
| 58 | + |
| 59 | +Unused parameters |
| 60 | +~~~~~~~~~~~~~~~~~ |
| 61 | +The following parameters do not have any effect and have been removed: |
| 62 | + |
| 63 | +- parameter *label* of `.Tick` |
0 commit comments