问题描述
以下是 Octave/Matlab 代码
x=linspace(0,1,100);
y=linspace(0,100);
[X,Y]=meshgrid(x,y);
Z=-(X.^2+Y.^2)+1;
figure(1)
surf(X.^6,Y.^6,Z);
shading interp;view([0 90]);
axis tight
colorbar;
在 Julia 中使用 PyPlot 的等价物是什么?
解决方法
这是一种方法
import Plots
x = range( 0,1; length=100 );
y = range( 0,1; length=100 );
f(x,y) = - ( x .^ (2/6) .+ y .^ (2/6) ) .+ 1;
Plots.surface( x,y,f; viewangle=(0,90) )