kadi.commands.utils.add_figure_regions#
- kadi.commands.utils.add_figure_regions(fig, figure_start, figure_stop, region_starts, region_stops, color='black', opacity=0.2, line_width=3)#
Add regions to a figure with a date-based x-axis
figure_start
andfigure_stop
are the start and stop times for the figure.region_starts
andregion_stops
are lists of start/stop times for regions.