MCPcopy
hub / github.com/matplotlib/matplotlib / get_xlim

Method get_xlim

lib/matplotlib/axes/_base.py:3853–3873  ·  view source on GitHub ↗

Return the x-axis view limits. Returns ------- left, right : (float, float) The current x-axis limits in data coordinates. See Also -------- .Axes.set_xlim .Axes.set_xbound, .Axes.get_xbound .Axes.invert_xaxis, .A

(self)

Source from the content-addressed store, hash-verified

3851 auto=None)
3852
3853 def get_xlim(self):
3854 """
3855 Return the x-axis view limits.
3856
3857 Returns
3858 -------
3859 left, right : (float, float)
3860 The current x-axis limits in data coordinates.
3861
3862 See Also
3863 --------
3864 .Axes.set_xlim
3865 .Axes.set_xbound, .Axes.get_xbound
3866 .Axes.invert_xaxis, .Axes.xaxis_inverted
3867
3868 Notes
3869 -----
3870 The x-axis may be inverted, in which case the *left* value will
3871 be greater than the *right* value.
3872 """
3873 return tuple(self.viewLim.intervalx)
3874
3875 def _validate_converted_limits(self, limit, convert):
3876 """

Callers 15

axisMethod · 0.95
get_xboundMethod · 0.95
_get_viewMethod · 0.95
_bounds_from_inset_axMethod · 0.45
_update_dividersMethod · 0.45
__init__Method · 0.45
_draw_shapeMethod · 0.45
xlimFunction · 0.45
scroll_handlerFunction · 0.45
set_thetalimMethod · 0.45
sharexMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_date_emptyFunction · 0.36
test_date_not_emptyFunction · 0.36
test_axhlineFunction · 0.36
test_datetime_maskedFunction · 0.36
test_sharedFunction · 0.36
test_interactive_zoomFunction · 0.36
test_interactive_panFunction · 0.36
test_maxlengthFunction · 0.36
test_maxlength_no_brokenFunction · 0.36
test_log_scalesFunction · 0.36