We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In seaborn, it seems one cannot customise legends for histplots. I'm not sure about the other categorical plots, but it is possible for scatter plots.
# This works f, ax = pt.subplots() x = np.arange(0, 6) y1 = np.random.randint(1, 50, 6) y2 = np.random.randomint(1, 25, 6) sns.scatterplot(x=x, y=y1, color="blue", ax=ax) sns.scatterplot(x=x, y=y2, color="red", ax=ax) ax.legend(fontsize="medium") plt.show() # This does not work f, ax = plt.subplots() sns.histplot(x=x, y=y1, ax=ax) sns.histplot(x=x, y=y2, ax=ax) ax.legend(fontsize="medium")
For hisplots, I get the error No handles with labels found to put in legend. Any way to have ax.legend function properly?
No handles with labels found to put in legend.
ax.legend
The text was updated successfully, but these errors were encountered:
Duplicate of #2280
Sorry, something went wrong.
No branches or pull requests
In seaborn, it seems one cannot customise legends for histplots. I'm not sure about the other categorical plots, but it is possible for scatter plots.
For hisplots, I get the error
No handles with labels found to put in legend.
Any way to haveax.legend
function properly?The text was updated successfully, but these errors were encountered: