JuliaPlots / StatsPlots.jl

Statistical plotting recipes for Plots.jl
Other
436 stars 88 forks source link

Barplot colors not working with PGFPlotsX backend #554

Open blwh opened 4 months ago

blwh commented 4 months ago

The argument color does not color the individual bars in a barplot when using the PGFPlotsX backend.

julia> using Plots; pgfplotsx();

julia> plot(1:3, 1:3, color=cgrad(:Set2)[1:3])

produces

image

However, switching to the default backend works.

julia> using Plots;

julia> plot(1:3, 1:3, color=cgrad(:Set2)[1:3])

produces

image

This was tested on Julia 1.9.4, Plots.jl 1.40.3 and StatsPlots.jl 0.15.7