JuliaPlots/Plots.jl

Legend entries are in wrong order for areaplot

Open

#5029 aperta il 18 nov 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Julia (381 fork)batch import
good first issue

Metriche repository

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

Descrizione

Details

using Plots
x=1:10
y=[11:20 16:25]
areaplot(x,y)

==> The order of the colors in the legend appear upside down compared to the order used in the chart.

Backends

This bug occurs on :

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

Versions

Plots.jl version: v1.40.9 Backend version : GR v0.73.8

Julia Version 1.11.1 Commit 8f5b7ca12ad (2024-10-16 10:53 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, tigerlake) Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores) Environment: JULIA_EDITOR = code JULIA_NUM_THREADS =

Guida contributor