The scale-change of "cgrad" is invalidated when colorschemes are jointed

Fluorite-Erbite
Thu, 29 Jun 2023 07:22:23 +0000
General Usage

Julia 1.9.0 downloaded from the official

(Sorry for my poor English)

I want to join 2 colorschemes, before which each scale is change (:log).
Example,

cs1 = reverse( cgrad( palette( [:red, :orange, :yellow, :lawngreen], 100 ), scale=:log ) )
cs2 = cgrad( palette( [:navyblue, :deepskybkue2, :lime, :lawngreen], 100 ), scale=:log )

cs_com = zeros(RGBA{Float64}, 200)
cs_com[1:100] .= cs1
cs_com[101:end] .= cs2

But, outputted colorscheme is invalidated scale-change (scale=:log), it means that, cs_com is JUST equal to
palette( [:navyblue, :deepskybkue2, :lime, :lawngreen, :lawngreen, :yellow, :orange, :red], 200 )

Why? and, please let me know how to combine colorschemes.
(I posted the same quastion on Github.)

3 posts - 2 participants