act.plotting.TimeSeriesDisplay.day_night_background#
- TimeSeriesDisplay.day_night_background(dsname=None, subplot_index=(0,))[source]#
Colorcodes the background according to sunrise/sunset.
- Parameters:
dsname (None or str) – If there is more than one datastream in the display object the name of the datastream needs to be specified. If set to None and there is only one datastream then ACT will use the sole datastream in the object.
subplot_index (1 or 2D tuple, list, or array) – The index to the subplot to place the day and night background in.