micom.viz.tradeoff

Visualizations for tradeoff analysis.

Module Contents

Functions

plot_tradeoff(tradeoff_rates[, filename, tolerance])

Plot diagnostics for varying tradeoff values.

micom.viz.tradeoff.plot_tradeoff(tradeoff_rates, filename='tradeoff_%s.html' % datetime.now().strftime('%Y%m%d'), tolerance=1e-06)[source]

Plot diagnostics for varying tradeoff values.

Parameters:
  • tradeoff_rates (pandas.DataFrame) – The growth rates returned by the tradeoff workflow.

  • filename (str) – The HTML file where the visualization will be saved.

  • tolerance (float) – Smallest growth rate that will be considered. Everything lower will be considered not growing.

Returns:

A MICOM visualization. Can be served with viz.serve.

Return type:

Visualization