neuralib.model.rastermap.plot.RasterMapPlot

class neuralib.model.rastermap.plot.RasterMapPlot[source]

Bases: object

Plot the rastermap result with behavioral measurements

__init__(result, act_time, time_range=None, behaviors=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)

  • behaviors (list[BehavioralVT] | None) – list of BehavioralVT

  • output (str | Path | bytes | BinaryIO | BufferedIOBase | BufferedReader | None)

Methods

__init__(result, act_time[, time_range, ...])

plot_rastermap()

process_behavior()

process behavioral measurements, select time range and do the interpolation same shape as neural activity

Attributes

super_neurons

rastermap sorted 2D array.

__init__(result, act_time, time_range=None, behaviors=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)

  • behaviors (list[BehavioralVT] | None) – list of BehavioralVT

  • output (str | Path | bytes | BinaryIO | BufferedIOBase | BufferedReader | None)

property super_neurons: ndarray

rastermap sorted 2D array. Array[float, [N, T]]

process_behavior()[source]

process behavioral measurements, select time range and do the interpolation same shape as neural activity

Return type:

list[BehavioralVT]

plot_rastermap()[source]