MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_inverted

Method set_inverted

lib/matplotlib/axis.py:1216–1226  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 7

invert_xaxisMethod · 0.80
invert_yaxisMethod · 0.80
test_inverted_claFunction · 0.80
plot_color_sequencesFunction · 0.80
invert_axes.pyFile · 0.80
barh.pyFile · 0.80

Calls 2

get_view_intervalMethod · 0.95
_set_limMethod · 0.95

Tested by 2

test_inverted_claFunction · 0.64