flasc.data_processing.dataframe_manipulations.plot_sun_altitude_with_day_night_color#
- flasc.data_processing.dataframe_manipulations.plot_sun_altitude_with_day_night_color(df, ax=None)[source]#
Plot sun altitude with day-night color differentiation.
This function creates a plot of Sun Altitude over time, distinguishing between day and night periods with different background colors. The input DataFrame 'df' should contain time and sun_altitude columns, as well as a boolean 'is_day' column to indicate day and night periods.
- Parameters:
df (pd.DataFrame) -- A DataFrame containing time, sun_altitude, and is_day columns.
ax (plt.axis, optional) -- An optional Matplotlib axis to use for the plot. If not provided, a new axis will be created.
- Returns:
The Matplotlib axis plotted on.
- Return type:
ax (plt.axis)