I have read this article but couldn't find a reasonable answer. I want to delete certain lines from the legend and keep the shape and color of other lines intact. In my case, a figure which contains 3 subplots is plotted using seaborn and have an overall legend. some items are repeated in this legend and I want to delete specific rows in the legend. In the following example, I want to delete 6th line only! any idea?
fig, axs =plt.subplots(3,1,figsize=(8,8),sharex=True)
Fig11 = sns.pointplot(data=Data1, x="X", y="Y1", hue='H', ax=axs[0],palette=['blue', 'red'], markers=["o", "P"], linestyles=["-", "-"],legend=True)
Fig12 = sns.pointplot(data=Data2, x="X", y="Y2", hue='H', ax=axs[0],palette=['blue', 'red'], markers=["o", "P"], linestyles=["-", "-"],legend=True)
Fig13 = sns.pointplot(data=Data3, x="X", y="Y3", hue='H', ax=axs[0],palette=['blue', 'red'], markers=["o", "P"], linestyles=["-", "-"],legend=True)
Fig2 = sns.pointplot(data=Data4, x="X", y="Y4", hue='H', ax=axs[1],palette=['blue', 'red'], markers=["o", "P"], linestyles=["-", "-"],legend=True)
Fig3 = sns.pointplot(data=Data5, x="X", y="Y5", hue='H', ax=axs[2],palette=['blue', 'red'], markers=["o", "P"], linestyles=["-", "-"],legend=True)
axs[0].get_legend().remove()
axs[1].get_legend().remove()
axs[2].get_legend().remove()
FigLegend=fig.legend(loc='center', borderaxespad=0.1,bbox_to_anchor=(1, 0.5))
