def exportActivePlot(self): active_plot = self.getActivePlot() if self.__exporter is None: path = None else: path = self.__exporter.getCurrentPath() report_step = self.__toolbar.getReportStep() x_axis_type_name = active_plot.xAxisType() y_axis_type_name = active_plot.yAxisType() x_min, x_max = self.__plot_metrics_tracker.getScalesForType( x_axis_type_name) y_min, y_max = self.__plot_metrics_tracker.getScalesForType( y_axis_type_name) settings = { "x_min": x_min, "x_max": x_max, "y_min": y_min, "y_max": y_max, "report_step": report_step } self.__exporter = ExportPlot( active_plot, settings, self.__customize_plot_widget.getCustomSettings(), path) self.__exporter.export()