Skip to content

Commit 7278f81

Browse files
committed
YErrorBars added. #RN
1 parent c554ebe commit 7278f81

File tree

5 files changed

+35
-1
lines changed

5 files changed

+35
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ all: install generate
77

88
install: img
99

10-
generate: img/line.png img/line-width3.png img/line-100.png img/line-avg.png img/line-sum.png img/lines.png img/points.png img/time.png img/date.png img/datetime.png img/headmap.png img/gantt.png
10+
generate: img/line.png img/line-width3.png img/line-100.png img/line-avg.png img/line-sum.png img/lines.png img/points.png img/time.png img/date.png img/datetime.png img/headmap.png img/gantt.png img/yerrorbars.png
1111

1212
img:
1313
$(MKDIR) $@

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ Using the same as *Default Line* but scaling y with 1/100 of the original value.
5959

6060
![](img/points.png)
6161

62+
## Y Error Bars
63+
64+
- GNUPlot script: [`scripts/yerrorbars.gp`](scripts/yerrorbars.gp)
65+
- Data file: [`data/yerrorbars.dat`](data/yerrorbars.dat)
66+
67+
![](img/yerrorbars.png)
68+
6269
## Date
6370

6471
- GNUPlot script: [`scripts/date.gp`](scripts/date.gp)

data/yerrorbars.dat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1 25 5
2+
2 20 1
3+
3 10 2

img/yerrorbars.png

3.67 KB
Loading

scripts/yerrorbars.gp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
set title 'YErrorBars'
3+
set xlabel 'x'
4+
set ylabel 'y'
5+
6+
unset grid
7+
set key below center horizontal noreverse enhanced autotitle box dashtype solid
8+
set tics out
9+
set border 3 front linetype black linewidth 1.0 dashtype solid
10+
11+
set xrange [0:5]
12+
set xtics 1
13+
set mxtics 1
14+
15+
set yrange [0:35]
16+
17+
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2
18+
19+
set terminal png enhanced
20+
set output 'img/yerrorbars.png'
21+
plot 'data/yerrorbars.dat' with yerrorbars linestyle 1 title 'data'
22+
23+
# set terminal xterm
24+
# replot

0 commit comments

Comments
 (0)