JuliaPlots/Plots.jl
Auf GitHub ansehen[BUG] legend entry for empty series on pgfplotsx
Open
#2.795 geöffnet am 17. Juni 2020
PGFPlotsXbuggood first issuewontfix
Repository-Metriken
- Stars
- (1.943 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 3T 12h) (2 gemergte PRs in 30 T)
Beschreibung
Details
plot([],[], label="hello")
can sometimes be useful to add a legend-entry without adding to the plot. It works on other backends, but not on pgfplotsx. Instead, nothing is plotted and no legend entry is added.
Just wanted to report. It's inconsistent but easily circumvented.
Thanks for your work!
Backends
This bug occurs on ( insert x below )
| Backend | yes | no | untested |
|---|---|---|---|
| gr (default) | x | ||
| pyplot | |||
| plotly | |||
| plotlyjs | |||
| pgfplotsx | x | ||
| inspectdr |
Versions
Plots.jl version: 1.4.1
Backend version (]st -m):
Output of versioninfo():