PlotToolButtons: QToolButtons for plot widgets

This module provides a set of QToolButton to use with PlotWidget.

The following QToolButton are available:

class silx.gui.plot.PlotToolButtons.PlotToolButton(parent=None, plot=None)[source]

A QToolButton connected to a PlotWidget.

plot()[source]

Returns the plot connected to the widget.

setPlot(plot)[source]

Set the plot connected to the widget

Parameters:plotPlotWidget instance on which to operate.
class silx.gui.plot.PlotToolButtons.AspectToolButton(parent=None, plot=None)[source]

Tool button to switch keep aspect ratio of a plot

STATE = None

Lazy loaded states used to feed AspectToolButton

keepDataAspectRatio()[source]

Configure the plot to keep the aspect ratio

dontKeepDataAspectRatio()[source]

Configure the plot to not keep the aspect ratio

class silx.gui.plot.PlotToolButtons.YAxisOriginToolButton(parent=None, plot=None)[source]

Tool button to switch the Y axis orientation of a plot.

STATE = None

Lazy loaded states used to feed YAxisOriginToolButton

setYAxisUpward()[source]

Configure the plot to use y-axis upward

setYAxisDownward()[source]

Configure the plot to use y-axis downward

class silx.gui.plot.PlotToolButtons.ProfileToolButton(parent=None, plot=None)[source]

Button used in Profile3DToolbar to switch between 2D profile and 1D profile.

STATE = None

Lazy loaded states used to feed ProfileToolButton

class silx.gui.plot.PlotToolButtons.SymbolToolButton(parent=None, plot=None)[source]

A tool button with a drop-down menu to control symbol size and marker.

Parameters:
  • parent – See QWidget
  • plot – The ~silx.gui.plot.PlotWidget to control