In [1]:
import sys
sys.path.append('/mnt/labshare/Programs/python/HelperFunctions/')
from myfunctions import *
from os import path, listdir, stat
import plotly.tools as tls
import plotly.plotly as py
In [50]:
samplename = 'CH008'
maindatapath = '/mnt/labshare/Experiments/JPM/CH008/'
listdir(maindatapath)
Out[50]:
In [51]:
plotS21(path.join(maindatapath, '2-8GHz.s2p'))
Out[51]:
In [33]:
plotDispersiveShift(path.join(maindatapath, 'dispshift'), samplename=samplename)
In [45]:
fluxdatapath = path.join(maindatapath, 'fluxAt60dBm')
plotFluxDependence(fluxdatapath, samplename=samplename);
In [46]:
fluxfiles = sorted(listdir(fluxdatapath), key=lambda x: float(x.split('.')[0]))
fluxes = []
s21 = []
for f in fluxfiles:
fluxes.append(float(f.split('.')[0]))
fig, x, y = plotS21(path.join(fluxdatapath, f), show=False)
s21.append(10**(y/20.))
trace = Heatmap(
x = x,
y = fluxes,
z = s21
)
iplot(Figure(data = [trace]))
In [25]:
fig, x, y = plotS21(path.join(fluxdatapath, f))
In [49]:
fluxdatapath = path.join(maindatapath, 'flux2At65dBm')
plotFluxDependence(fluxdatapath, samplename=samplename);
fluxfiles = sorted(listdir(fluxdatapath), key=lambda x: float(x.split('.s2p')[0]))
fluxes = []
s21 = []
for f in fluxfiles:
fluxes.append(float(f.split('.s2p')[0]))
fig, x, y = plotS21(path.join(fluxdatapath, f), show=False)
s21.append(10.**(y/20.))
# s21.append(y)
trace = Heatmap(
x = x,
y = fluxes,
z = s21
)
iplot(Figure(data = [trace]))
In [ ]: