-
Notifications
You must be signed in to change notification settings - Fork 36
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
Legend entries don't correspond to the desired plots #102
Comments
Want to make a branch, make the change, and see whether the behavior has any undesired consequences? |
I think |
Yeah, |
I submitted a PR #153 based on code Mykel passed along to me and got using PGFPlots
x0,y0 = rand(10), rand(10)
x1,y1 = 1:10, 1:10
x2,y2 = 10:-1:1, 1:10
ax = Axis()
push!(ax, Plots.Linear(x0,y0))
push!(ax, Plots.Linear(x1,y1,legendentry="leg1"))
push!(ax, Plots.Linear(x2,y2,legendentry="leg2"))
ax |
Say I plot as follows:
The resulting legend will have "leg1" and "leg2" correspond to the first and second lines respectively as opposed to the desired second and third lines. The suggested work around is:
Would it be possible to make "forget plot" a default option?
The text was updated successfully, but these errors were encountered: