mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-23 17:08:12 +08:00
applets: style
This commit is contained in:
parent
001f6d6fab
commit
9ceca44dbe
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python3.5
|
#!/usr/bin/env python3.5
|
||||||
|
|
||||||
import numpy as np
|
|
||||||
import PyQt5 # make sure pyqtgraph imports Qt5
|
import PyQt5 # make sure pyqtgraph imports Qt5
|
||||||
import pyqtgraph
|
import pyqtgraph
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ def _compute_ys(histogram_bins, histograms_counts):
|
|||||||
class XYHistPlot(QtWidgets.QSplitter):
|
class XYHistPlot(QtWidgets.QSplitter):
|
||||||
def __init__(self, args):
|
def __init__(self, args):
|
||||||
QtWidgets.QSplitter.__init__(self)
|
QtWidgets.QSplitter.__init__(self)
|
||||||
self.resize(1000,600)
|
self.resize(1000, 600)
|
||||||
self.setWindowTitle("XY/Histogram")
|
self.setWindowTitle("XY/Histogram")
|
||||||
|
|
||||||
self.xy_plot = pyqtgraph.PlotWidget()
|
self.xy_plot = pyqtgraph.PlotWidget()
|
||||||
@ -121,7 +121,7 @@ class XYHistPlot(QtWidgets.QSplitter):
|
|||||||
self._set_partial_data(xs, histograms_counts)
|
self._set_partial_data(xs, histograms_counts)
|
||||||
else:
|
else:
|
||||||
self._set_full_data(xs, histogram_bins, histograms_counts)
|
self._set_full_data(xs, histogram_bins, histograms_counts)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
applet = SimpleApplet(XYHistPlot)
|
applet = SimpleApplet(XYHistPlot)
|
||||||
|
Loading…
Reference in New Issue
Block a user