get_legends

hhpy.plotting.get_legends(ax: matplotlib.axes._axes.Axes = None) → list[source]

returns all legends on a given axis, useful if you have a secaxis

Parameters:ax – The matplotlib.pyplot.Axes object to plot on, defaults to current axis [optional]
Returns:list of legends