(self)
| 964 | return (lowers, uppers) |
| 965 | |
| 966 | def changed(self): |
| 967 | if not hasattr(self, "cvalues"): |
| 968 | self._process_colors() # Sets cvalues. |
| 969 | # Force an autoscale immediately because self.to_rgba() calls |
| 970 | # autoscale_None() internally with the data passed to it, |
| 971 | # so if vmin/vmax are not set yet, this would override them with |
| 972 | # content from *cvalues* rather than levels like we want |
| 973 | self.norm.autoscale_None(self.levels) |
| 974 | self.set_array(self.cvalues) |
| 975 | self.update_scalarmappable() |
| 976 | alphas = np.broadcast_to(self.get_alpha(), len(self.cvalues)) |
| 977 | for label, cv, alpha in zip(self.labelTexts, self.labelCValues, alphas): |
| 978 | label.set_alpha(alpha) |
| 979 | label.set_color(self.labelMappable.to_rgba(cv)) |
| 980 | super().changed() |
| 981 | |
| 982 | def _ensure_locator_exists(self, N): |
| 983 | """ |
no test coverage detected