fix surface on pgfplotsx

This commit is contained in:
Daniel Schwabeneder 2021-02-19 21:20:51 +01:00
parent 100da5ccae
commit 2e2f7044e2

View File

@ -836,7 +836,7 @@ function pgfx_colormap(v::Vector{<:Colorant})
end end
function pgfx_colormap(cg::ColorGradient) function pgfx_colormap(cg::ColorGradient)
join(map(1:length(cg)) do i join(map(1:length(cg)) do i
@sprintf("rgb(%.8fcm)=(%.8f,%.8f,%.8f)", cg.values[i], red(cg.colors[i]), green(cg.colors[i]), blue(cg.colors[i])) @sprintf("rgb(%.8f)=(%.8f,%.8f,%.8f)", cg.values[i], red(cg.colors[i]), green(cg.colors[i]), blue(cg.colors[i]))
end, "\n") end, "\n")
end end