LineOptions#

Module: exa.core.plotting.plot_options

class LineOptions(line_style=LineStyle.SOLID, marker_style=MarkerStyle.NONE, marker_size=5, marker_fill_style=MarkerFillStyle.FULL, line_width=2, color=None, alpha=1.0, offset=0.0)#

Bases: object

Options to customize the appearance of a line or scatter data object.

Attributes

alpha

Alpha value that describes visibility, from 0.0 (fully transparent) to 1.0 (fully visible).

color

Color of the line and markers.

line_style

Line style.

line_width

Linewidth of lines and markers, in pixels.

marker_fill_style

Marker fill.

marker_size

Marker size.

marker_style

Marker style.

offset

Offset value for shifting line on y-axis.

Methods

copy

Returns a copy where attributes given in attributes are changed.

for_data_points

Default look meant for datapoints.

Parameters:
line_style: LineStyle = 'solid'#

Line style.

marker_style: MarkerStyle = ''#

Marker style.

marker_size: float = 5#

Marker size.

marker_fill_style: MarkerFillStyle = 'full'#

Marker fill.

line_width: float = 2#

Linewidth of lines and markers, in pixels.

color: str | None = None#

Color of the line and markers. Can be given as strings recognized by matplotlib, see https://matplotlib.org/3.1.0/tutorials/colors/colors.html. By default, uses the cycling colors set by style.

alpha: float = 1.0#

Alpha value that describes visibility, from 0.0 (fully transparent) to 1.0 (fully visible). For an alternative way to set transparency, see color.

offset: float = 0.0#

Offset value for shifting line on y-axis.

copy(**attributes)#

Returns a copy where attributes given in attributes are changed.

Return type:

LineOptions

for_data_points(with_fits)#

Default look meant for datapoints.

Parameters:

with_fits (bool) – If True, will format markers so that they look nice with solid lines underneath.

Return type:

LineOptions

Inheritance

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