LabelFormatter

LabelFormatter#

Module: exa.core.plotting.plot_styles

class LabelFormatter(value)#

Bases: IntEnum

Label formatter enum.

Attributes

NONE

STRING

SCALAR

LOG

PERCENT

ENGINEERING

Methods

formatter

Set label formatter for specified axis.

formatter(decimal_places=None, label_format=None, percent_scale=None)#

Set label formatter for specified axis.

Parameters:
  • decimal_places (int | None) – Number of decimal places for numeric labels along an axis.

  • label_format (str | None) – String format for label.

  • percent_scale (float | None) – Maximum value used to scale label to percentage.

Return type:

Formatter

Inheritance

Inheritance diagram of exa.core.plotting.plot_styles.LabelFormatter