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

Skip to content

Commit d7340c9

Browse files
authored
Merge pull request #14015 from timhoffm/pyplot.clim
Fix docstring of pyplot.clim()
2 parents 470a1ab + 7c1edde commit d7340c9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/matplotlib/pyplot.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,18 +2027,14 @@ def clim(vmin=None, vmax=None):
20272027
"""
20282028
Set the color limits of the current image.
20292029
2030-
To apply clim to all axes images do::
2031-
2032-
clim(0, 0.5)
2033-
20342030
If either *vmin* or *vmax* is None, the image min/max respectively
20352031
will be used for color scaling.
20362032
2037-
If you want to set the clim of multiple images,
2038-
use, for example::
2033+
If you want to set the clim of multiple images, use
2034+
`~.ScalarMappable.set_clim` on every image, for example::
20392035
20402036
for im in gca().get_images():
2041-
im.set_clim(0, 0.05)
2037+
im.set_clim(0, 0.5)
20422038
20432039
"""
20442040
im = gci()

0 commit comments

Comments
 (0)