Decorator function that checks if a matplotlib.axes is given as an argument. Creates one if not.
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.
Function with matplotlib.axes as additional argument if not specified. Otherwise the function is returned as it is.
- Return type