Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7cc402

Browse files
tacaswellQuLogic
andauthored
MNT/DOC: suggestions from review
Whitespace and wording tweaks. Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 49902e9 commit f7cc402

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/users/next_whats_new/2020-05-28-extend_kwarg_to_BoundaryNorm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ New "extend" keyword to colors.BoundaryNorm
22
-------------------------------------------
33

44
`~.colors.BoundaryNorm` now has an ``extend`` keyword argument, analogous to
5-
``extend`` in ~.axes._axes.Axes.contourf`. When set to 'both', 'min', or 'max',
5+
``extend`` in `~.axes.Axes.contourf`. When set to 'both', 'min', or 'max',
66
it maps the corresponding out-of-range values to `~.colors.Colormap`
77
lookup-table indices near the appropriate ends of their range so that the
88
colors for out-of range values are adjacent to, but distinct from, their
99
in-range neighbors. The colorbar inherits the ``extend`` argument from the
1010
norm, so with ``extend='both'``, for example, the colorbar will have triangular
11-
extensions for out-of-range values with colors that differ from adjacent
11+
extensions for out-of-range values with colors that differ from adjacent in-range
1212
colors.
1313

1414
.. plot::

tutorials/colors/colorbar_only.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
bounds = [-1, 2, 5, 7, 12, 15]
5454
norm = mpl.colors.BoundaryNorm(bounds, cmap.N, extend='both')
5555
cb2 = mpl.colorbar.ColorbarBase(ax, cmap=cmap,
56-
norm=norm,
57-
orientation='horizontal')
56+
norm=norm,
57+
orientation='horizontal')
5858
cb2.set_label("Discrete intervals with extend='both' keyword")
5959
fig.show()
6060

0 commit comments

Comments
 (0)