Show
Ignore:
Timestamp:
07/25/08 14:55:23 (4 months ago)
Author:
apdavison
Message:

In signals module:

  • renamed SpikeTrain.rescale() to SpikeTrain.relative_times(). This seems clearer to me since 'rescale' implies multiplication whereas we only do a subtraction.
  • added SpikeTrain.merge(), which adds the spike times from another spike train to this one.
  • fixed a bug in iterating over a SpikeList object.
  • added SpikeList.f1f0_ratios(). This might be a bit too vision-specific, but since it is not uncommon to have oscillatory patterns in spike trains I think it should be here.

In plotting module: minor improvement to spacing between subplots, which is now proportional to the size of the subplots and may be different for the vertical and horizontal layout.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/plotting.py

    r158 r186  
    8787        bottommargin = 0.1 
    8888        leftmargin=0.1 
    89         panelsep = 0.05 
    90         panelheight = (1 - topmargin - bottommargin - (nrows-1)*panelsep)/nrows 
    91         panelwidth = (1 - leftmargin - rightmargin - (ncolumns-1)*panelsep)/ncolumns 
     89        v_panelsep = 0.1*(1 - topmargin - bottommargin)/nrows #0.05 
     90        h_panelsep = 0.1*(1 - leftmargin - rightmargin)/ncolumns 
     91        panelheight = (1 - topmargin - bottommargin - (nrows-1)*v_panelsep)/nrows 
     92        panelwidth = (1 - leftmargin - rightmargin - (ncolumns-1)*h_panelsep)/ncolumns 
    9293        assert panelheight > 0 
    9394         
    94         bottomlist = [bottommargin + i*panelsep + i*panelheight for i in range(nrows)] 
    95         leftlist = [leftmargin + j*panelsep + j*panelwidth for j in range(ncolumns)] 
     95        bottomlist = [bottommargin + i*v_panelsep + i*panelheight for i in range(nrows)] 
     96        leftlist = [leftmargin + j*h_panelsep + j*panelwidth for j in range(ncolumns)] 
    9697        bottomlist.reverse() 
    9798        for j in range(ncolumns):