JuliaPlots/Plots.jl

[BUG] legend entry for empty series on pgfplotsx

Open

#2,795 建立於 2020年6月17日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Julia (381 fork)batch import
PGFPlotsXbuggood first issuewontfix

倉庫指標

Star
 (1,943 star)
PR 合併指標
 (平均合併 3天 12小時) (30 天內合併 2 個 PR)

描述

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

貢獻者指南