Dummy replacement for `Normalize`, for the case where we want to use indices directly in a `~matplotlib.cm.ScalarMappable`.
| 3326 | |
| 3327 | |
| 3328 | class NoNorm(Normalize): |
| 3329 | """ |
| 3330 | Dummy replacement for `Normalize`, for the case where we want to use |
| 3331 | indices directly in a `~matplotlib.cm.ScalarMappable`. |
| 3332 | """ |
| 3333 | def __call__(self, value, clip=None): |
| 3334 | if np.iterable(value): |
| 3335 | return np.ma.array(value) |
| 3336 | return value |
| 3337 | |
| 3338 | def inverse(self, value): |
| 3339 | if np.iterable(value): |
| 3340 | return np.ma.array(value) |
| 3341 | return value |
| 3342 | |
| 3343 | |
| 3344 | class MultiNorm(Norm): |
no outgoing calls
searching dependent graphs…