diff --git a/bec_widgets/scan2d_plot.py b/bec_widgets/scan2d_plot.py index 4c1bedaf..57a7f4af 100644 --- a/bec_widgets/scan2d_plot.py +++ b/bec_widgets/scan2d_plot.py @@ -122,3 +122,19 @@ class BECScanPlot2D(pg.GraphicsView): @z_channel.setter def z_channel(self, new_val): self._z_channel = new_val + + +if __name__ == "__main__": + import sys + + from PyQt5.QtWidgets import QApplication + + app = QApplication(sys.argv) + + plot = BECScanPlot2D() + # If x_channel and y_channel are both omitted, they will be inferred from each running grid scan + plot.z_channel = "bpm3y" + + plot.show() + + sys.exit(app.exec_()) diff --git a/bec_widgets/scan_plot.py b/bec_widgets/scan_plot.py index 2e554ce5..8905c588 100644 --- a/bec_widgets/scan_plot.py +++ b/bec_widgets/scan_plot.py @@ -124,9 +124,9 @@ if __name__ == "__main__": app = QApplication(sys.argv) plot = BECScanPlot() - plot.y_channel_list = ["a", "b", "c"] + plot.x_channel = "samx" + plot.y_channel_list = ["bpm3y", "bpm6y"] - plot.initialize() plot.show() sys.exit(app.exec_())