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:
objectOptions to customize color bar appearance.
Attributes
Only used when plotting colormaps.
Number of decimal places for numeric tick labels.
If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.STRING, this is used to format each tick label.How to format tick labels.
If
label_formatterisexa.core.plotting.plot_styles.LabelFormatter.PERCENT, the numbers on an axis are divided by this number before displaying them as percentages.Methods
Returns a copy where attributes given in attributes are changed.
- Parameters:
label_formatter (LabelFormatter)
decimal_places (int | None)
label_format (str | None)
percent_scale (float | None)
colormap (ColorMap)
- 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_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
