fips.problems.flux.visualization.FluxPlotter.fluxes#
- FluxPlotter.fluxes(time='mean', truth=None, x_dim='lon', y_dim='lat', time_dim='time', sites=False, sites_kwargs=None, **kwargs)[source]#
Plot prior and posterior flux maps.
- Parameters:
time (str, int, or pd.Timestamp, default 'mean') – Time to plot: ‘mean’, ‘std’, time index, or timestamp.
truth (pd.Series, optional) – Truth fluxes for comparison.
x_dim (str, default 'lon') – Name of the x-coordinate dimension.
y_dim (str, default 'lat') – Name of the y-coordinate dimension.
time_dim (str, default 'time') – Name of the time dimension.
sites (bool or dict, optional) – Site locations to overlay: dict mapping site IDs to (lat, lon).
sites_kwargs (dict, optional) – Additional plotting kwargs for site markers.
**kwargs – Additional arguments passed to xarray plotting.
- Returns:
fig, axes – The created figure and axes.
- Return type:
matplotlib Figure and Axes