Set whether this Axis is oriented in the "inverse" direction. The "normal" direction is increasing to the right for the x-axis and to the top for the y-axis; the "inverse" direction is increasing to the left for the x-axis and to the bottom for the y-axis.
(self, inverted)
| 1214 | return high < low |
| 1215 | |
| 1216 | def set_inverted(self, inverted): |
| 1217 | """ |
| 1218 | Set whether this Axis is oriented in the "inverse" direction. |
| 1219 | |
| 1220 | The "normal" direction is increasing to the right for the x-axis and to |
| 1221 | the top for the y-axis; the "inverse" direction is increasing to the |
| 1222 | left for the x-axis and to the bottom for the y-axis. |
| 1223 | """ |
| 1224 | a, b = self.get_view_interval() |
| 1225 | # cast to bool to avoid bad interaction between python 3.8 and np.bool_ |
| 1226 | self._set_lim(*sorted((a, b), reverse=bool(inverted)), auto=None) |
| 1227 | |
| 1228 | def set_default_intervals(self): |
| 1229 | """ |