| 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 | """ |