silx.gui.plot.actions.io

silx.gui.plot.actions.io provides a set of QAction relative of inputs and outputs for a PlotWidget.

The following QAction are available:

class silx.gui.plot.actions.io.SaveAction(plot, parent=None)[source]

QAction for saving Plot content.

It opens a Save as... dialog.

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

QAction for printing the plot.

It opens a Print dialog.

Current implementation print a bitmap of the plot area and not vector graphics, so printing quality is not great.

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

The QPrinter instance used by the actions.

This is shared accross all instances of PrintAct

printPlotAsWidget()[source]

Open the print dialog and print the plot.

Use QWidget.render() to print the plot

Returns:True if successful
printPlot()[source]

Open the print dialog and print the plot.

Use Plot.saveGraph() to print the plot.

Returns:True if successful
class silx.gui.plot.actions.io.CopyAction(plot, parent=None)[source]

QAction to copy PlotWidget content to clipboard.

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

Copy plot content to the clipboard as a bitmap.