matplotlib.colors.same_color#

matplotlib.colors.same_color(c1, c2)[source]#

Return whether the colors c1 and c2 are the same.

Parameters:
c1, c2color or list of 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

Examples using matplotlib.colors.same_color#

Colors in the default property cycle

Colors in the default property cycle