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