Skip to content
Snippets Groups Projects
Commit 6235ecde authored by Jacob Wahlman's avatar Jacob Wahlman :ok_hand:
Browse files

added save for plot

parent 8e3cd1d4
No related branches found
No related tags found
1 merge request!54added logging and help section
Pipeline #15679 passed
......@@ -114,7 +114,7 @@ class Plot(FigureCanvas):
self._plot_values_sfg()
def _save_plot_figure(self):
self._window.logger.info(f"Saving plot of figure: {self.sfg.name}")
self._window.logger.info(f"Saving plot of figure: {self.sfg.name}.")
file_choices = "PNG (*.png)|*.png"
path, ext = QFileDialog.getSaveFileName(self, "Save file", "", file_choices)
path = path.encode("utf-8")
......@@ -123,6 +123,7 @@ class Plot(FigureCanvas):
if path:
self.print_figure(path.decode(), dpi=self.dpi)
self._window.logger.info(f"Saved plot: {self.sfg.name} to path: {path}.")
def _plot_values_sfg(self):
x_axis = list(range(len(self.simulation.results.keys())))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment