-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Erroneous legend line-properties with pgfplotsx() #2432
Comments
Thanks for reporting. And don't hesitate to tell me other bugs, when you find them. |
Thanks! 🙂 |
Thanks for responding so quickly but the fix did not work for everything. plot(rand(4,4), label=["a" "" "" "c"]);
vline!([1,1]);
plot!(rand(4,1), label="red?", color=:red) The first plot command is now fine, but the last one yields a red line with a non-red legend entry. Since I can't re-open the issue I'll take the liberty of pinging @BeastyBlacksmith |
Note that reordering of the commands produces the correct result, so probably a bug in plot(rand(4,4), label=["a" "" "" "c"]);
plot!(rand(4,1), label="red?", color=:red);
vline!([1,1]) |
I'm not sure where the bug is, but also note: plot(rand(4,4), label=["a" "" "" "c"]);
vline!([1,1,1]);
plot!(rand(4,4), label="red?", color=:red) here, the two last red lines are correct but the first two are not. |
|
actually |
and yet it does. Also, I don't have an opinion about what the default should be, but it would be good if there was an option for creating a legend entry for a |
Would be nice, if you could try the branch of #2449 and report, if it fixes your cases as well. |
With the pgfplotsx backend, the legend gets messed up when one includes a non-labeled series.
Here, the third line, "3", is green, but the legend uses the line properties of the second line and thus calls it red.
The pgfplotsx backend still has a bunch of bugs, but I do like it and think it will be great when those are ironed out. Thanks and keep up the good work!
The text was updated successfully, but these errors were encountered: