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] Better legends for :vline and :hline #4924

Open
kosukesando opened this issue Apr 30, 2024 · 1 comment
Open

[FR] Better legends for :vline and :hline #4924

kosukesando opened this issue Apr 30, 2024 · 1 comment

Comments

@kosukesando
Copy link

Using markershape = :vline or :hline for a scatter plot, the legend is too thin to recognize the color.
Increasing the markerstrokewidth to increase visibility is an option, but then the lines in the plot itself blob up into one giant rectangle at that point.
I could circumvent this in for example matplotlib by creating a custom legend, but AFAIK that is not an option for Plots.jl.

Is it possible for :vline and :hline to have its own custom legend so that it's not just a Shape([(0,1),(0,-1)]) but perhaps a rectangle?

@kosukesando
Copy link
Author

Okay, it turns out you can hack together a workaround by plotting ([NaN],[NaN]) with desired markers.
Still, it would be a nice-to-have.

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