JuliaPlots / Plots.jl

Powerful convenience for Julia visualizations and data analysis
https://docs.juliaplots.org
Other
1.83k stars 354 forks source link

[BUG] Linestyle of legend different from graph #4892

Open AshtonSBradley opened 7 months ago

AshtonSBradley commented 7 months ago

Details

For default backend, legend line doesn't show dashed line, instead it is solid. Pyplot backend does show a dashed line.

Screenshot 2024-02-23 at 4 18 29 PM

Backends

GR

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pythonplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: 1.40.1 Backend version (]st -m <backend(s)>): GR 0.73.1 PyPlot 2.11.2

Output of versioninfo(): julia> versioninfo() Julia Version 1.10.1 Commit 7790d6f0641 (2024-02-13 20:41 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: macOS (x86_64-apple-darwin22.4.0) CPU: 16 × Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, skylake) Threads: 8 default, 0 interactive, 4 GC (on 16 virtual cores) Environment: JULIA_NUM_THREADS = 8

mzagorowska commented 7 months ago

A similar bug in the opposite direction: the legend shows dashes, but the line looks solid, is mentioned here. Apparently happens in gr() but not in pyplot()/pythonplot().

Version of plotting: Plots v1.39.0 with GR v0.72.10.

Version of Julia: Julia Version 1.9.0 Commit 8e63055292 (2023-05-07 11:25 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-14.0.6 (ORCJIT, tigerlake) Threads: 1 on 8 virtual cores Environment: JULIA_EDITOR = code JULIA_NUM_THREADS =