MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / changed

Method changed

site-packages/matplotlib/contour.py:1154–1171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1152 return [mpath.Path(seg) for seg in segs]
1153
1154 def changed(self):
1155 tcolors = [(tuple(rgba),)
1156 for rgba in self.to_rgba(self.cvalues, alpha=self.alpha)]
1157 self.tcolors = tcolors
1158 hatches = self.hatches * len(tcolors)
1159 for color, hatch, collection in zip(tcolors, hatches,
1160 self.collections):
1161 if self.filled:
1162 collection.set_facecolor(color)
1163 # update the collection's hatch (may be None)
1164 collection.set_hatch(hatch)
1165 else:
1166 collection.set_color(color)
1167 for label, cv in zip(self.labelTexts, self.labelCValues):
1168 label.set_alpha(self.alpha)
1169 label.set_color(self.labelMappable.to_rgba(cv))
1170 # add label colors
1171 cm.ScalarMappable.changed(self)
1172
1173 def _autolev(self, N):
1174 """

Callers 2

__init__Method · 0.95
set_alphaMethod · 0.95

Calls 5

to_rgbaMethod · 0.45
set_facecolorMethod · 0.45
set_hatchMethod · 0.45
set_colorMethod · 0.45
set_alphaMethod · 0.45

Tested by

no test coverage detected