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 objectsxvar (
Optional
[str
]) – x axis variable, defaults to timeyvar (
Optional
[str
]) – y axis variable, defaults to speciestitle (
Optional
[str
]) – Title for figurexlabel (
Optional
[str
]) – Label for x axisylabel (
Optional
[str
]) – Label for y axisunits (
Optional
[str
]) – Units for y axislogo (
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 variablelabel (
Optional
[str
]) – Label for colourbarvmin (
Optional
[float
]) – Minimum value for coloursvmax (
Optional
[float
]) – MinimumMax value for colours
- Return type:
None
- Returns:
None