JuliaPlots/Plots.jl

[BUG] legend entry for empty series on pgfplotsx

Open

#2,795 opened on 2020年6月17日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Julia (381 forks)batch import
PGFPlotsXbuggood first issuewontfix

Repository metrics

Stars
 (1,943 stars)
PR merge metrics
 (平均マージ 3d 12h) (30d で 2 merged PRs)

説明

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

コントリビューターガイド