Inherits object.
Plots a hillslope using colored sheared rectangles for each layer and
arrows (matplotlib.quiver) to show fluxes.
Properties:
- evalfunction: a function returning the value of a layer to plot.
The value should be a float between 0..1 for scaling.
The default is: lambda l: l.wetness
- q_sub: The matplotlib.Quiver object for subsurface fluxes
- q_surf: The matplotlib.Quiver object for subsurface fluxes
- title: Title of the plot
- scale: The scale of q_sub and q_surf
get_animator |
( |
| self, |
|
|
| integration ) |
Returns a matplotlib.animation.FuncAnimator object that uses
the integration iteratable to advance your model to animate the HillPlot
Usage example:
>>>p=cmf.project()
>>>solver = cmf.CVodeIntegrator(p, 1e-9)
>>>hp = HillPlot(p, solver.t)
>>>animator = hp.get_animator(solver.run(datetime(2012, 1, 1), datetime(2012, 2, 1), timedelta(hours=1)))
:param integration: An iterable that advances the model and yields the current time
:return: A matplotlib.animation.FuncAnimator