From 7205985f6984f17bcb8cb59b97c71f3acf66ab4d Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Fri, 8 Apr 2016 01:22:53 +0800 Subject: [PATCH] applets: style --- artiq/applets/image.py | 1 - artiq/applets/plot_hist.py | 1 - artiq/applets/plot_xy_hist.py | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/artiq/applets/image.py b/artiq/applets/image.py index 86b8653e7..f64e71ff8 100755 --- a/artiq/applets/image.py +++ b/artiq/applets/image.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3.5 -import numpy as np import PyQt5 # make sure pyqtgraph imports Qt5 import pyqtgraph diff --git a/artiq/applets/plot_hist.py b/artiq/applets/plot_hist.py index 3f46ffa1e..b577120e7 100755 --- a/artiq/applets/plot_hist.py +++ b/artiq/applets/plot_hist.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3.5 -import numpy as np import PyQt5 # make sure pyqtgraph imports Qt5 import pyqtgraph diff --git a/artiq/applets/plot_xy_hist.py b/artiq/applets/plot_xy_hist.py index 0bf8987f3..bc5cfbe7e 100755 --- a/artiq/applets/plot_xy_hist.py +++ b/artiq/applets/plot_xy_hist.py @@ -23,7 +23,7 @@ def _compute_ys(histogram_bins, histograms_counts): class XYHistPlot(QtWidgets.QSplitter): def __init__(self, args): QtWidgets.QSplitter.__init__(self) - self.resize(1000,600) + self.resize(1000, 600) self.setWindowTitle("XY/Histogram") self.xy_plot = pyqtgraph.PlotWidget() @@ -121,7 +121,7 @@ class XYHistPlot(QtWidgets.QSplitter): self._set_partial_data(xs, histograms_counts) else: self._set_full_data(xs, histogram_bins, histograms_counts) - + def main(): applet = SimpleApplet(XYHistPlot)