spiketools.plts.annotate.add_gridlines

spiketools.plts.annotate.add_gridlines(x_bins, y_bins, ax=None, **plt_kwargs)[source]

Add gridlines to a plot axis.

Parameters:
x_bins, y_binslist of float, optional

Bin edges for each axis. If provided, these are used to draw grid lines on the plot.

axAxes, optional

Axis object to update. If not provided, takes the current axis.