Skip to content

Commit 552f39f

Browse files
committed
Fixes for plotting of windowed expts
1 parent 07046b9 commit 552f39f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

findSim.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ def displayPlots( self, fname, modelLookup, stims, hideSubplots, exptType, bigFo
554554
xpts = np.array( range( len( ypts ) ) ) * self.plotDt[idx] / tconv
555555
if self.window:
556556
#print( "scaling plot, baseline = ", self.window["baseline"], "scale = ", scale , self.normMode, self.ratioData )
557-
ypts = (ypts - self.window["baseline"])/scale
557+
#ypts = (ypts - self.window["baseline"])/scale
558+
#ypts = (ypts - self.window["baseline"])
559+
ypts = ypts/scale
558560
else:
559561
ypts /= scale
560562
if not self.isPlotOnly :
@@ -782,7 +784,7 @@ def consolidateWindows( self ):
782784
elif op == "sdev":
783785
rd.append( np.sdev( rb ) )
784786
bl = w["baseline"] # Use baseline computed above.
785-
rd = [ x - bl for x in rd ]
787+
rd = [ (x/self.quantityScale - bl) for x in rd ]
786788
self.ratioData = rd
787789
self.simData = sd
788790

0 commit comments

Comments
 (0)