osmose.plottingΒΆ

Pure chart functions for OSMOSE outputs β€” all return go.Figure.

Functions

make_abc_plot(abc)

Cumulative %-dominance curves (biomass vs abundance) over species rank β€” ABC.

make_biomass_overlay(long_a, long_b, species, *)

Overlay per-species biomass trajectories from two runs (A solid, B dashed).

make_ci_timeseries(time, mean, lower, upper, ...)

Time series with confidence-interval band.

make_fm_ratio_bars(balances)

F/M (fishing vs natural mortality) per species; reference line at F/M=1.

make_food_web(diet_df[, threshold])

Sankey diagram of predator-prey relationships.

make_growth_curves(species_params)

Von Bertalanffy L(t) growth curves.

make_kobe_plot(statuses, *[, year])

Indicative Kobe scatter: x=B/Bmsy, y=F/Fmsy, soft-shaded quadrants.

make_mortality_breakdown(df[, species])

Stacked area of mortality by source.

make_predation_ranges(species_params)

Horizontal bar chart of predation size-ratio ranges.

make_ratio_timeseries(statuses, which)

Time-series of B/Bmsy (which='b') or F/Fmsy (which='f') per species.

make_run_comparison(records[, metrics])

Grouped bar chart comparing summary stats across runs.

make_run_delta_chart(deltas, *[, metric])

Horizontal diverging bar of per-species % change (variant vs baseline).

make_sheldon_spectrum_plot(spec)

Log-log Sheldon NBSS scatter (mass-bin midpoint vs normalized biomass) + fit line.

make_size_indicator_timeseries(df)

Community size-indicators over time: slope, LFI, mean size (3 traces).

make_size_spectrum_plot(df)

Log-log scatter with linear regression line and slope annotation.

make_species_dashboard(biomass_df, yield_df)

Small multiples: one row per species with biomass + yield lines.

make_stacked_area(df, title[, species])

Stacked area chart from long-format DataFrame.