def save_chart(self): ''' opens the save chart dialog ''' from app import SaveChartDialog, MatplotlibExportProcessor if self.analysisTabs.currentIndex() == 0: SaveChartDialog( self, 'peak spectrum', self.spectrumChart.canvas.figure, MatplotlibExportProcessor( self.spectrumChart.canvas.figure)).exec() elif self.analysisTabs.currentIndex() == 1: SaveChartDialog( self, 'waveform', self.waveformChart.canvas.figure, MatplotlibExportProcessor( self.waveformChart.canvas.figure)).exec()
def export_chart(self): ''' exports the waveform chart. ''' from app import SaveChartDialog, PyQtGraphExportProcessor SaveChartDialog(self.__chart, 'waveform', self.__chart, PyQtGraphExportProcessor()).exec()
def export_chart(self, status_bar=None): ''' Exports the chart. ''' from app import SaveChartDialog, MatplotlibExportProcessor SaveChartDialog(self.__chart, self.__name, self.__chart.canvas.figure, MatplotlibExportProcessor(self.__chart.canvas.figure), statusbar=status_bar).exec()