PlotWindow

A PlotWidget with additionnal toolbars.

The PlotWindow is a subclass of PlotWidget. It provides the plot API fully defined in Plot.

PlotWindow class

class silx.gui.plot.PlotWindow.PlotWindow(parent=None, backend=None, resetzoom=True, autoScale=True, logScale=True, grid=True, curveStyle=True, colormap=True, aspectRatio=True, yInverted=True, copy=True, save=True, print_=True, autoreplot=True)[source]

Bases: silx.gui.plot.PlotWidget.PlotWidget

Qt Widget providing a 1D/2D plot area and additional tools.

This widget includes the following QAction as attributes:

  • resetZoomAction: Reset zoom
  • xAxisAutoScaleAction: Toggle X axis autoscale
  • yAxisAutoScaleAction: Toggle Y axis autoscale
  • xAxisLogarithmicAction: Toggle X axis log scale
  • yAxisLogarithmicAction: Toggle Y axis log scale
  • gridAction: Toggle plot grid
  • curveStyleAction: Change curve line and markers style
  • colormapAction: Open a colormap dialog to change active image and default colormap.
  • keepDataAspectRatioAction: Toggle keep aspect ratio
  • yAxisInvertedAction: Toggle Y Axis direction
  • copyAction: Copy plot snapshot to clipboard
  • saveAction: Save plot
  • printAction: Print plot

Initialiser parameters:

Parameters:
  • parent – The parent of this widget or None.
  • backend (str or BackendBase.BackendBase) – The backend to use for the plot. The default is to use matplotlib.
  • resetzoom (bool) – Toggle visibility of reset zoom action.
  • autoScale (bool) – Toggle visibility of axes autoscale actions.
  • logScale (bool) – Toggle visibility of axes log scale actions.
  • grid (bool) – Toggle visibility of grid mode action.
  • curveStyle (bool) – Toggle visibility of curve style action.
  • colormap (bool) – Toggle visibility of colormap action.
  • aspectRatio (bool) – Toggle visibility of aspect ration action.
  • yInverted (bool) – Toggle visibility of Y axis direction action.
  • copy (bool) – Toggle visibility if copy action.
  • save (bool) – Toggle visibility of save action.
  • print (bool) – Toggle visibility of print action.
  • autoreplot (bool) – Toggle autoreplot mode (Default: True).
menu(title='Plot', parent=None)[source]

Return a QMenu from the QAction of the PlotWindow.

Parameters:
  • title (str) – The title of the QMenu
  • parent – See QMenu
toolBar(title='Plot', parent=None)[source]

Return a QToolBar from the QAction of the PlotWindow.

Parameters:
  • title (str) – The title of the QMenu
  • parent – See QToolBar

Table Of Contents

Previous topic

PlotWidget

Next topic

Package structure

This Page