FigureOptions#

Module: exa.core.plotting.plot_options

class FigureOptions(save_type=SaveType.PNG, style=PlotStyle.DEFAULT, aspect_ratio=0.75, magnification=2.0, dpi=72, background='#fff', title_wrap=120, title_font_size=10, font_size=10, border_width=2, complex_options=None, plot_options=None, fit_annotations=None, is_colormap=False, is_contour=False)#

Bases: object

Options to change the appearance of a exa.core.plotting.figure.Figure.

Attributes

aspect_ratio

Aspect ratio of all the axes in the Figure.

background

Background color of the Figure (behond the individual axes).

border_width

Width of the border boxes and tick marks, in pixels.

complex_options

Options to change the appearance for figures with complex data

dpi

Dots-per-inch, used when scaling the figure.

fit_annotations

Options for fit parameter annotations.

font_size

Font size of everything else.

is_colormap

Plot the data as a colormap.

is_contour

Plot the data as a contour plot.

magnification

Magnification factor.

plot_options

Options to change the appearance of all subplots in this figure.

save_type

File format to use when saving the figure.

style

General color theme to use when cycling line and marker colors.

title_font_size

Font size of the title.

title_wrap

Wrap the title to another line after this many characters.

Methods

copy

Returns a copy where attributes given in attributes are changed.

Parameters:
save_type: SaveType = 'png'#

File format to use when saving the figure.

style: PlotStyle = 'default'#

General color theme to use when cycling line and marker colors.

aspect_ratio: float = 0.75#

Aspect ratio of all the axes in the Figure. Ratio of width/height.

magnification: float = 2.0#

Magnification factor.

dpi: int = 72#

Dots-per-inch, used when scaling the figure.

background: str = '#fff'#

Background color of the Figure (behond the individual axes). Formatted as hex color string, like '#ffffff' for white, '#000000' for black.

title_wrap: int = 120#

Wrap the title to another line after this many characters.

title_font_size: int = 10#

Font size of the title.

font_size: int = 10#

Font size of everything else.

border_width: int = 2#

Width of the border boxes and tick marks, in pixels.

complex_options: ComplexOptions | None = None#

Options to change the appearance for figures with complex data

plot_options: PlotOptions | None = None#

Options to change the appearance of all subplots in this figure.

fit_annotations: FitAnnotationOptions | None = None#

Options for fit parameter annotations.

is_colormap: bool = False#

Plot the data as a colormap. Can’t be used with is_contour.

is_contour: bool = False#

Plot the data as a contour plot. Can’t be used with is_colormap.

copy(**attributes)#

Returns a copy where attributes given in attributes are changed.

Return type:

FigureOptions

Inheritance

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