hhpy
stable
Contents:
python API reference
hhpy.main Module
hhpy.ds Module
hhpy.ipython Module
hhpy.modelling Module
hhpy.plotting Module
hhpy.plotting.py
Functions
heatmap
corrplot
corrplot_bar
pairwise_corrplot
distplot
hist_2d
paired_plot
q_plim
levelplot
get_legends
facet_wrap
get_subax
ax_as_list
ax_as_array
rmsdplot
insert_linebreak
ax_tick_linebreaks
annotate_barplot
animplot
legend_outside
set_ax_sym
custom_legend
stemplot
get_twin
get_axlim
set_axlim
share_xy
share_legend
barplot_err
countplot
quantile_plot
quickstart
hhpy
Docs
»
python API reference
»
share_legend
Edit on GitHub
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 axes object to plot on, defaults to current axis [optional]
keep_i
– index of the plot whose legend you want to keep
Returns:
None