Пример #1
0
 def createWidget(self, parent):
     from silx.gui import plot
     widget = plot.StackView(parent=parent)
     widget.setKeepDataAspectRatio(True)
     widget.setLabels(self.axesNames(None, None))
     # hide default option panel
     widget.setOptionVisible(False)
     return widget
Пример #2
0
 def stackPlot(self):
     try:
         widget = silx_plot.StackView()
         image = numpy.arange(10 * 10).reshape(10, -1)
         cube = numpy.array([image, image, image])
         widget.setStack(cube)
         widget.resetZoom()
         widget.show()
         self.qWaitForWindowExposed(widget)
         yield widget.getPlotWidget()
     finally:
         widget.close()
         widget = None
         self.qWait()