Skip to content

Commit

Permalink
Remove redundant behaviour changes in 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Sep 15, 2022
1 parent cbf990d commit e467be4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
21 changes: 0 additions & 21 deletions doc/api/prev_api_changes/api_changes_3.6.0/behaviour.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@ AGG renderer. Previously such a large image would be shown incorrectly. To
prevent this downsampling and the warning it raises, manually downsample your
data before handing it to `~matplotlib.axes.Axes.imshow`.

New *algorithm* keyword argument to ``contour`` and ``contourf``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The contouring functions `~matplotlib.axes.Axes.contour` and
`~matplotlib.axes.Axes.contourf` have a new keyword argument *algorithm* to
control which algorithm is used to calculate the contours. There is a choice of
four algorithms to use, and the default is to use ``algorithm='mpl2014'`` which
is the same algorithm that Matplotlib has been using since 2014.

Other possible values of the *algorithm* keyword argument are ``'mpl2005'``,
``'serial'`` and ``'threaded'``; see the `ContourPy documentation
<https://contourpy.readthedocs.io>`_ for further details.

Default date limits changed to 1970-01-01 – 1970-01-02
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -64,14 +51,6 @@ Previously `.Axis.get_ticklabels` (and `.Axes.get_xticklabels`,
already been performed. Now the ticks and their labels are updated when the
labels are requested.

Added *markerfacecoloralt* parameter to ``Axes.errorbar``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The *markerfacecoloralt* parameter is now passed to the line plotter from
`.Axes.errorbar`. The documentation now accurately lists which properties are
passed to `.Line2D`, rather than claiming that all keyword arguments are passed
on.

Warning when scatter plot color settings discarded
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
21 changes: 12 additions & 9 deletions doc/users/prev_whats_new/whats_new_3.6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,19 +234,22 @@ only be set globally via :rc:`contour.negative_linestyles`.
axs[1].clabel(CS, fontsize=9, inline=True)
axs[1].set_title('Dotted negative contours')

ContourPy used for quad contour calculations
--------------------------------------------
Imrpoved quad contour calculations via ContourPy
------------------------------------------------

The contouring functions `~.axes.Axes.contour` and `~.axes.Axes.contourf` have
a new keyword argument *algorithm* to control which algorithm is used to
calculate the contours. There is a choice of four algorithms to use, and the
default is to use ``algorithm='mpl2014'`` which is the same algorithm that
Matplotlib has been using since 2014.

Previously Matplotlib shipped its own C++ code for calculating the contours of
quad grids. Now the external library `ContourPy
<https://github.com/contourpy/contourpy>`_ is used instead. There is a choice
of four algorithms to use, controlled by the *algorithm* keyword argument to
the functions `~.axes.Axes.contour` and `~.axes.Axes.contourf`. The default
behaviour is to use ``algorithm='mpl2014'`` which is the same algorithm that
Matplotlib has been using since 2014.
<https://github.com/contourpy/contourpy>`_ is used instead.

See the `ContourPy documentation <https://contourpy.readthedocs.io>`_ for
further details of the different algorithms.
Other possible values of the *algorithm* keyword argument at this time are
``'mpl2005'``, ``'serial'`` and ``'threaded'``; see the `ContourPy
documentation <https://contourpy.readthedocs.io>`_ for further details.

.. note::

Expand Down

0 comments on commit e467be4

Please sign in to comment.