Skip to content

Commit c81b847

Browse files
committed
added area plot
1 parent 5a03fb4 commit c81b847

File tree

6 files changed

+39
-0
lines changed

6 files changed

+39
-0
lines changed
14.6 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2013-09-01 3 5 12 14 3
2+
2013-09-02 5 6 12 15 6
3+
2013-09-03 2 4 16 12 4
4+
2013-09-04 1 3 18 11 3
5+
2013-09-05 3 4 15 13 6
6+
2013-09-06 7 3 12 21 9
7+
2013-09-07 5 4 11 18 8
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
set terminal pdfcairo enhanced dashed size 8, 4;
2+
3+
set output "area-plot.pdf"
4+
5+
set title "Title"
6+
7+
set xdata time
8+
set timefmt "%Y-%m-%d"
9+
set xlabel "x"
10+
set xrange ["2013-09-01":"2013-09-07"]
11+
set xtics out
12+
set tics front
13+
14+
set ylabel "y"
15+
set yrange [0:10<*]
16+
set ytics 5
17+
18+
set datafile separator " "
19+
20+
set style line 1 lt rgb "#9E77A1" lw 2
21+
set style line 2 lt rgb "#9A8FBB" lw 2
22+
set style line 3 lt rgb "#7BC1BF" lw 2
23+
set style line 4 lt rgb "#7ED9B1" lw 2
24+
set style line 5 lt rgb "#FDF57A" lw 2
25+
26+
set grid
27+
28+
plot 'data.txt' using 1:($2+$3+$4+$5+$6) w filledcurves x1 linestyle 1 fs transparent solid 0.4 title 'T1', \
29+
'' using 1:($3+$4+$5+$6) w filledcurves x1 linestyle 2 fs transparent solid 0.4 title 'T2', \
30+
'' using 1:($4+$5+$6) w filledcurves x1 linestyle 3 fs transparent solid 0.4 title 'T3', \
31+
'' using 1:($5+$6) w filledcurves x1 linestyle 4 fs transparent solid 0.4 title 'T4', \
32+
'' using 1:($6) w filledcurves x1 linestyle 5 fs transparent solid 0.4 title 'T5'
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)