Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maxima:硬设置色条';plot3d()中的s范围_Plot_Colorbar_Maxima - Fatal编程技术网

Maxima:硬设置色条';plot3d()中的s范围

Maxima:硬设置色条';plot3d()中的s范围,plot,colorbar,maxima,Plot,Colorbar,Maxima,如何在maxima的plot3d()中硬设置颜色栏的范围 比如说, (%i0) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi]); 使用默认行为,即从-1到+1的颜色条,这将产生 但是,如果我想要一个从0到+1的颜色条,那该怎么办呢?在绘图之前,可以让maxima运行gnuplotset cbrange命令 (%i0) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi], [gnuplot_pre

如何在maxima的plot3d()中硬设置颜色栏的范围

比如说,

(%i0) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi]);
使用默认行为,即从-1到+1的颜色条,这将产生


但是,如果我想要一个从0到+1的颜色条,那该怎么办呢?

在绘图之前,可以让maxima运行gnuplot
set cbrange
命令

(%i0) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi], [gnuplot_preamble, "set cbrange [0:1]"]);
产生


在绘图之前,可以通过要求maxima运行gnuplot
set cbrange
命令来实现

(%i0) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi], [gnuplot_preamble, "set cbrange [0:1]"]);
产生