2017-10-04 18 views
2

maxima에서 plot3d() 함수를 호출 할 때 기본 동작은 측면에서 결과 매니 폴드를 표시하는 것입니다. 예를 들어,Maxima : 2D 스칼라 필드 f (x, y)의 Colorplot

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

플롯을 그리기 전에 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"]) 

은 이러한 매개 변수를 8.1 리스팅 "의 gnuplot 액션"책에서 권장하는 것, 145 페이지입니다

enter image description here

산출한다. 각 목록의 내용은 다음과 같습니다 (동일한 목록에서) :

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