8.6.2.3. pymodaq_gui.examples.curves module

class pymodaq_gui.examples.curves.Curve(pen='w')[source]

Bases: GraphicsObject

Bases: GraphicsObject

Item displaying an isocurve of a 2D array. To align this item correctly with an ImageItem, call isocurve.setParentItem(image).

Methods

setBrush(*args, **kwargs)

Set the brush used to draw the isocurve.

setData(data[, level])

Set the data/image to draw isocurves for.

setPen(*args, **kwargs)

Set the pen used to draw the isocurve.

boundingRect

generatePath

paint

boundingRect()[source]
generatePath()[source]
paint(p, *args)[source]
setBrush(*args, **kwargs)[source]

Set the brush used to draw the isocurve. Arguments can be any that are valid for mkBrush

setData(data, level=None)[source]

Set the data/image to draw isocurves for.

Arguments:

data

A 2-dimensional ndarray.

level

The cutoff value at which to draw the curve. If level is not specified, the previously set level is used.

setPen(*args, **kwargs)[source]

Set the pen used to draw the isocurve. Arguments can be any that are valid for mkPen

staticMetaObject = PySide6.QtCore.QMetaObject("Curve" inherits "GraphicsObject": )
pymodaq_gui.examples.curves.generate_uniform_data()[source]
Return type:

DataRaw

pymodaq_gui.examples.curves.main(data_distribution='uniform')[source]

either ‘uniform’ or ‘spread’