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)[source]#

Plot a timeseries

Parameters:
  • data (ObsData | list[ObsData]) – ObsData object or list of objects

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

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

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

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

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

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

  • logo (bool | None) – Show the OpenGHG logo

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