pastas.plotting.modelplots.Plotting.contribution ================================================ .. py:method:: pastas.plotting.modelplots.Plotting.contribution(tmin: pandas.Timestamp | str | None = None, tmax: pandas.Timestamp | str | None = None, name: str | None = None, plot_stress: bool = True, plot_response: bool = False, block_or_step: Literal['block', 'step'] = 'step', istress: int | None = None, ax: pastas.typing.Axes | None = None, **kwargs) -> dict[str, pastas.typing.Axes] Plot the contribution of a stressmodel and optionally the stress and the response. :param tmin: A string or pandas.Timestamp with the start date for the period (E.g. '1980-01-01 00:00:00'). Strings are converted to pandas.Timestamp internally. :type tmin: pandas.Timestamp or str, optional :param tmax: A string or pandas.Timestamp with the end date for the period (E.g. '2020-01-01 00:00:00'). Strings are converted to pandas.Timestamp internally. :type tmax: pandas.Timestamp or str, optional :param name: Name of the stressmodel to plot the contribution for. :type name: str, optional :param plot_stress: Plot the stress on an overlay axes. :type plot_stress: bool, optional :param plot_response: Plot the step response on a separate axes on the right. :type plot_response: bool, optional :param block_or_step: Type of response to plot, either 'block' or 'step'. Default is 'step'. :type block_or_step: {"block", "step"}, optional :param istress: Index of the stress to plot the response for. Default is None. :type istress: int, optional :param ax: Dictionary containing axes with 'con' and 'rf' as keys, or a single axes instance for the contribution plot. :type ax: dict or matplotlib.axes.Axes, optional :param kwargs: Passed to the stress plot. :type kwargs: dict, optional :returns: **axes** -- Dictionary containing the axes for the contribution, and optionally the stress and response. :rtype: dict .. !! processed by numpydoc !!