8.5.1.2. 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

boundingRect()

paint(self, painter, option[, widget])

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.

generatePath

boundingRect()[source]
generatePath()[source]
paint(self, painter: QPainter | None, option: QStyleOptionGraphicsItem | None, widget: QWidget | None = None)[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

pymodaq_gui.examples.curves.generate_uniform_data()[source]
Return type:

DataRaw

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

either ‘uniform’ or ‘spread’