solarforecastarbiter.plotting.timeseries.generate_observation_figure¶
-
solarforecastarbiter.plotting.timeseries.
generate_observation_figure
(observation, data, limit=Timedelta('3 days 00:00:00'))[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
- 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