How to use the qcodes.QtPlot function in qcodes

To help you get started, we’ve selected a few qcodes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github QuTech-Delft / qtt / src / qtt / gui / live_plotting.py View on Github external
Returns:
            dict: created gui objects
        """
        windows = {}

        ms = monitorSizes()
        vv = ms[-1]

        if create_parameter_widget and any([station, ilist]):
            if ilist is None:
                ilist = [station.gates]
            w = qtt.createParameterWidget(ilist)
            w.setGeometry(vv[0] + vv[2] - 400 - 300, vv[1], 300, 600)
            windows['parameterviewer'] = w

        plotQ = QtPlot(window_title='Live plot', interval=.5)
        plotQ.setGeometry(vv[0] + vv[2] - 600, vv[1] + vv[3] - 400, 600, 400)
        plotQ.update()

        qtt.gui.live_plotting.liveplotwindow = plotQ

        windows['plotwindow'] = plotQ

        app = QtWidgets.QApplication.instance()
        app.processEvents()

        return windows
github QuTech-Delft / qtt / docs / notebooks / simulation / example_dotsystem.py View on Github external
def showImage(data, im):
    pl = qc.QtPlot(qtt.scans.getDefaultParameter(data))
    return pl
pl = showImage(data, imc)
github QuTech-Delft / qtt / qtt / logviewer.py View on Github external
def __init__(self, window_title='Log Viewer', debugdict=dict()):
        super(LogViewer, self).__init__()

        self.verbose=0
        self.text= QtWidgets.QLabel()
        self.text.setText('Log files at %s' %  qcodes.DataSet.default_io.base_location)
        self.logtree= QtWidgets.QTreeView() # QTreeWidget
        self.logtree.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self._treemodel = QtGui.QStandardItemModel()
        self.logtree.setModel(self._treemodel)
        self.__debug = debugdict
        self.qplot= qc.QtPlot(remote=False)
        self.plotwindow= self.qplot.win
        #self.plotwindow = pg.GraphicsWindow(title='dummy')

        vertLayout = QtWidgets.QVBoxLayout()
        vertLayout.addWidget(self.text)
        vertLayout.addWidget(self.logtree)
        vertLayout.addWidget(self.plotwindow)
        self.setLayout(vertLayout)

        self._treemodel.setHorizontalHeaderLabels(['Log', 'Comments'])
        self.setWindowTitle(window_title)        
        self.logtree.header().resizeSection(0, 200)


        # disable edit
        self.logtree.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
github QuTech-Delft / qtt / examples / tno_toymodel.py View on Github external
#data = scan1D(scanjob, station, location='testsweep3', background=True)

#%%

if __name__ == '__main__':
    p = qtt.scans.getDefaultParameter(data)
    print(p)

#%%

if __name__ == '__main__':

    #plotQ = qc.MatPlot(data.amplitude)
    if plotQ is None:
        plotQ = qc.QtPlot(qtt.scans.getDefaultParameter(data), windowTitle='Live plot', remote=False)
        #plotQ.win.setGeometry(1920+360, 100, 800, 600)
        data.sync()
        plotQ.update()
        mwindows['parameterviewer'].callbacklist.append(plotQ.update)
    else:
        data.sync()
        plotQ.clear()
        plotQ.add(qtt.scans.getDefaultParameter(data))


#%%
from imp import reload
if __name__ == '__main__':
    reload(qcodes.plots)
    reload(qtt.scans)