How can I remove legend from the figure in seaborn?

Here is my diagrams,

I want to remove the labels of the second bar that is C1,C2,C3,C4,C5, because it is repeating.

Topic plotly matplotlib seaborn visualization python

Category Data Science


You could try:

plt.gca().legend.set_visible(False)

or

plt.gca().legend.remove()

I think.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.