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

Skip to content

Commit f0375b6

Browse files
committed
Add match_original to Collections
1 parent 254f145 commit f0375b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def __init__(self, *,
171171
# Flags set by _set_mappable_flags: are colors from mapping an array?
172172
self._face_is_mapped = None
173173
self._edge_is_mapped = None
174+
self._match_original = False
174175
self._mapped_colors = None # calculated in update_scalarmappable
175176
self._hatch_color = mcolors.to_rgba(mpl.rcParams['hatch.color'])
176177
self.set_facecolor(facecolors)
@@ -1884,7 +1885,6 @@ def __init__(self, patches, *, match_original=False, **kwargs):
18841885
a call to `~.ScalarMappable.set_array`), at draw time a call to scalar
18851886
mappable will be made to set the face colors.
18861887
"""
1887-
self._match_original = False
18881888

18891889
if match_original:
18901890
self._match_original = True

0 commit comments

Comments
 (0)