mpl_toolkits.axisartist.grid_finder.DictFormatter

class mpl_toolkits.axisartist.grid_finder.DictFormatter(format_dict, formatter=None) [source]

Bases: object

format_dict : dictionary for format strings to be used. formatter : fall-back formatter

__call__(self, direction, factor, values) [source]

factor is ignored if value is found in the dictionary

__dict__ = mappingproxy({'__module__': 'mpl_toolkits.axisartist.grid_finder', '__init__': <function DictFormatter.__init__>, '__call__': <function DictFormatter.__call__>, '__dict__': <attribute '__dict__' of 'DictFormatter' objects>, '__weakref__': <attribute '__weakref__' of 'DictFormatter' objects>, '__doc__': None})
__init__(self, format_dict, formatter=None) [source]

format_dict : dictionary for format strings to be used. formatter : fall-back formatter

__module__ = 'mpl_toolkits.axisartist.grid_finder'
__weakref__

list of weak references to the object (if defined)

Examples using mpl_toolkits.axisartist.grid_finder.DictFormatter

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.3.3/api/_as_gen/mpl_toolkits.axisartist.grid_finder.DictFormatter.html