Excelã®ãã¹ã¦ã®ã·ã¼ããã¿ãåºåãããã¹ãã§ã·ã¼ããã¨ã«ãã¡ã¤ã«åºåãããã¯ããããã¯æ±ç¨æ§ããããããªã®ã§ããã«è²¼ã£ã¦ãããããã¼ã¿ã«é¢ä¿ãªãè¡ã¯#ãå é ã«ã¤ãã¦ããã¨gnuplotãã³ã¡ã³ãã¨è¦ãªãã¦ããã¦å¹¸ããªãããã«ãªãã¾ãã
outdirã«åºåå ã®ãã©ã«ããæå®ããã¡ã¤ã«åã¯ã·ã¼ãå+".dat"ã«ãªã£ã¦ãã®ã§é©å½ã«å¤æ´ãã¦ä¸ããã
Sub OutputTEXT() ' ã¢ã¯ãã£ããªã¯ã¼ã¯ããã¯ã®ã·ã¼ãããã¹ã¦ã¿ãåºåãããã¹ãä¿å Dim name As String Dim outdir As String Dim sheet As Worksheet outdir = "C:\work\tex\mthesis\graph\" 'æ¢ã«ãã¼ã¿ãåå¨ããå ´åã®ä¸æ¸ãè¦åãé表示 Application.DisplayAlerts = False For Each sheet In Worksheets sheet.Select name = outdir & ActiveSheet.name & ".dat" ActiveWorkbook.SaveAs filename:=name, FileFormat:=xlText, CreateBackup:=False Next sheet 'è¦å表示ãæ»ã Application.DisplayAlerts = True End Sub
ã¤ãã§ã«gnuoplotç¨ã®plotãã¡ã¤ã«ã®èªåçæã¯å人çãããã®ã§ç¹ã«ä½¿ãéãªãã§ããã©åèã¾ã§ã«
#!/bin/bash for type in "loss" "throuput" "watingtime" "hop" ; do for i in "sim1-${type}" "sim2-${type}" "sim3-${type}" ; do sed "s/DATNAME/$i/g" master-${type}.plot | gnuplot done done
#master-loss.plot #set parametric set xlabel "Traffic Load" # x軸ã®åå set ylabel "Packet Loss Probability" # y軸ã®åå set term postscript eps set term postscript enhanced set term postscript "Arial,9" set output "DATNAME.eps" # epsãã¡ã¤ã«ã®åå set size 0.6,0.4 set xrange [0.0:1.0] # x軸ã®ç¯å² set yrange [1e-6:1] # y軸ã®ç¯å² set logscale y # y軸ãlogã¹ã±ã¼ã«ã«ãã set format x "%0.1f" #x軸ãå°æ°1æ¡ã¾ã§è¡¨ç¤º set format y "1.0E%L" #y軸ãææ°å½¢å¼ã«ãã set key outside plot 'DATNAME.dat' using 2:3 title " hoge" with linespoints,\ 'DATNAME.dat' using 2:4 title "hogehoge" with linespoints
master-*.plotä¸ã®DATNAMEã®ã¨ããããsedã§ãã¡ã¤ã«åã«ç½®æããã¾ãã