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

Method format_zdata

lib/mpl_toolkits/mplot3d/axes3d.py:1610–1621  ·  view source on GitHub ↗

Return *z* string formatted. This function will use the :attr:`!fmt_zdata` attribute if it is callable, else will fall back on the zaxis major formatter

(self, z)

Source from the content-addressed store, hash-verified

1608 self.roll = roll
1609
1610 def format_zdata(self, z):
1611 """
1612 Return *z* string formatted. This function will use the
1613 :attr:`!fmt_zdata` attribute if it is callable, else will fall
1614 back on the zaxis major formatter
1615 """
1616 try:
1617 return self.fmt_zdata(z)
1618 except (AttributeError, TypeError):
1619 func = self.zaxis.get_major_formatter().format_data_short
1620 val = func(z)
1621 return val
1622
1623 def format_coord(self, xv, yv, renderer=None):
1624 """

Callers 1

_location_coordsMethod · 0.95

Calls 2

get_major_formatterMethod · 0.80
funcFunction · 0.50

Tested by

no test coverage detected