JuliaPlots/Plots.jl

[BUG] legend entry for empty series on pgfplotsx

Open

#2795 aperta il 17 giu 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Julia (381 fork)batch import
PGFPlotsXbuggood first issuewontfix

Metriche repository

Star
 (1943 star)
Metriche merge PR
 (Merge medio 3g 12h) (2 PR mergiate in 30 g)

Descrizione

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():

Guida contributor