neuralib.model.rastermap.plot.RasterMapPlot
- class neuralib.model.rastermap.plot.RasterMapPlot[source]
Bases:
objectPlot the rastermap result with behavioral measurements
- __init__(result, act_time, time_range=None, covars=None, event_colors=None, output=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)
covars (list[Covariant] | None) – list of
Covariantevent_colors (list[str] | None)
output (str | Path | bytes | BinaryIO | BufferedIOBase | BufferedReader | None)
Methods
__init__(result, act_time[, time_range, ...])plot_segments(ax)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.
- DEFAULT_TRIAL_COLORS = ('royalblue', 'darkorange', 'seagreen', 'crimson')
- __init__(result, act_time, time_range=None, covars=None, event_colors=None, output=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)
covars (list[Covariant] | None) – list of
Covariantevent_colors (list[str] | None)
output (str | Path | bytes | BinaryIO | BufferedIOBase | BufferedReader | None)
- property super_neurons: ndarray
rastermap sorted 2D array. Array[float, [N, T]]