8000 Added an api_changes entry for contour levels & colours with the exte… · matplotlib/matplotlib@dac1530 · GitHub
[go: up one dir, main page]

Skip to content

Commit dac1530

Browse files
committed
Added an api_changes entry for contour levels & colours with the extend keyword set.
1 parent d582cec commit dac1530

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

doc/api/api_changes.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,25 @@ Changes in 1.3.x
2424
value of this kwarg is ``head_width = 20 * width``.
2525

2626
* Removed call of :meth:`~matplotlib.axes.Axes.grid` in
27-
:meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set to *True*
28-
matplotlib.rcParams['axes.grid'] or ``axes.grid`` in ``.matplotlibrc`` or
29-
explicitly call :meth:`~matplotlib.axes.Axes.grid`
27+
:meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set the
28+
``axes.grid`` rcParam to *True*, or explicitly call
29+
:meth:`~matplotlib.axes.Axes.grid`.
30+
31+
* It is now posible to provide ``number of levels + 1`` colors in the case of
32+
`extend='both'` for contourf (or just ``number of levels`` colors for an
33+
extend value ``min`` or ``max``) such that the resulting colormap's
34+
``set_under`` and ``set_over`` are defined appropriately. Any other number
35+
of colors will continue to behave as before (if more colors are provided
36+
than levels, the colors will be unused). A similar change has been applied
37+
to contour, where ``extend='both'`` would expect ``number of levels + 2``
38+
colors.
3039

3140
* A new keyword *extendrect* in :meth:`~matplotlib.pyplot.colorbar` and
3241
:class:`~matplotlib.colorbar.ColorbarBase` allows one to control the shape
3342
of colorbar extensions.
3443

3544
* The `~matplotlib.mpl` module is now deprecated. Those who relied on this
36-
module should transition to simply using `import matplotlib as mpl`.
45+
module should transition to simply using ``import matplotlib as mpl``.
3746

3847
* The extension of :class:`~matplotlib.widgets.MultiCursor` to both vertical
3948
(default) and/or horizontal cursor implied that ``self.line`` is replaced
@@ -44,8 +53,8 @@ Changes in 1.3.x
4453
raises :class:`NotImplementedError` instead of :class:`OSError` if the
4554
:command:`ps` command cannot be run.
4655

47-
* The :func:`~matplotlib.cbook.check_output` function has been moved to
48-
`~matplotlib.compat.subprocess`.
56+
* The :func:`matplotlib.cbook.check_output` function has been moved to
57+
:func:`matplotlib.compat.subprocess`.
4958

5059
* :class:`~matplotlib.patches.Patch` now fully supports using RGBA values for
5160
its ``facecolor`` and ``edgecolor`` attributes, which enables faces and

0 commit comments

Comments
 (0)
0