2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

added gnuplot example

This commit is contained in:
Martin Thoma 2012-10-28 21:14:56 +01:00
parent e3a4193f41
commit e0e6349038
3 changed files with 22 additions and 9 deletions

View file

@ -0,0 +1,13 @@
GnuPlot and CSV-Files
=====================
Syntax: `plot 'data.csv' every::1::7 using 1:2 with boxes`
* `data.csv`: The CSV-file
* `every::1::7`: use data from line 1 to line 7
* `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`
Examples
--------
* http://www.gnuplotting.org/tag/data/

View file

@ -1,8 +1,8 @@
time,frequency
1,100
2,80
3,10
12,120
4,50
5,50
6,50
time,frequency,color,bla
1,100,123,0
2,80,345,0
3,10,231,10
12,120,0,12
4,50,10,15
5,50,10,15
6,50,10,15

1 time frequency color bla
2 1 100 123 0
3 2 80 345 0
4 3 10 231 10
5 12 120 0 12
6 4 50 10 15
7 5 50 10 15
8 6 50 10 15

View file

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