Set the default limits for the axis data and view interval if they have not been not mutated yet.
(self)
| 1226 | self._set_lim(*sorted((a, b), reverse=bool(inverted)), auto=None) |
| 1227 | |
| 1228 | def set_default_intervals(self): |
| 1229 | """ |
| 1230 | Set the default limits for the axis data and view interval if they |
| 1231 | have not been not mutated yet. |
| 1232 | """ |
| 1233 | # this is mainly in support of custom object plotting. For |
| 1234 | # example, if someone passes in a datetime object, we do not |
| 1235 | # know automagically how to set the default min/max of the |
| 1236 | # data and view limits. The unit conversion AxisInfo |
| 1237 | # interface provides a hook for custom types to register |
| 1238 | # default limits through the AxisInfo.default_limits |
| 1239 | # attribute, and the derived code below will check for that |
| 1240 | # and use it if it's available (else just use 0..1) |
| 1241 | |
| 1242 | def _set_lim(self, v0, v1, *, emit=True, auto): |
| 1243 | """ |