stoner_measurement.plugins.command.plot_markers.RemovePlotMarkersCommand

class stoner_measurement.plugins.command.plot_markers.RemovePlotMarkersCommand(parent=None)[source]

Bases: CommandPlugin

Remove all data markers from the main plot.

This command has no configurable values. Execution calls the plot widget’s clear_data_markers() API. Plot traces and axis configuration are left unchanged.

Variables:
  • clear_plot_markers (pyqtSignal) – Signal connected to the main plot’s marker-clearing API while attached to a sequence engine.

  • instance_name (str) – Inherited Python identifier for this instance in the Script tab and QtConsole.

  • comment (str) – Inherited optional note displayed beside this step.

  • sequence_engine (SequenceEngine | None) – Inherited owning engine and its live namespace; None while detached.

Keyword Parameters:

parent (QObject | None) – Optional Qt parent object.

Examples

With an instance named remove_plot_markers in the sequence, use the QtConsole to inspect or edit it before running. Substitute your instance name if different; result data reflects completed steps:

remove_plot_markers.instance_name
remove_plot_markers.execute()
clear_plot_markers

Qt signal.

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

types is normally a sequence of individual types.  Each type is either a
type object or a string that is the name of a C++ type.  Alternatively
each type could itself be a sequence of types each describing a different
overloaded signal.
name is the optional C++ name of the signal.  If it is not specified then
the name of the class attribute that is bound to the signal is used.
revision is the optional revision of the signal that is exported to QML.
If it is not specified then 0 is used.
arguments is the optional sequence of the names of the signal's arguments.
config_widget(parent: QWidget | None = None) → QWidget[source]

Return the informational configuration page.

execute() → None[source]

Request removal of every marker from the main plot.

property name: str

Return the user-visible plugin name.

property sequence_engine: SequenceEngine | None

Return the owning sequence engine, if attached.