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

Method format_xdata

lib/matplotlib/axes/_base.py:4236–4244  ·  view source on GitHub ↗

Return *x* formatted as an x-value. This function will use the `!fmt_xdata` attribute if it is not None, else will fall back on the xaxis major formatter.

(self, x)

Source from the content-addressed store, hash-verified

4234 yaxis_date = _axis_method_wrapper("yaxis", "axis_date")
4235
4236 def format_xdata(self, x):
4237 """
4238 Return *x* formatted as an x-value.
4239
4240 This function will use the `!fmt_xdata` attribute if it is not None,
4241 else will fall back on the xaxis major formatter.
4242 """
4243 return (self.fmt_xdata if self.fmt_xdata is not None
4244 else self.xaxis.get_major_formatter().format_data_short)(x)
4245
4246 def format_ydata(self, y):
4247 """

Callers 4

format_coordMethod · 0.95
_location_coordsMethod · 0.80
format_coordMethod · 0.80

Calls 1

get_major_formatterMethod · 0.80

Tested by 1