SgnScalarFormatter

Inheritance Diagram

digraph inheritance76de050f36 { 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)"]; "ScalarFormatter" [URL="https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.ScalarFormatter",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="Format tick values as a number."]; "Formatter" -> "ScalarFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SgnScalarFormatter" [URL="mplotter.annotating.SgnScalarFormatter.html#mplotter.annotating.SgnScalarFormatter",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" -> "SgnScalarFormatter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ScalarFormatter" -> "SgnScalarFormatter" [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

SgnScalarFormatter.__init__([sign])

SgnScalarFormatter.create_dummy_axis(**kwargs)

SgnScalarFormatter.fix_minus(s)

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

SgnScalarFormatter.format_data(value)

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

SgnScalarFormatter.format_data_short(value)

Return a short string version of the tick value.

SgnScalarFormatter.format_ticks(values)

Return the tick labels for all the ticks at once.

SgnScalarFormatter.get_offset()

Return scientific notation, plus offset.

SgnScalarFormatter.get_useLocale()

Return whether locale settings are used for formatting.

SgnScalarFormatter.get_useMathText()

Return whether to use fancy math formatting.

SgnScalarFormatter.get_useOffset()

Return whether automatic mode for offset notation is active.

SgnScalarFormatter.set_axis(axis)

SgnScalarFormatter.set_locs(locs)

Set the locations of the ticks.

SgnScalarFormatter.set_powerlimits(lims)

Set size thresholds for scientific notation.

SgnScalarFormatter.set_scientific(b)

Turn scientific notation on or off.

SgnScalarFormatter.set_useLocale(val)

Set whether to use locale settings for decimal sign and positive sign.

SgnScalarFormatter.set_useMathText(val)

Set whether to use fancy math formatting.

SgnScalarFormatter.set_useOffset(val)

Set whether to use offset notation.

Attributes and Properties

SgnScalarFormatter.axis

SgnScalarFormatter.locs

SgnScalarFormatter.useLocale

Return whether locale settings are used for formatting.

SgnScalarFormatter.useMathText

Return whether to use fancy math formatting.

SgnScalarFormatter.useOffset

Return whether automatic mode for offset notation is active.

class SgnScalarFormatter(sign=None, **kwargs)[source]

Bases: SignedFormatter, ScalarFormatter

set_locs(locs)[source]

Set the locations of the ticks.

This method is called before computing the tick labels because some formatters need to know all tick locations to do so.