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