share_legend¶
-
hhpy.plotting.
share_legend
(ax: matplotlib.axes._axes.Axes, keep_i: int = None)[source]¶ removes all legends except for i from an Axes object
Parameters: - ax – The matplotlib.pyplot.Axes object to plot on, defaults to current axis [optional]
- keep_i – index of the plot whose legend you want to keep
Returns: None