Contour module

class lys.widgets.canvas.interface.Contour.ContourData(canvas, wave, axis)[source]

Bases: WaveData

getColor()[source]

Get color of the contour line.

Returns

color string such as #ff0000

Return type

str

getLevel()[source]

Get level of the contour.

Returns

The level

Return type

float

getStyle()[source]

Get the style of the line.

Returns

Style string.

Return type

str

getWidth()[source]

Get the width of the line.

Returns

The width of the line.

Return type

float

setColor(color)[source]

Set color of the contour line.

Parameters

color (str) – rgb color string such as #ff0000.

setLevel(level)[source]

Set level of the contour.

Parameters

level (float) – The level.

setStyle(style)[source]

Set the style of the line.

Parameters

style ('solid', 'dashed', 'dashdot', 'dotted', 'None') – Style string.

setWidth(width)[source]

Set the width of the line.

Parameters

width (float) – The width of the line.