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

贡献者指南