ScaledFormatter

Inheritance Diagram

digraph inheritance5f088cfa4d { bgcolor=transparent; fontsize=12; rankdir=TB; ratio=compress; size="8.0, 12.0"; "Formatter" [URL="https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.Formatter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Create a string based on a tick value and location."]; "TickHelper" -> "Formatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ScaledFormatter" [URL="mplotter.annotating.ScaledFormatter.html#mplotter.annotating.ScaledFormatter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Formatter" -> "ScaledFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TickHelper" [URL="https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.TickHelper",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }

Methods

ScaledFormatter.__init__([unit, squeeze])

ScaledFormatter.create_dummy_axis(**kwargs)

ScaledFormatter.fix_minus(s)

Some classes may want to replace a hyphen for minus with the proper Unicode symbol (U+2212) for typographical correctness.

ScaledFormatter.format_data(value)

Return the full string representation of the value with the position unspecified.

ScaledFormatter.format_data_short(value)

Return a short string version of the tick value.

ScaledFormatter.format_ticks(values)

Return the tick labels for all the ticks at once.

ScaledFormatter.get_offset()

ScaledFormatter.set_axis(axis)

ScaledFormatter.set_locs(locs)

Set the locations of the ticks.

Attributes and Properties

ScaledFormatter.axis

ScaledFormatter.locs

class ScaledFormatter(unit=1, squeeze=True)[source]

Bases: Formatter