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

Method __call__

lib/matplotlib/ticker.py:1639–1643  ·  view source on GitHub ↗

Format the tick as a percentage with the appropriate scaling.

(self, x, pos=None)

Source from the content-addressed store, hash-verified

1637 self._is_latex = is_latex
1638
1639 def __call__(self, x, pos=None):
1640 """Format the tick as a percentage with the appropriate scaling."""
1641 ax_min, ax_max = self.axis.get_view_interval()
1642 display_range = abs(ax_max - ax_min)
1643 return self.fix_minus(self.format_pct(x, display_range))
1644
1645 def format_pct(self, x, display_range):
1646 """

Callers

nothing calls this directly

Calls 3

format_pctMethod · 0.95
fix_minusMethod · 0.80
get_view_intervalMethod · 0.45

Tested by

no test coverage detected