SignedFormatter

Inheritance Diagram

digraph inheritance426df62e5d { 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)"]; "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

SignedFormatter.__init__([sign, sign_zero])

SignedFormatter.create_dummy_axis(**kwargs)

SignedFormatter.fix_minus(s)

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

SignedFormatter.format_data(value)

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

SignedFormatter.format_data_short(value)

Return a short string version of the tick value.

SignedFormatter.format_ticks(values)

Return the tick labels for all the ticks at once.

SignedFormatter.get_offset()

SignedFormatter.set_axis(axis)

SignedFormatter.set_locs(locs)

Set the locations of the ticks.

Attributes and Properties

SignedFormatter.axis

SignedFormatter.locs

class SignedFormatter(sign=None, sign_zero=True)[source]

Bases: Formatter

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.