hamsci_psws.solar.add_terminator¶
- hamsci_psws.solar.add_terminator(sTime, eTime, lat, lon, ax, color='0.7', alpha=0.3, xkey='UTC', resolution=datetime.timedelta(seconds=60), **kw_args)[source]¶
Shade the nighttime region on a time series plot.
- Parameters
sTime (UTC start time of time series plot in datetime.datetime format) –
eTime (UTC end time of time series plot in datetime.datetime format) –
lat (latitude for solar terminator calculation) –
lon (longitude for solar terminator calculation) –
ax (matplotlib axis object to apply shading to.) –
color (color of nighttime shading) –
alpha (alpha of nighttime shading) –
kw_args (additional keywords passed to ax.axvspan) –