In [1]:
from plotly import tools as tls
import plotly.plotly as py
from plotly.graph_objs import *
import sys
sys.path.append('/mnt/labshare/Programs/python/HelperFunctions/')
from myfunctions import *
from os import listdir, path
In [2]:
datadir = '/mnt/labshare/Experiments/JPM/CH007 HEMT Readout/data/CH007_HEMT'
x, z = getLatest(datadir, mode='Quad')
In [3]:
realPlot = Scatter(x=x, y=z['real'])
imagPlot = Scatter(x=x, y=z['imag'])
phasePlot = Scatter(x=x, y=z['phase'])
ampPlot = Scatter(x=x, y=z['amp'])
In [4]:
fig = tls.make_subplots(rows=2, cols=2, subplot_titles=('Amplitude', 'Phase', 'Real', 'Imaginary'), print_grid=False)
In [5]:
fig.append_trace(ampPlot, 1, 1)
fig.append_trace(phasePlot, 1, 2)
fig.append_trace(realPlot, 2, 1)
fig.append_trace(imagPlot, 2, 2)
In [6]:
iplot(fig)
In [31]:
listdir(datadir)
datapath = path.join(datadir, '160223')
print([d for d in listdir(datapath) if 'pwr' in d])
In [20]:
f = path.join(datapath, '53_CH007_HEMT_cav_flux_fine.h5')
x, y, z = getH5Data(f, mode="Quad")
In [24]:
fig['layout']['title'] = "Title"
iplot(fig)
In [ ]: