Chartview#

Charting widget

class mdaviz.chartview.ChartView(*args: Any, **kwargs: Any)[source]#

TODO: docstrings

calculateCursors()[source]#

Update cursor information in info panel widget.

plot(row, *ds, **options)[source]#

The main method called by MDA_MVC

class mdaviz.chartview.CurveManager(*args: Any, **kwargs: Any)[source]#
addCurve(row, *ds, **options)[source]#

Add a new curve to the manager if not already present on the graph.

allCurvesRemoved#

alias of bool

curveAdded#

alias of str

curveRemoved#

alias of str

curveUpdated#

alias of str

curves()[source]#

Returns a read-only view of the currently managed curves.

findCurveID(file_path, row)[source]#

Find the curveID based on the file path and row number.

Parameters: - file_path (str): The path of the file associated with the curve. - row (int): The row number in the file tableview associated with the curve.

Returns: - str: The curveID if a matching curve is found; otherwise, None.

generateCurveID(label, file_path)[source]#

Generates a unique curve label for a given label, considering the file path.

Parameters:

  • label (str): The original label for the curve: “file_name: PV_name (PV_unit)” or “file_name: PV_name” (if no PV_unit)

  • file_path (str): The file path associated with the curve.

Returns:

  • str: A unique curve label. If the exact label already exists for different file path, a numeric suffix is appended: “file_name: PV_name (PV_unit) (1)” or “file_name: PV_name (1)”

Note

This method allows each curve to be uniquely identified and selected, even if their base labels are identical, by considering their file paths.

getCurveData(curveID)[source]#

Get curve data by ID.

removeAllCurves(doNotClearCheckboxes=True)[source]#

Remove all curves from the manager.

removeCurve(curveID)[source]#

Remove a curve from the manager.

updateCurve(curveID, curveData, recompute_y=False, update_x=False)[source]#

Update an existing curve.

mdaviz.chartview.auto_color()[source]#

Returns next color for pens and brushes.

mdaviz.chartview.auto_symbol()[source]#

Returns next symbol for scatter plots.