From 9ceca44dbe4e147d1333c014b351ece4f931ab59 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/plot_hist.py | 1 - artiq/applets/plot_xy_hist.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/artiq/applets/plot_hist.py b/artiq/applets/plot_hist.py index ff77365fc..f08c362c3 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)