neuralib.rastermap.plot.RasterMapPlot
- class neuralib.rastermap.plot.RasterMapPlot[source]
Bases:
objectPlot the rastermap result with behavioral measurements
- __init__(result, act_time, time_range=None, covars=None)[source]
- Parameters:
result (RasterMapResult) – class:~.core.RasterMapResult
act_time (ndarray) – neural activity time array. should be the same T as neural_activity when run the rastermap
time_range (tuple[float, float] | None) – time range for plotting (START,END)
Methods
__init__(result, act_time[, time_range, covars])plot_rastermap([figsize, event_colors, output])plot_segments(ax[, event_colors])Plot event segments as vertical spans on the axis
process behavioral measurements, select time range and do the interpolation same shape as neural activity
Attributes
rastermap sorted 2D array.
- __init__(result, act_time, time_range=None, covars=None)[source]
- Parameters:
result (RasterMapResult) – class:~.core.RasterMapResult
act_time (ndarray) – neural activity time array. should be the same T as neural_activity when run the rastermap
time_range (tuple[float, float] | None) – time range for plotting (START,END)
- property super_neurons: ndarray
rastermap sorted 2D array. Array[float, [N, T]]
- process_continuous()[source]
process behavioral measurements, select time range and do the interpolation same shape as neural activity
- Return type:
list[Covariant]