* A simple kumac file to plot some curves * vec/del * | delete any pre-existing vectors opt nbox | no box around plot set ymgu 2. | size of upper margin (cm) set ymgl 2.5 | size of lower margin (cm) set xmgr 2. | size of right margin (cm) set xmgl 2.5 | size of left margin (cm) set xsiz 18. | x size of plot (cm) set ysiz 18. | y size of plot (cm) * * create vectors x, y, z by reading from a file * vec/read x,y,z test_data.dat null 0. 10. 0. 100. | sets min/max values for x and y axes set dmod 1 | solid line graph $VLEN(x) x y 'L' | $VLEN gives the length of the vector set dmod 2 | dashed line graph $VLEN(x) x z 'L' * * Create another vector by hand and add to plot. Add axis labels. * vec/create w(11) R 20 18 16 14 12 10 8 6 4 2 0 | R means type is real set dmod 3 graph 11 x w 'L' set asiz 0.4 | set axis label size atit 'x axis title' 'y axis title' * * Add a comment using PostScript characters (commands: chhe, txfp, itx). * set chhe 0.5 | set character height set txfp -130 | Times-Roman font itx 1.0 90.0 'Test plot' * * Just to see how it's done, add key with software characters (command: text) * set dmod 1 dline 1.0 2.0 80. 80. | x1 x2 y1 y2 text 2.5 79. 'y = x' 0.4 | x y 'string' size (cm) set dmod 2 dline 1.0 2.0 70. 70. text 2.5 69. 'y = x^2!' 0.4 set dmod 3 dline 1.0 2.0 60. 60. text 2.5 59. 'y = -2x + 20' 0.4