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