@@ -618,7 +618,7 @@ def peri_event_time_histogram(
618618
619619
620620def driftmap (ts , feat , ax = None , plot_style = 'bincount' ,
621- t_bin = 0.01 , d_bin = 20 , weights = None , ** kwargs ):
621+ t_bin = 0.01 , d_bin = 20 , weights = None , vmax = None , ** kwargs ):
622622 """
623623 Plots the values of a spike feature array (y-axis) over time (x-axis).
624624 Two arguments can be given for the plot_style of the drift map:
@@ -636,6 +636,7 @@ def driftmap(ts, feat, ax=None, plot_style='bincount',
636636 t_bin: time bin used when plot_style='bincount'
637637 d_bin: depth bin used when plot_style='bincount'
638638 plot_style: 'scatter', 'bincount'
639+ **kwargs: matplotlib.imshow arguments
639640
640641 Returns
641642 -------
@@ -674,7 +675,7 @@ def driftmap(ts, feat, ax=None, plot_style='bincount',
674675 R , times , depths = bincount2D (
675676 ts [iok ], feat [iok ], t_bin , d_bin , weights = weights )
676677 # plot raster map
677- ax .imshow (R , aspect = 'auto' , cmap = 'binary' , vmin = 0 , vmax = np .std (R ) * 4 ,
678+ ax .imshow (R , aspect = 'auto' , cmap = 'binary' , vmin = 0 , vmax = vmax or np .std (R ) * 4 ,
678679 extent = np .r_ [times [[0 , - 1 ]], depths [[0 , - 1 ]]], origin = 'lower' , ** kwargs )
679680 ax .set_xlabel ('time (secs)' )
680681 ax .set_ylabel ('depth (um)' )
0 commit comments