跳到主要內容

GNUPLOT

Load data from file.name and use a spreadsheet-like command:
  • plot "file.name" using 5:($6*2+158) with [lines, dots, points]
The annotation will replace the raw commands appeared in the legend
  • plot "file.name " with [lines, dots, points] title "annotation"
Use awk, use "< awk '{whatever}' " in the place of filename. Note there is no space after the 1st quotation.

make a plot on top of another one (like hold on function in MATLAB)
  • set multiplot on
  • unset multiplot
make 3 plots in one figure (like subplot in MATLAB)
  • set multiplot on
  • set size 0.5, 0.5 (default is 1, 1. This makes it 25% smaller)
  • set origin 0,0 (default)
  • plot whatever
  • continue use set size/origin until it is done.
output to a file
  • set output "filename.png"
  • set terminal png (other options include: set term postscript color)
  • replot
Good tutorials can be found in the following:
  • T. Kawano -- not so much FAQ, which includes how to plot special symbols or Greek letters

留言

這個網誌中的熱門文章

國道通行費比較表

A FREEway that is not really FREE. 有人想過 做個圖看看嗎 ? 資料來源: freeway.gov.tw 方案一【一段式收費】:無免費里程,單一費率0.82元/公里。 方案三【三段式收費】:每日每車免費里程20公里,標準費率1.2元/公里(行駛里程 小於200公里), 長途費率0.9元/公里(行駛里程大於等於200公里) 相關新聞: 國道計程 「北高估348元」 | 蘋果日報 : 自由電子報 - 國道計程收費民調 免費20公里呼聲高 : 國道計程收費 下半年上路 - Yahoo!奇摩新聞 :