浏览代码

gnuplut+csv example fixed

Martin Thoma 12 年之前
父节点
当前提交
7a367fc289
共有 4 个文件被更改,包括 8 次插入1 次删除
  1. 5 0
      math/gnuplot/README.md
  2. 2 0
      math/gnuplot/draw-csv/README.md
  3. 二进制
      math/gnuplot/draw-csv/draw-csv.png
  4. 1 1
      math/gnuplot/draw-csv/plot.gnuplot

+ 5 - 0
math/gnuplot/README.md

@@ -0,0 +1,5 @@
+You might have to run
+
+`sudo apt-get install gnuplot`
+
+first.

+ 2 - 0
math/gnuplot/draw-csv/README.md

@@ -8,6 +8,8 @@ Syntax: `plot 'data.csv' every::1::7  using 1:2 with boxes`
 * `using 1:2`: use first and second column
 * `with boxes`: can also be `lines` or `vectors head size 0.1,20,60 filled lc palette`
 
+![Example](draw-csv.png)
+
 Examples
 --------
 * http://www.gnuplotting.org/tag/data/

二进制
math/gnuplot/draw-csv/draw-csv.png


+ 1 - 1
math/gnuplot/draw-csv/plot.gnuplot

@@ -1,4 +1,4 @@
 set terminal latex
 set output "plot-tmp.tex"
 set datafile separator "," 
-plot 'data.csv' every::1::7  using 1:2:3:4 with vectors head size 0.1,20,60 filled lc palette
+plot 'data.csv' every::1::7  using 1:2:3:4 with vectors