Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c1edde

Browse filesBrowse files
committed
Fix docstring of pyplot.clim()
1 parent 559925e commit 7c1edde
Copy full SHA for 7c1edde

File tree

Expand file treeCollapse file tree

1 file changed

+3
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-7
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+3-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.