ColorBarOptions#

Module: exa.core.plotting.plot_options

class ColorBarOptions(label_formatter=LabelFormatter.SCALAR, decimal_places=None, label_format=None, percent_scale=None, colormap=ColorMap.VIRIDIS)#

Bases: object

Options to customize color bar appearance.

Attributes

colormap

Only used when plotting colormaps.

decimal_places

Number of decimal places for numeric tick labels.

label_format

If label_formatter is exa.core.plotting.plot_styles.LabelFormatter.STRING, this is used to format each tick label.

label_formatter

How to format tick labels.

percent_scale

If label_formatter is exa.core.plotting.plot_styles.LabelFormatter.PERCENT, the numbers on an axis are divided by this number before displaying them as percentages.

Methods

copy

Returns a copy where attributes given in attributes are changed.

Parameters:
label_formatter: LabelFormatter = 2#

How to format tick labels.

decimal_places: int | None = None#

Number of decimal places for numeric tick labels. Defaults to Matplotlib behavior.

label_format: str | None = None#

If label_formatter is exa.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_formatter is exa.core.plotting.plot_styles.LabelFormatter.PERCENT, the numbers on an axis are divided by this number before displaying them as percentages. Default: 1.

colormap: ColorMap = 'viridis'#

Only used when plotting colormaps. The color type of the map.

copy(**attributes)#

Returns a copy where attributes given in attributes are changed.

Return type:

ColorBarOptions

Inheritance

Inheritance diagram of exa.core.plotting.plot_options.ColorBarOptions