Plotting functions#

These functions help in the creation of simple plots.

openghg.plotting.plot_timeseries(data, title=None, xvar=None, yvar=None, xlabel=None, ylabel=None, units=None)[source]#

Plot a timeseries

Parameters
  • data (Union[ObsData, List[ObsData]]) – ObsData object or list of objects

  • title (Optional[str]) – Title for figure

  • xvar (Optional[str]) – x axis variable, defaults to time

  • yvar (Optional[str]) – y axis variable, defaults to species

  • xlabel (Optional[str]) – Label for x axis

  • ylabel (Optional[str]) – Label for y axis

  • units (Optional[str]) – Units for y axis

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 variable

  • label (Optional[str]) – Label for colourbar

  • vmin (Optional[float]) – Minimum value for colours

  • vmax (Optional[float]) – MinimumMax value for colours

Return type

None

Returns

None