Skip to content
New issue

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

[FR] Show legend by default only if labels have been set #4961

Open
mgkuhn opened this issue Jul 13, 2024 · 0 comments
Open

[FR] Show legend by default only if labels have been set #4961

mgkuhn opened this issue Jul 13, 2024 · 0 comments

Comments

@mgkuhn
Copy link

mgkuhn commented Jul 13, 2024

At the moment the default is to always show a legend, i.e.legend=true, even if no label was provided by the user. The default label "y1" is not really useful, especially not if there is just a single series. As a result, users have to add legend=false very frequently.

For v2 it would be nice if the legend is only shown by default if label values have been provided, especially if there is only a single series.

Current result:
plot(sin) looks like plot(sin; legend=true, label=("y1"))

Expected result:
plot(sin) should look like plot(sin; legend=false)
plot(sin; label=("sin")) should look like plot(sin; legend=true, label=("sin"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant