Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,15 @@ def same_color(c1, c2):
"""
Return whether the colors *c1* and *c2* are the same.

*c1*, *c2* can be single colors or lists/arrays of colors.
Parameters
----------
c1, c2 : :mpltype:`color` or list of :mpltype:`color` or RGB(A) array
If passing multiple colors, *c1* and *c2* must be of the same length. RGB(A)
arrays must be of shape (ncolors, 3) or (ncolors, 4).

Returns
-------
bool
"""
c1 = to_rgba_array(c1)
c2 = to_rgba_array(c2)
Expand Down
Loading