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 variable

  • label (str | None) – Label for colourbar

  • vmin (float | None) – Minimum value for colours

  • vmax (float | None) – MinimumMax value for colours

Return type:

None

Returns:

None