Reduction vs. Residual Plotter (reduction_residual_plotter)¶
- class pypint.plugins.plotters.reduction_residual_plotter.ReductionResidualPlotter(*args, **kwargs)[source]¶
Bases: pypint.plugins.plotters.i_plotter.IPlotter
Plotts residual and reduction of multiple solutions of an iterative time solver
See also
IPlotter : overridden class
- plot(*args, **kwargs)[source]¶
Plots the solution and optional also the error for each iteration.
If file_name has been specified on initialization (see IPlotter.__init__()) the plot is stored there. Otherwise an interactive plotting session is started.
Parameters: - solvers (IIterativeTimeSolver) – solver instances used to calculate the solutions
- states (ISolverState) – states of the solvers
Raises: ValueError –
- if solvers is not given or is not a numpy.ndarray of IIterativeTimeSolver
- if states is not given or is not a numpy.ndarray of ISolverState
- if states has more than 7 states
- if the size of states does not equal the size of solvers