Plotting¶
These functions help in the creation of simple plots.
- openghg.plotting.plot_timeseries(data, xvar=None, yvar=None, title=None, xlabel=None, ylabel=None, units=None, logo=True, calibration_scale=None)[source]¶
Plot a timeseries
- Parameters:
data (ObsData | ObsColumnData | list[ObsData | ObsColumnData]) – ObsData object or list of objects
xvar (str | None) – x axis variable, defaults to time
yvar (str | None) – y axis variable, defaults to species
title (str | None) – Title for figure
xlabel (str | None) – Label for x axis
ylabel (str | None) – Label for y axis
units (str | None) – Units for y axis
logo (bool | None) – Show the OpenGHG logo
calibration_scale (str | None) – Convert to this calibration scale
- Returns:
Plotly Graph Object Figure
- Return type:
go.Figure
- openghg.plotting.plot_footprint(data, label=None, vmin=None, vmax=None)[source]¶
Plot a footprint
- Parameters:
data (
Dataset) – Dataset containing fp variablelabel (
UnionType[str,None]) – Label for colourbarvmin (
UnionType[float,None]) – Minimum value for coloursvmax (
UnionType[float,None]) – MinimumMax value for colours
- Return type:
None- Returns:
None