# # plot2d.mtv # $ DATA=CURVE2D % toplabel="Plot2d" % xyratio=1.0 % linewidth=2 % linecolor=3 % linelabel="cos(x)" % axisguides = False % eyepos.x = 0 % eyepos.y = 0 % eyepos.z = 1 -6.28318 1 -6.15752 0.992115 -6.03186 0.968583 -5.90619 0.929776 -5.78053 0.876306 -5.65487 0.809016 ... $END # # # plotmtv -printcmd="cat>/dev/null" -print -nodate -color \ -noframe -o plot2d.ps plot2d.mtv |
# # plot3d.mtv # # 領域を M x N に分割したならば,その個数 # 分の面素(長方形の4つの頂点)を1つずつ記述する. # # $ DATA=CURVE3D % toplabel = "z(x,y)=sin(x)*sin(y)/x/y" % hiddenline=True % axisguides = False % applyfill = True % dfillcolor = 2 # default: 1(yellow) % dlinetype = 1 % dlinewidth = 1 % eyepos.x = 1.0 # default: 1.0 % eyepos.y = 1.5 # default: 1.5 % eyepos.z = 1.0 # default: 0.5 % xmin = -7.0 % xmax = 7.0 % ymin = -7.0 % ymax = 7.0 % zmin = -0.4 % zmax = 1.0 -6.283185 -5.780530 3.24866e-18 1 -6.283185 -5.277876 6.23589e-18 2 -5.780530 -5.277876 0.0133324 27 -5.780530 -5.780530 0.00694568 26 -6.283185 -5.277876 6.23589e-18 2 -6.283185 -4.775221 8.14696e-18 3 -5.780530 -4.775221 0.0174183 28 -5.780530 -5.277876 0.0133324 27 -6.283185 -4.775221 8.14696e-18 3 -6.283185 -4.272566 8.25512e-18 4 -5.780530 -4.272566 0.0176496 29 -5.780530 -4.775221 0.0174183 28 ... $END # # オプション -3d が必要 # plotmtv -printcmd="cat>/dev/null" -print -nodate -color \ -noframe -3d -o plot2d.ps plot2d.mtv |
# # contour.mtv # # M x N のグリッドデータ(z値)を与える. # $ DATA=CONTOUR % eyepos.x = 0 % eyepos.y = 0 % eyepos.z = 1 % axisguides = False % toplabel ="" % contstyle = 1 #% contfill = True % nx = 26 % ny = 26 % xmin = -0.628 % xmax = 0.628 % ymin = -0.628 % ymax = 0.628 # --> nx 0.000000 0.000000 0.000000 0.000000 ... # | 0.000000 0.006946 0.013332 0.017418 ... # V ... # ny $END # # # plotmtv -printcmd="cat>/dev/null" -print -nodate -color \ -noframe -o contour.ps contour.mtv |
スクリプト内に指定するコマンドはない.plotmtv が複数の図を1つの ページに収めるオプションを持っている. # # -3d を付けるので,2d に描く図では eyepos.* を設定する. # plotmtv -printcmd="cat>/dev/null" -print -nodate -color \ -noframe -3d -o multi.ps plot2d.mtv plot3d.mtv contour.mtv |