JuliaPlots/Plots.jl

[BUG] legend entry for empty series on pgfplotsx

Open

#2.795 geöffnet am 17. Juni 2020

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Julia (381 Forks)batch import
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():

Contributor Guide