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

Skip to content

Commit c94bc81

Browse files
Remove incorrect color/cmap docstring line in contour.py (#14757)
* removed incorrect color/cmap docstring line in contour.py * updated docstring to inform user of error raised when both colors/cmap are provided
1 parent 487f9f9 commit c94bc81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ def _initialize_x_y(self, z):
16631663
maps the level values to colors.
16641664
Defaults to :rc:`image.cmap`.
16651665
1666-
If given, *colors* take precedence over *cmap*.
1666+
If both *colors* and *cmap* are given, an error is raised.
16671667
16681668
norm : `~matplotlib.colors.Normalize`, optional
16691669
If a colormap is used, the `.Normalize` instance scales the level

0 commit comments

Comments
 (0)