You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I can measure a simple array and plot using either MatPlot or QtPlot. But when I start processing this data, there is no good option to plot the results with the same axis and labels.
An example:
importmatplotlib.pyplotaspltimportcopyimportnumpyasnpimportqcodesasqc#%% Make toy modelfromtoymodelimportAModel, MockGates, MockSource, MockMeter, AverageGetter, AverageAndRawmodel=AModel()
gates=MockGates('gates', model=model)
source=MockSource('source', model=model)
meter=MockMeter('meter', model=model)
station=qc.Station(gates, source, meter)
station.set_measurement(meter.amplitude)
c0, c1, c2, vsd=gates.chan0, gates.chan1, gates.chan2, source.amplitude#%% 1D loop to make datadata=qc.Loop(c0[-20:20:0.2], 0.01).run(location='data/testsweep', overwrite=True)
data.complete()
Plotting the data is fine!
plotQ=qc.QtPlot(data.amplitude)
Now suppose we want to calculate the derivative and show results. We can convert to Numpy and show results, but then we have no axis labels...
Activity
AdriaanRol commentedon Jul 15, 2016
Related to using Dataset outside of the loop.
Not possible to change things and then save back the changes.
kunnykun commentedon Dec 31, 2017
where can I find toymodel?
WilliamHPNielsen commentedon Jan 1, 2018
@kunnykun it no longer exists. If you need some toy (mock) instruments to play around with, see the
Tutorial.ipynb.