floodlight.vis.utils
description here
- floodlight.vis.utils.check_axes_given(func)[source]
Decorator function that checks if a matplotlib.axes is given as an argument. Creates one if not.
- Parameters
func – Function object that needs a matplotlib.axes as an argument. If ax == None an axes is created an passed to the given function object as a keyworded argument.
- Returns
Function with matplotlib.axes as additional argument if not specified. Otherwise the function is returned as it is.
- Return type
func