solarforecastarbiter.plotting.timeseries.generate_forecast_figure

solarforecastarbiter.plotting.timeseries.generate_forecast_figure(forecast, data, limit=None)[source]

Creates a bokeh timeseries figure for forcast data

Parameters:
  • forecast (datamodel.Forecast) – The Forecast that is being plotted
  • data (pandas.Series) – The forecast data with a datetime index to be plotted
  • limit (pandas.Timedelta or None) – The time limit from the last datapoint to plot. If None, all data is plotted.
Returns:

  • None – When the data is empty
  • script, div (str) – When return_components = True, return the <script> and <div> components for the Bokeh plot.
  • bokeh components from gridplot – When return_components = False