You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding a closed issue, I am using the correct syntax for assigning colors.
Taken into account that I am new to Julia and Plots, I looked in the source and found that the recipe does not handle any input colors:
@recipe function f(::Type{Val{:pie}}, x, y, z)
framestyle --> :none
aspect_ratio --> true
s = sum(y)
θ = 0
for i in eachindex(y)
θ_new = θ + 2π * y[i] / s
coords = [(0.0, 0.0); partialcircle(θ, θ_new, 50)]
@series begin
seriestype := :shape
label --> string(x[i])
x := first.(coords)
y := last.(coords)
end
θ = θ_new
end
end
@deps pie shape
Is this part of the problem or lies this elsewhere?
I would happily implement changes but I need some supervision for this.
Backends
This bug occurs on ( insert x below )
Backend
yes
no
untested
gr (default)
x
pyplot
x
plotly
x
plotlyjs
x
pgfplotsx
x
inspectdr
x
Versions
Plots.jl version: 1.10
Backend version (]st -m):
Output of versioninfo():
Julia Version 1.5.2
Commit 539f3ce943 (2020-09-23 23:17 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA = C:\Users\Benjamin\AppData\Local\Programs\Julia 1.5.2
JULIA_EDITOR = "C:\Users\Benjamin\AppData\Local\atom\app-1.53.0\atom.exe" -a
JULIA_NUM_THREADS = 2
The text was updated successfully, but these errors were encountered:
It should now work with a vector of colors like [:red, :green, :blue].
Passing a row vector [:red :green :blue] still makes the pie entirely red but I think that's expected since each column corresponds to a series and a pie plot is only one series.
Details
Colors are not assigned to pie chart properly.
This:
Plots this:
Regarding a closed issue, I am using the correct syntax for assigning colors.
Taken into account that I am new to Julia and Plots, I looked in the source and found that the recipe does not handle any input colors:
Is this part of the problem or lies this elsewhere?
I would happily implement changes but I need some supervision for this.
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version:
1.10
Backend version (
]st -m
):Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: