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

Plots.Scatter Produces Legend Entries with Line Styles #188

Open
tawheeler opened this issue Sep 3, 2023 · 0 comments
Open

Plots.Scatter Produces Legend Entries with Line Styles #188

tawheeler opened this issue Sep 3, 2023 · 0 comments

Comments

@tawheeler
Copy link
Member

I've been experiencing an issue where using Plots.Scatter and then producing a legend causes those legend entries to have lines:

image

Plots.Scatter([x[1] for x in xs_est], [x[2] for x in xs_est],
                style="mark=$shape, mark size=2, mark options={draw=black, fill=black}",
                legendentry=typename
        )

My current workaround is to plot with Plots.Linear(..., style="draw=white, ..."). Using draw=none causes the same problem to occur. This workaround can cause new problems, where the white line then shows up when it crosses over something else.

This may be a problem inherent to PGFPlots, but I have to believe there is a way to solve it.

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