Return whether the value(s) are within the valid range for this scale. This is True for value(s) > 0 except +inf and NaN.
(self, val)
| 434 | minpos if vmax <= 0 else vmax) |
| 435 | |
| 436 | def val_in_range(self, val): |
| 437 | """ |
| 438 | Return whether the value(s) are within the valid range for this scale. |
| 439 | |
| 440 | This is True for value(s) > 0 except +inf and NaN. |
| 441 | """ |
| 442 | arr = np.asarray(val) |
| 443 | with np.errstate(invalid='ignore'): |
| 444 | result = np.isfinite(arr) & (arr > 0) |
| 445 | return bool(result) if arr.ndim == 0 else result |
| 446 | |
| 447 | |
| 448 | class FuncScaleLog(LogScale): |
no outgoing calls