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

Method format_ticks

lib/matplotlib/ticker.py:239–255  ·  view source on GitHub ↗

Return the tick label strings for all *values*. This is the public API for generating tick labels. It calls ``set_locs`` to configure context-dependent formatting state before delegating to ``__call__`` for each individual value. The output may contain mat

(self, values)

Source from the content-addressed store, hash-verified

237 raise NotImplementedError('Derived must override')
238
239 def format_ticks(self, values):
240 """
241 Return the tick label strings for all *values*.
242
243 This is the public API for generating tick labels. It calls
244 ``set_locs`` to configure context-dependent formatting state before
245 delegating to ``__call__`` for each individual value.
246
247 The output may contain mathtext or LaTeX markup.
248
249 Use this method (rather than ``__call__``) whenever formatting a
250 complete set of tick values, so that formatters which need to see
251 all tick locations (e.g. to determine precision, offsets, or which
252 date components to display) can work correctly.
253 """
254 self.set_locs(values)
255 return [self(value, i) for i, value in enumerate(values)]
256
257 def format_data(self, value):
258 """

Callers 10

get_tick_iteratorsMethod · 0.45
get_tick_iteratorsMethod · 0.45
_format_ticksMethod · 0.45
__call__Method · 0.45
_update_ticksMethod · 0.45
_formatMethod · 0.45
_formatMethod · 0.45
get_textMethod · 0.45
test_minor_vs_majorMethod · 0.45
test_minor_numberMethod · 0.45

Calls 1

set_locsMethod · 0.95

Tested by 2

test_minor_vs_majorMethod · 0.36
test_minor_numberMethod · 0.36