New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
seriescolor in recipe is ignored #1520
Comments
I also tried the more specific
|
The issue is the order in the pipeline in https://github.com/JuliaPlots/Plots.jl/blob/master/src/plot.jl#L219-L236: At first the defaults are applied including matching gr()
@recipe function f(::Type{Val{:test}}, x,y,z)
markercolor := 3
seriestype := :scatter
x,y,z
end
plot(1:5, st = :test)
plot(1:5, st = :test)
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: MethodError: no method matching plot_color(::Int64)
Closest candidates are:
plot_color(::Any, ::Void) at /home/dani/.julia/v0.6/PlotUtils/src/colors.jl:15
plot_color(::Any, ::Number) at /home/dani/.julia/v0.6/PlotUtils/src/colors.jl:18
plot_color(::Symbol) at /home/dani/.julia/v0.6/PlotUtils/src/colors.jl:6
... We could go along and fix this and similar future issues with separate fix in the way of #1522, but getting the order right might be the more sustainable solution. |
Wow, great work @daschw :-O 🎉 |
Like assigning "specificity" values to attributes and sorting by that? |
update series attributes after processing series recipes fix (#1520)
After (my) last update it now works! So I'm closing this 😄 |
Oh, thanks, yes #1523 should have fixed it 🙂 |
@mkborregaard found out that the following doesn't plot in red (this is from my question on Discourse):
The text was updated successfully, but these errors were encountered: