Commit 34ef1b39 authored by Hannah Middleton's avatar Hannah Middleton
Browse files

editing cascade plot

parent 93fd1820
......@@ -24,7 +24,7 @@ def offset(myFig,myAx,n=1,yOff=60):
#shift = yOff / myFig.dpi
#dx, dy = 0., shift
#print(myFig.dpi,yOff,shift)
shift = 0.0625
shift = 0.02
dx, dy = 0., shift
return (myAx.transData + mpl.transforms.ScaledTranslation(dx,n*dy,myFig.dpi_scale_trans)), shift
......@@ -82,8 +82,8 @@ def cc(arg):
fig, ax = plt.subplots(figsize=(5,6))
sampling = 5.
noToPlot = 60
sampling = 2.
noToPlot =210
thetas= np.arange(0,sampling*noToPlot,sampling)
number = len(thetas)
......@@ -93,7 +93,7 @@ number = len(thetas)
startTime = 1166401536
batchSize = 64*2
batchSize = 64*5
fPlotLow = 59.5
fPlotHigh = 60.5
......@@ -117,7 +117,7 @@ ax.set_xlim(fPlotLow, fPlotHigh)
ax.set_xlabel('Frequency (Hz)')
ax.grid(False)
#ax.set_xlim(59.5,60.5)
ax.set_ylim(-3,max(log10ys)+(noToPlot*shift)+20)
ax.set_ylim(-3,max(log10ys)+(noToPlot*shift)+95)
#ax.set_ylim(min(np.log10(ys)),max(np.log10(ys))*noToPlot)
#ax.set_ylim(0.0,1.5)
for side in ["top", "right", "left"]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment