2017-10-04 15 views
2

plot3d()関数を呼び出すときのデフォルトの動作は、得られたマニフォールドを側面から見て表示することです。例えば、Maxima:2Dスカラー場のカラープロットf(x、y)(別名「鳥瞰図」)

(%i0) wxplot3d(cos(x)*cos(y),[x,-%pi,%pi],[y,-%pi,%pi]); 

を実行すると、利回り

Maxima's default behaviour is to show the plot from the side.

このようなプロットは非常にきれいであってもよいが、それの私達の解釈をbiaiseする傾向があり、また、時にはマニホールドの一部が隠されていることができます。どのように私は同じプロットの "鳥の眺め"を得るのですか?

答えて

2

これは、プロットを描画する前にgnuplotのset view mapコマンドを実行するようにMaximaに依頼することで実現できます。実際、

(%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

これらのパラメータは、8.1リスト "gnuplotのアクションで" ブック、ページ145、が推奨するものです。ここでは、それぞれの機能について説明します(同じリストから):

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 
関連する問題