spiketools.plts.annotate.add_box_shades¶
- spiketools.plts.annotate.add_box_shades(x_values, y_values=None, x_range=1, y_range=0.41, ax=None, **plt_kwargs)[source]¶
Add multiple shaded boxes to a plot axis.
- Parameters:
- x_values, y_values1d array
Center position values for the x- and y-axes for each shaded box.
- x_range, y_rangefloat
The range, as +/-, around the x and y positions to shade the box.
- axAxes, optional
Axis object upon which to plot.
- plt_kwargs
Additional arguments to pass into the plot function.