SSFractionFormatter

Inheritance Diagram

digraph inheritance8135f753cc { 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)"]; "SSFractionFormatter" [URL="mplotter.annotating.SSFractionFormatter.html#mplotter.annotating.SSFractionFormatter",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"]; "SignedFormatter" -> "SSFractionFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ScaledFormatter" -> "SSFractionFormatter" [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)"]; "SignedFormatter" [URL="mplotter.annotating.SignedFormatter.html#mplotter.annotating.SignedFormatter",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" -> "SignedFormatter" [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

SSFractionFormatter.__init__(D[, frac, ...])

SSFractionFormatter.create_dummy_axis(**kwargs)

SSFractionFormatter.fix_minus(s)

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

SSFractionFormatter.format_data(value)

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

SSFractionFormatter.format_data_short(value)

Return a short string version of the tick value.

SSFractionFormatter.format_ticks(values)

Return the tick labels for all the ticks at once.

SSFractionFormatter.get_offset()

SSFractionFormatter.set_axis(axis)

SSFractionFormatter.set_locs(locs)

Set the locations of the ticks.

Attributes and Properties

SSFractionFormatter.axis

SSFractionFormatter.locs

class SSFractionFormatter(D, frac=True, sign=None, sign_zero=False, unit=1, squeeze=True)[source]

Bases: SignedFormatter, ScaledFormatter