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

Skip to content

Commit b06cae8

Browse files
committed
Add array compatability
1 parent acd94e1 commit b06cae8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def same_color(c1, c2):
125125
bool
126126
``True`` if *c1* and *c2* are the same color, otherwise ``False``.
127127
"""
128-
return to_rgba(c1) == to_rgba(c2)
128+
return (to_rgba_array(c1) == to_rgba_array(c2)).all()
129129

130130

131131
def to_rgba(c, alpha=None):

0 commit comments

Comments
 (0)