Plot 茱莉亚曲线对数色标
我正在尝试使用Plot 茱莉亚曲线对数色标,plot,julia,surface,Plot,Julia,Surface,我正在尝试使用plot函数在julia中以log10比例构建一个3D曲面图。我只希望颜色在log10范围内,而不是实际值本身 using Plots N = 51 x = range(-10, stop = 10, length = N) y = x f(x,y)=x^2+y^2 Plots.plot(x,y,f,st=:surface,color=:jet,camera=(25,65)) 下面是输出 下面是使用带有彩色logscale的GNUPLOT创建的相同函数。如何在Julia中使用p
plot
函数在julia
中以log10比例构建一个3D曲面图。我只希望颜色在log10范围内,而不是实际值本身
using Plots
N = 51
x = range(-10, stop = 10, length = N)
y = x
f(x,y)=x^2+y^2
Plots.plot(x,y,f,st=:surface,color=:jet,camera=(25,65))
下面是输出
下面是使用带有彩色logscale的GNUPLOT
创建的相同函数。如何在Julia
中使用plot创建图表
颜色
支持带有logscale=true
参数的选项板,例如:
using Colors
Plots.plot(x,y,f,st=:surface,color=Colors.diverging_palette(20,300,20, logscale=true, wcolor=colorant"red",dcolor1=colorant"green", dcolor2=colorant"red", b=0.1,d1=1.0,d2=1.0),camera=(25,65))