diff options
-rw-r--r-- | eitControl.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eitControl.py b/eitControl.py index a409724..883c67c 100644 --- a/eitControl.py +++ b/eitControl.py @@ -157,11 +157,13 @@ class Experiment: except IOError: print('I/O error') + png_file=csv_file.replace(".csv", ".png") + print(f"Picture saved to {png_file}") try: ex = ImageExporter(self.channelGraph['adc0']) ex.parameters()['width'] = 800 ex.parameters()['height'] = 600 - ex.export("snapshot.png") + ex.export(png_file) except ZeroDivisionError: print("Early version (0.10.0) of PyQtGraph has bug in exporter. The image file is not generated.") |