polaris.tasks.ocean.realistic_global.dynamic_adjustment.viz.plot_tracer_changes

polaris.tasks.ocean.realistic_global.dynamic_adjustment.viz.plot_tracer_changes(changes: Dict[str, TracerChange], model: str, last_stage_name: str, filename: str) → None[source]

Plot the volume-weighted histograms of tracer change side by side.

The density axis is logarithmic, because the question is how large the rare changes are as much as how small the typical one is.

Parameters:
  • changes (dict) – A TracerChange for each tracer, as from tracer_changes().

  • model (str) – The ocean model, which says what the tracers are called.

  • last_stage_name (str) – The stage whose end state the changes are measured to.

  • filename (str) – The figure to write.