neuralib.rastermap.plot.plot_rastermap

neuralib.rastermap.plot.plot_rastermap(result, act_time, *, time_range=None, covars=None, figsize=(8, 6), event_colors=None, output=None)[source]

plot the rastermap result with behavioral measurements

Parameters:
  • result (RasterMapResult) – 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 Covariant

  • figsize (tuple[float, float]) – figure size

  • event_colors (dict[str, str] | None) – event color dict. {event_name: color}

  • output (str | Path | PathLike[str] | None) – output path for figure save. If None then show