rasterplot2¶
- 
visualize.rasterplot.rasterplot2(st, ax=None, x_offset=0, c=None, plot_kwargs=dict(solid_capstyle='butt'), y_offset=None, y_plot_length=1, marker='line')¶
- Plot a rasterplot from Presynaptic spike times. - Parameters:¶
- st : pandas.DataFrame¶
- A DataFrame containing the spike times, where each row is a single trial of a single unit. 
- ax : matplotlib.axes.Axes, optional¶
- An optional Matplotlib Axes object to plot on. If not provided, a new figure and axes are created. 
- x_offset : float, optional¶
- An offset to apply to the x-values (event times). Default is 0. 
- c : str or array-like, optional¶
- An optional color for the plot. Can be a single color format string, or a sequence of colors. 
- plot_kwargs : dict, optional¶
- Additional keyword arguments for the plot function. Default is {‘solid_capstyle’: ‘butt’}. 
- y_offset : int, optional¶
- An optional starting y-value for the plot. If not provided, it is set to the number of rows in the DataFrame. 
- y_plot_length : float, optional¶
- The length of the line to plot for each event. Default is 1. 
- marker : str, optional¶
- The marker style to use for plotting events. Defaults to ‘line’. If ‘line’, lines of defined length are plotted. 
 
 
Documentation unclear, incomplete, broken or wrong? Let us know