Plots.jl: `fillcolor` does not accept floats

Created on 29 Jul 2019  路  3Comments  路  Source: JuliaPlots/Plots.jl

Will expand on this by editing the issue later, but fillcolor doesn't take Floats, even when a cgrad is provided.

bar(data; fillcolor=rand(10), cgrad=:inferno)
ERROR: MethodError: no method matching plot_color(::Float64)

Is this a design decision, or can it be fixed?

Documentation

Most helpful comment

Gradients are specified by *color, color values to look up in the gradients by *_z:

bar( 1:10; fill_z=rand(10), fillcolor=:grays,
           line_z=rand(10), linecolor=:plasma, lw=10 )

image

All 3 comments

Gradients are specified by *color, color values to look up in the gradients by *_z:

bar( 1:10; fill_z=rand(10), fillcolor=:grays,
           line_z=rand(10), linecolor=:plasma, lw=10 )

image

Perfect...thanks! Would be nice to have that schema documented somewhere, I'll look into putting a para in PlotDocs in a week or so.

done

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkborregaard picture mkborregaard  路  3Comments

Cody-G picture Cody-G  路  3Comments

nebuta picture nebuta  路  3Comments

kersulis picture kersulis  路  5Comments

kleinschmidt picture kleinschmidt  路  3Comments