allow integers for colors, maps to palette index
This commit is contained in:
parent
03a228fbe7
commit
4035c0bbe0
@ -1112,6 +1112,8 @@ end
|
|||||||
function getSeriesRGBColor(c, α, sp::Subplot, n::Int)
|
function getSeriesRGBColor(c, α, sp::Subplot, n::Int)
|
||||||
if c == :auto
|
if c == :auto
|
||||||
c = autopick(sp[:color_palette], n)
|
c = autopick(sp[:color_palette], n)
|
||||||
|
elseif isa(c, Int)
|
||||||
|
c = autopick(sp[:color_palette], c)
|
||||||
end
|
end
|
||||||
plot_color(c, α)
|
plot_color(c, α)
|
||||||
end
|
end
|
||||||
@ -1205,4 +1207,3 @@ function _add_defaults!(d::KW, plt::Plot, sp::Subplot, commandIndex::Int)
|
|||||||
_replace_linewidth(d)
|
_replace_linewidth(d)
|
||||||
d
|
d
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user