pastas.plots.compare#

compare(models, adjust_height=True, **kwargs)[source]#

Plot multiple Pastas models in one figure to visually compare models.

Notes

The models must have the same stressmodel names, otherwise the contributions will not be plotted, and parameters table will not display nicely.

Parameters
  • models (list) – List of pastas Models, works for N models, but certain things might not display nicely if the list gets too long.

  • adjust_height (bool, optional) – Adjust the height of the graphs, so that the vertical scale of all the subplots on the left is equal. Default is False, in which case the axes are not rescaled to include all data, so certain data might not be visible. Set False to ensure you can see all data.

  • **kwargs – The kwargs are passed to the CompareModels.plot() function.

Return type

matplotlib.axes