[Pybrainsim-activity] SF.net SVN: pybrainsim:[84] trunk/src/Experiment.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-05 10:23:17
|
Revision: 84 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=84&view=rev Author: rgoj Date: 2009-08-05 10:23:11 +0000 (Wed, 05 Aug 2009) Log Message: ----------- * The plotRecording function now plots the first channel of the recording Modified Paths: -------------- trunk/src/Experiment.py Modified: trunk/src/Experiment.py =================================================================== --- trunk/src/Experiment.py 2009-08-05 10:06:51 UTC (rev 83) +++ trunk/src/Experiment.py 2009-08-05 10:23:11 UTC (rev 84) @@ -58,13 +58,11 @@ return self.stimulusTimes def plotRecording(self): - t = arange( 0.0, 2.0, 0.01 ) - #t = arange( 1.0/128, 1.0 + 1.0/128, 1.0/128 ) - s = sin(2*pi*t) - plot(t, s, linewidth=1.0) + timePoints = arange( 1.0/self.samplingFrequency, self.duration + 1.0/self.samplingFrequency, 1.0/self.samplingFrequency ) + plot(timePoints, self.recording[0], linewidth=1.0) - xlabel('time (s)') - ylabel('voltage (mV)') + xlabel('Time (s)') + ylabel('Amplitude') title('Simulated EEG recording') grid(True) show() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |