deephaven.plot.linestyle

The module implements the LineStyle class that can be used to define the line style of a plot.

class LineEndStyle(value)[source]

Bases: enum.Enum

An enum defining styles for shapes drawn at the end of a line.

BUTT = io.deephaven.plot.LineStyle$LineEndStyle(objectRef=0x33fb230)

Square line ending with edge against the end data points.

ROUND = io.deephaven.plot.LineStyle$LineEndStyle(objectRef=0x33fb238)

Round end shape.

SQUARE = io.deephaven.plot.LineStyle$LineEndStyle(objectRef=0x33fb240)

Square line ending. Similar to BUTT, but overshoots the end data points.

class LineJoinStyle(value)[source]

Bases: enum.Enum

An enum defining styles for drawing the connections between line segments.

BEVEL = io.deephaven.plot.LineStyle$LineJoinStyle(objectRef=0x33fb258)

Line joins are flat.

MITER = io.deephaven.plot.LineStyle$LineJoinStyle(objectRef=0x33fb260)

Line joins are pointed.

ROUND = io.deephaven.plot.LineStyle$LineJoinStyle(objectRef=0x33fb268)

Line joins are rounded.

class LineStyle(width=1.0, end_style=<LineEndStyle.ROUND: io.deephaven.plot.LineStyle$LineEndStyle(objectRef=0x33fb238)>, join_style=<LineJoinStyle.ROUND: io.deephaven.plot.LineStyle$LineJoinStyle(objectRef=0x33fb268)>, dash_pattern=None)[source]

Bases: deephaven._wrapper.JObjectWrapper

A LineStyle object represents the style of a line which includes line thickness, dash patterns, end styles, segment join styles, and dash patterns.

Line thickness is 1 by default. Larger numbers draw thicker lines.

Dash pattern is defined by a list of numbers. If only one value is included in the array, the dash and the gap after the dash will be the same. If more than one value is used in the array, the first value represents the length of the first dash in the line. The next value represents the length of the gap between it and the next dash. Additional values can be added into the array for subsequent dash/gap combinations. For example, the array [20,5] creates a dash pattern with a 20 length dash and a 5 length gap. This pattern is repeated till the end of the line.

j_object_type

alias of io.deephaven.plot.LineStyle