ax_as_array

hhpy.plotting.ax_as_array(ax: Union[matplotlib.axes._axes.Axes, numpy.ndarray]) → numpy.ndarray[source]

takes any Axes and turns them into a numpy 2D array

Parameters:ax – The matplotlib.pyplot.Axes object to plot on, defaults to current axis [optional]
Returns:Numpy 2D array containing the subaxes