スーパーモンゴ  SuperMongo

冒頭
*****(ファイル名、.smは書かない)
         device postportfile *****.ps
         define TeX_strings 1
         era


用紙の向き
         device postlandfile *.ps   .....縦
         device postportfile *.ps   .....横


領域の指定
         expand 1.0         .....拡大率
         lw 1               .....線幅(line width)
         location 5000 10000 5000 10000
         limits 0 1 0 1
         relocate 0.5 -0.1
         label x軸のタイトル
         relocate -0.1 1.0
         label グラフのタイトル
         relocate -0.2 0.4
         angle 90
         label y軸のタイトル
         angle 0
         limits 1 10 500 900  .....(x_min x_max y_min y_max)
         ticksize 1 2 50 100  .....(x_小刻み x_大刻み(値が書かれる) y_小刻み y_大刻み(値が書かれる))
         box 1 2 0 3          .....(x軸 y軸 第二x軸 第二y軸 : 0=刻みのみ、1=刻み+値(水平向き)、2=刻み+値(垂直向き)、3=何も書かない)
         expand 1.0

         axis A1 A2 VSMALL VBIG AX AY ALEN ILABEL ICLOCK   
            ....(最小値 最大値 小目盛 大目盛 最小値の場所x 最大値の場所y 軸の長さ ラベルの有無 目盛の回転向き(通常は0か1))
                                   ・ベルの有無(0:なし 1:軸に水平 2:軸に垂直 3:ラベルも目盛もなし) 
                                   ・指数のときはVSMALLをマイナスにする
                                   ・y軸のときは前にangle=90をつける。


軸の単位を数字で表すmin, max(これ以上以下だと指数表示になる)

         notation -6 6 -6 6


データ点の指定
         lw 1
         lt 0       .....線種(line type)
         ctype red
         pt 50 3    .....●
         pt 50 0    .....○
         points x y


色の指定
          ctype blue
	  使える色:white,black,red,green,blue,cyan,magenta,yellow


任意の線を書く
         set line_x = {x1 x2}
         set line_y = {y1 y2}
         lw 1
         lt 1
         connect line_x line_y


任意の位置(x,y)にテキストを書く
         relocate x y
         label test



あるxyの上に、線と数値xを書く(波長を記入するとき end以降に書く)
putline 1 expand 0.3
          define xpos ($1+10.0)
          relocate $xpos 8.2
          angle 90
          label $1
          angle 0
          lw 0.3
          relocate $1 7.6
          draw $1 8.15
          lw 0
          expand 1.0


コンパイル
> sm -m *****.sm