The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here

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

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


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

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

  • names (list of str) – override model names by passing a list of names

  • 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