]> sigrok.org Git - libsigrok.git/blob - contrib/gnuplot_chronovu_la8.gpi
sr: corrected VID for Victor 70C
[libsigrok.git] / contrib / gnuplot_chronovu_la8.gpi
1 ##
2 ## This file is part of the sigrok project.
3 ##
4 ## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19 ##
20
21 # We're setting the colors of the 8 channels to match the colors of the
22 # probe cables on the ChronoVu LA8:
23 #   background = white, borders = black, axes = gray,
24 #   ch0 = green, ch1 = orange, ch2 = white, ch3 = red,
25 #   ch4 = gray, ch5 = brown, ch6 = blue, ch7 = yellow
26 set terminal png large size 2048, 1536 xffffff x000000 x404040 \
27                                        x37aa34 xff7c00 xe0e0e0 xff0000 \
28                                        x808080 x925525 x425adc xfbee13
29 set autoscale
30 set grid
31 set ytics ("Channel 7" 2,  "Channel 6" 4,  "Channel 5" 6,  "Channel 4" 8, \
32            "Channel 3" 10, "Channel 2" 12, "Channel 1" 14, "Channel 0" 16)
33 set title "sigrok gnuplot output, http://www.sigrok.org, ChronoVu LA8"
34 set xlabel "Sample number"
35 set ylabel "Channel"
36 set output "sigrok_gnuplot.png"
37
38 plot [0:8388608] [0:18] \
39 "sigrok_gnuplot.dat" using 1:($2 + 15) with lines linewidth 2 title "", \
40 "sigrok_gnuplot.dat" using 1:($3 + 13) with lines linewidth 2 title "", \
41 "sigrok_gnuplot.dat" using 1:($4 + 11) with lines linewidth 2 title "", \
42 "sigrok_gnuplot.dat" using 1:($5 +  9) with lines linewidth 2 title "", \
43 "sigrok_gnuplot.dat" using 1:($6 +  7) with lines linewidth 2 title "", \
44 "sigrok_gnuplot.dat" using 1:($7 +  5) with lines linewidth 2 title "", \
45 "sigrok_gnuplot.dat" using 1:($8 +  3) with lines linewidth 2 title "", \
46 "sigrok_gnuplot.dat" using 1:($9 +  1) with lines linewidth 2 title ""
47