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

Creates a bokeh figure from API responses for an observation

  • 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

  • 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