silx.gui.plot.actions.control

silx.gui.plot.actions.control provides a set of QAction relative to control of a PlotWidget.

The following QAction are available:

class silx.gui.plot.actions.control.ResetZoomAction(plot, parent=None)[source]

QAction controlling reset zoom on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.ZoomBackAction(plot, parent=None)[source]

QAction performing a zoom-back in PlotWidget limits history.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.ZoomInAction(plot, parent=None)[source]

QAction performing a zoom-in on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.ZoomOutAction(plot, parent=None)[source]

QAction performing a zoom-out on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.XAxisAutoScaleAction(plot, parent=None)[source]

QAction controlling X axis autoscale on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.YAxisAutoScaleAction(plot, parent=None)[source]

QAction controlling Y axis autoscale on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.XAxisLogarithmicAction(plot, parent=None)[source]

QAction controlling X axis log scale on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.YAxisLogarithmicAction(plot, parent=None)[source]

QAction controlling Y axis log scale on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.GridAction(plot, gridMode='both', parent=None)[source]

QAction controlling grid mode on a PlotWidget.

Parameters:
class silx.gui.plot.actions.control.CurveStyleAction(plot, parent=None)[source]

QAction controlling curve style on a PlotWidget.

It changes the default line and markers style which updates all curves on the plot.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.ColormapAction(plot, parent=None)[source]

QAction opening a ColormapDialog to update the colormap.

Both the active image colormap and the default colormap are updated.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
setColorDialog(colorDialog)[source]

Set a specific color dialog instead of using the default dialog.

class silx.gui.plot.actions.control.ColorBarAction(plot, parent=None)[source]

QAction opening the ColorBarWidget of the specified plot.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.KeepAspectRatioAction(plot, parent=None)[source]

QAction controlling aspect ratio on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.YAxisInvertedAction(plot, parent=None)[source]

QAction controlling Y orientation on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.CrosshairAction(plot, color='black', linewidth=1, linestyle='-', parent=None)[source]

QAction toggling crosshair cursor on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • color (str) – Color to use to draw the crosshair
  • linewidth (int) – Width of the crosshair cursor
  • linestyle (str) – Style of line. See Plot.setGraphCursor()
  • parent – See QAction
color = None

Color used to draw the crosshair (str).

linewidth = None

Width of the crosshair cursor (int).

linestyle = None

Style of line of the cursor (str).

class silx.gui.plot.actions.control.PanWithArrowKeysAction(plot, parent=None)[source]

QAction toggling pan with arrow keys on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction
class silx.gui.plot.actions.control.ShowAxisAction(plot, parent=None)[source]

QAction controlling axis visibility on a PlotWidget.

Parameters:
  • plotPlotWidget instance on which to operate
  • parent – See QAction