Return *data* with values that are out of range for this axis's scale replaced by NaN. E.g. ``<=0`` on a log axis.
(self, data)
| 838 | return self._scale.limit_range_for_scale(vmin, vmax, self.get_minpos()) |
| 839 | |
| 840 | def _nan_out_of_scale_range(self, data): |
| 841 | """ |
| 842 | Return *data* with values that are out of range for this axis's scale |
| 843 | replaced by NaN. E.g. ``<=0`` on a log axis. |
| 844 | """ |
| 845 | data = np.asanyarray(data, dtype=float) |
| 846 | valid = self._scale.val_in_range(data) |
| 847 | return data if np.all(valid) else np.where(valid, data, np.nan) |
| 848 | |
| 849 | def _get_autoscale_on(self): |
| 850 | """Return whether this Axis is autoscaled.""" |
no test coverage detected