隔了很久,終於要寫第二篇了

版本都出到5.0.2了說

以下紀錄以前用過的一些功能

(1)線跟點

(2)3D圖、3D平面彩圖、等高線圖

splot: plots 3-d surfaces and data--->sp

==========3D圖===============

splot x*x - y*y         # 馬鞍面
    
set isosamples 20,20    # 提高畫線密度; 下一次畫圖時才看得見效果。
set hidden3d            # 消除隱線;  下一次畫圖時才看得見效果。
replot     
set contour             # 畫等高線。
replot
set cntrparam levels 20 # 提高等高線密度。
replot
set pm3d                # 按照高度著色。
replot
reset                   # 清除所有設定, 恢復成預設值。
replot                  # 回復成第一次畫圖的樣子。
 
 
set parametric          # 進入參數式模式。
splot cos(u)*cos(v), cos(u)*sin(v), sin(u)
unset pm3d              
replot                 
splot [-pi:pi] [-pi/2:pi/2] cos(u)*cos(v), cos(u)*sin(v), sin(u)

 

======3D平面彩圖=======

set term post eps enhanced color
set out "beta_first_p3d.eps"
set multiplot

set pm3d map
#set palette model RGB rgbformulae 22,13,-31
set pm3d flush begin ftriangles scansforward interpolate 25,1
set palette gray
set palette gamma 1.25
set zr [0:75]
set xr [0.1:2]
set yr [0:5]
set xlabel "Radius(Fsu)"
set ylabel "Relative Velocity((Fsu/sec)*100)"

set lmar 0
set rmar 0
set tmar 0
set bmar 0
set origin 0,0
set size 1,1
set title "{/Symbol b}=0.4" 
sp "chi_beta0.40" u 3:($2*100.0/3045.0):1 

set origin 0,1.1
set size 1,1
set title "{/Symbol b}=0.3"
sp "chi_beta0.30" u 3:($2*100.0/3045.0):1 

set origin 0,2.2
set size 1,1
set title "{/Symbol b}=0.2"
sp "chi_beta0.20" u 3:($2*100.0/3045.0):1 

set origin 0,3.3
set size 1,1
set title "{/Symbol b}=0.1"
sp "chi_beta0.10" u 3:($2*100.0/3045.0):1 

set origin 0,4.4
set size 1,1
set title "{/Symbol b}=0.0"
sp "chi_beta0.00" u 3:($2*100.0/3045.0):1 

set origin 1.1,1.1
set size 1,1
set title "{/Symbol b}=0.8"
sp "chi_beta0.80" u 3:($2*100.0/3045.0):1 

set origin 1.1,2.2
set size 1,1
set title "{/Symbol b}=0.7"
sp "chi_beta0.70" u 3:($2*100.0/3045.0):1 

set origin 1.1,3.3
set size 1,1
set title "{/Symbol b}=0.6"
sp "chi_beta0.60" u 3:($2*100.0/3045.0):1 

set origin 1.1,4.4
set size 1,1
set title "{/Symbol b}=0.5"
sp "chi_beta0.50" u 3:($2*100.0/3045.0):1 

set nomultiplot           

====================================

===============等高線圖=============

set term post eps enhanced color
set out "beta_first.eps"
set multiplot

set zr [0:75]
set xr [0.1:2]
set yr [0:5]
set dgrid3d ,,100
set contour
set cntrparam bspline
#set cntrparam levels auto 10
set cntrparam levels incr 10,2,30
set view map
set style data lines
unset surface
set xlabel "Radius(Fsu)"
set ylabel "Relative Velocity((Fsu/sec)*100)"

...

set nomultiplot 

====================================

參考資料

http://lowrank.net/gnuplot/index-e.html

http://user.frdm.info/ckhung/b/ma/3dsurf.php

 

 

arrow
arrow
    全站熱搜

    gtchen 發表在 痞客邦 留言(0) 人氣()