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

Method format_ydata

lib/matplotlib/axes/_base.py:4246–4254  ·  view source on GitHub ↗

Return *y* formatted as a y-value. This function will use the `!fmt_ydata` attribute if it is not None, else will fall back on the yaxis major formatter.

(self, y)

Source from the content-addressed store, hash-verified

4244 else self.xaxis.get_major_formatter().format_data_short)(x)
4245
4246 def format_ydata(self, y):
4247 """
4248 Return *y* formatted as a y-value.
4249
4250 This function will use the `!fmt_ydata` attribute if it is not None,
4251 else will fall back on the yaxis major formatter.
4252 """
4253 return (self.fmt_ydata if self.fmt_ydata is not None
4254 else self.yaxis.get_major_formatter().format_data_short)(y)
4255
4256 def format_coord(self, x, y):
4257 """Return a format string formatting the *x*, *y* coordinates."""

Callers 4

format_coordMethod · 0.95
_location_coordsMethod · 0.80
format_coordMethod · 0.80

Calls 1

get_major_formatterMethod · 0.80

Tested by 1