solarforecastarbiter.plotting.timeseries.generate_observation_figure

solarforecastarbiter.plotting.timeseries.generate_observation_figure(observation, data)[source]

Creates a bokeh figure from API responses for an observation

Parameters:
  • observation (datamodel.Observation) – The Observation that is being plotted
  • data (pandas.DataFrame) – The observation data to be plotted with datetime index and (‘value’, ‘quality_flag’) columns
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