2013-05-26 16 views

回答

2

這將gnuplot的工作4.4和更高:

gnuplot> n = "`awk 'END {print NR}' < circle.txt`" 
gnuplot> i=0; while i<n{set term wxt i; plot 'circle.txt' every ::i::i using 1:2:3 with circles; i=i+1} 

說明:

  • "`awk 'END {print NR}' < circle.txt`"以確定該文件中的行數
    警告:這不在Windows 32位系統上工作)
  • i=0 to s等while循環
  • while i<n循環通過文件
  • { } while-子句的行中的計數器必須在大括號
  • set term wxt i該部分
  • 單獨的命令通過打開用於每個小區的新的窗口;
  • plot 'circle.txt' every ::i::i using 1:2:3 with circles這只是該文件的第012行的iMore information on plotting specific lines can be found here.
  • i=i+1增量計數器
+0

@ user69910請考慮點擊對號(✓)旁邊的按扭或評論什麼不適合你接受的答案。 – Schorsch

相關問題