AxisOptions#
Module: exa.core.plotting.plot_options
- class AxisOptions(log_scale=False, tick_locator=TickLocator.EXTENDED_WILKINSON, label_formatter=LabelFormatter.SCALAR, tick_count=None, decimal_places=None, label_format=None, percent_scale=None, use_grid=False, lower_limit=None, upper_limit=None)#
Bases:
objectOptions to customize the appearance of an axis.
Attributes
If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.ENGINEERING, the number of decimal places shown in tick labels.If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.STRING, this is used to format each tick label.Option to select how to format tick labels.
Plot this axis on a logarithmic scale.
Lower limit for this axis.
If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.PERCENT, the numbers on an axis are divided by this number before displaying them as percentages.How many ticks to show on the axis.
Option to select how to place tick labels.
Upper limit for this axis.
Whether to use background grid for this axis.
Methods
Returns a copy where attributes given in attributes are changed.
- Parameters:
log_scale (bool)
tick_locator (TickLocator)
label_formatter (LabelFormatter)
tick_count (int | None)
decimal_places (int | None)
label_format (str | None)
percent_scale (float | None)
use_grid (bool)
lower_limit (Any | None)
upper_limit (Any | None)
- tick_locator: TickLocator = 4#
Option to select how to place tick labels.
- label_formatter: LabelFormatter = 2#
Option to select how to format tick labels.
- decimal_places: int | None = None#
If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.ENGINEERING, the number of decimal places shown in tick labels. Defaults to Matplotlib behavior.
- label_format: str | None = None#
If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.STRING, this is used to format each tick label. For example,'{x} ns'writes ‘ns’ after the number in each tick label. Default: no special formatting.
- percent_scale: float | None = None#
If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.PERCENT, the numbers on an axis are divided by this number before displaying them as percentages. Default: 1.
- copy(**attributes)#
Returns a copy where attributes given in attributes are changed.
- Return type:
Inheritance
