fips.problems.flux.visualization.FluxPlotter.concentrations#
- FluxPlotter.concentrations(location=None, location_dim='obs_location', rolling_window='30d', gap_threshold='7d', show_raw=True, **kwargs)[source]#
Plot observed, prior, and posterior concentrations.
- Parameters:
location (str, list of str, optional) – Observation location(s) to plot. If None, plots all locations.
location_dim (str, default 'obs_location') – Name of the location dimension in the data.
rolling_window (str or int, default '30d') – Rolling window for smoothed lines. Passed to
DataFrame.rolling.gap_threshold (str, default '7d') – Minimum gap duration to highlight as missing data.
show_raw (bool, default True) – Whether to show raw data points behind the smoothed lines.
**kwargs – Additional arguments passed to pandas plotting.
- Returns:
axes – Array of axes objects, one per location.
- Return type:
np.ndarray