pastas.modelcompare.CompareModels.plot_contribution#

CompareModels.plot_contribution(smdict=None, axn='con{i}', normalized=False)[source]#

plot stressmodel contributions.

Parameters
  • smdict (dict, optional) – Dictionary with integers (index) as keys and list of stressmodel names as values that have to be in each subplot. For example, {0: [‘prec’, ‘evap’], 1: [‘rech’]} where stressmodels ‘prec’ and ‘evap’ are plotted in the first contribution window and ‘rech’ in the second. By default, None, which creates a separate subplot for each stressmodel.

  • axn (str, optional) – name of labeled axes to plot the contributions to, by default “con{i}”. If smdict is not None, keys of that dictionary are used to fill in axes label, e.g. key 0 indicates the contributions will be plotted on axes with label ‘con0’. Otherwise, each contribution will be plotted on a separate subplot (i.e. ‘con0’, ‘con1’, …).

  • normalized (bool, optional) – normalize contributions with min/max depending on mean value, by default False.

Return type

None