File: if_filter.dem

package info (click to toggle)
gnuplot 6.0.3%2Bdfsg1-1~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 14,960 kB
  • sloc: ansic: 95,874; cpp: 7,199; makefile: 2,470; javascript: 2,339; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (22 lines) | stat: -rw-r--r-- 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Input filter for data files, usable from plot or splot
#
set title "Extract desired lines from unsorted input using\n"."plot .. if (<expression>)"

set margins 15,5,12
unset tics
set xtics nomirror scale 0.0, 0.0
set xtics rotate by -90
unset border
set offsets 0,0,0, graph .1
set style data linespoints
LC = 7

DATA = "energy_circles.dat"
LIST = "Coal Oil Gas Nuclear Renewable"

plot for [type in LIST] DATA using (int($0)/6):7:xticlabel(3) \
                        lc (LC=LC+1) lw 2 pt 6 pi -1 title type."   " at beg \
     if (strcol(4) eq type)

pause -1 "<cr> to continue"
reset