2017-10-04 44 views

回答

2

这可以通过要求Maxima在绘制图之前运行gnuplot的命令set view map来实现。事实上,呼吁

(%i0) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi], [gnuplot_preamble, "set view map"]); 

产生

enter image description here

到彩色图另一种方法是等高线图。例如,

(%i1) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi], [gnuplot_preamble, 
    "set view map; set size square;unset surface;set contour;set cntrparam levels 10;set clabel '%.1f';set isosamples 150"]) 

产生

enter image description here

这些参数是由 “的Gnuplot在行动” 一书推荐的,145页,其中列出8.1。这里是每个做什么的描述(来自完全相同的列表):

set view map   #Choose birds-eye view 
set size square   #Choose equal units in both directions 
unset surface   #Switch off the surface... 
set contour    #... but switch on contours lines 
set cntrparam levels 10 #Increase the number of contour lines 
set clabel "%.1f"  #Choose format of contour labels in key 
set isosamples 150  #Increase sampling frequency