Skip to content

Commit a225aa8

Browse files
committed
Fix comments on clipping in norms
1 parent da915c9 commit a225aa8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/colors.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,8 @@ def __init__(self, vmin=None, vmax=None, clip=False):
12141214
are mapped to 0 or 1, whichever is closer, and masked values are
12151215
set to 1. If ``False`` masked values remain masked.
12161216
1217-
Clipping silently defeats the purpose of setting the over, under,
1218-
and masked colors in a colormap, so it is likely to lead to
1217+
Clipping silently defeats the purpose of setting the over and
1218+
under colors in a colormap, so it is likely to lead to
12191219
surprises; therefore the default is ``clip=False``.
12201220
12211221
Notes
@@ -1775,8 +1775,8 @@ def forward(values: array-like) -> array-like
17751775
are mapped to 0 or 1, whichever is closer, and masked values are
17761776
set to 1. If ``False`` masked values remain masked.
17771777
1778-
Clipping silently defeats the purpose of setting the over, under,
1779-
and masked colors in a colormap, so it is likely to lead to
1778+
Clipping silently defeats the purpose of setting the over and
1779+
under colors in a colormap, so it is likely to lead to
17801780
surprises; therefore the default is ``clip=False``.
17811781
"""
17821782

@@ -1875,9 +1875,9 @@ class PowerNorm(Normalize):
18751875
are mapped to 0 or 1, whichever is closer, and masked values
18761876
remain masked.
18771877
1878-
Clipping silently defeats the purpose of setting the over, under,
1879-
and masked colors in a colormap, so it is likely to lead to
1880-
surprises; therefore the default is ``clip=False``.
1878+
Clipping silently defeats the purpose of setting the over and under
1879+
colors, so it is likely to lead to surprises; therefore the default
1880+
is ``clip=False``.
18811881
18821882
Notes
18831883
-----

0 commit comments

Comments
 (0)