Skip to content

Commit 900a420

Browse files
committed
Added more palettes and documentation
1 parent 5ede9f0 commit 900a420

File tree

8 files changed

+184
-18
lines changed

8 files changed

+184
-18
lines changed

gnpu.pal

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# line styles for ColorBrewer GnBu
2+
# for use with sequential data
3+
# provides 8 green-blue colors of increasing saturation
4+
# compatible with gnuplot >=4.2
5+
# author: Anna Schneider
6+
7+
# line styles
8+
set style line 1 lt 1 lc rgb '#F7FCF0' # very light green-blue
9+
set style line 2 lt 1 lc rgb '#E0F3DB' #
10+
set style line 3 lt 1 lc rgb '#CCEBC5' #
11+
set style line 4 lt 1 lc rgb '#A8DDB5' # light green-blue
12+
set style line 5 lt 1 lc rgb '#7BCCC4' #
13+
set style line 6 lt 1 lc rgb '#4EB3D3' # medium green-blue
14+
set style line 7 lt 1 lc rgb '#2B8CBE' #
15+
set style line 8 lt 1 lc rgb '#08589E' # dark green-blue
16+
17+
# palette
18+
set palette defined ( 0 '#F7FCF0',\
19+
1 '#E0F3DB',\
20+
2 '#CCEBC5',\
21+
3 '#A8DDB5',\
22+
4 '#7BCCC4',\
23+
5 '#4EB3D3',\
24+
6 '#2B8CBE',\
25+
7 '#08589E' )

matlab.pal

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# MATLAB jet color pallete
22

33
# line styles
4-
set style line 1 lt 1 lc rgb '#000000' #
5-
set style line 2 lt 1 lc rgb '#000000' #
6-
set style line 3 lt 1 lc rgb '#000000' #
7-
set style line 4 lt 1 lc rgb '#000000' #
8-
set style line 5 lt 1 lc rgb '#000000' #
9-
set style line 6 lt 1 lc rgb '#000000' #
10-
set style line 7 lt 1 lc rgb '#000000' #
11-
set style line 8 lt 1 lc rgb '#000000' #
12-
set style line 9 lt 1 lc rgb '#000000' #
4+
set style line 1 lt 1 lc rgb '#000080' #
5+
set style line 2 lt 1 lc rgb '#0000ff' #
6+
set style line 3 lt 1 lc rgb '#0080ff' #
7+
set style line 4 lt 1 lc rgb '#00ffff' #
8+
set style line 5 lt 1 lc rgb '#80ff80' #
9+
set style line 6 lt 1 lc rgb '#ffff00' #
10+
set style line 7 lt 1 lc rgb '#ff8000' #
11+
set style line 8 lt 1 lc rgb '#ff0000' #
12+
set style line 9 lt 1 lc rgb '#800000' #
1313

1414
# palette
1515
set palette defined (0 0.0 0.0 0.5, \

moreland.pal

+8-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
# http://bastian.rieck.ru/blog/posts/2012/gnuplot_better_colour_palettes/
44

55
# line styles
6-
set style line 1 lt 1 lc rgb '#000000' #
7-
set style line 2 lt 1 lc rgb '#000000' #
8-
set style line 3 lt 1 lc rgb '#000000' #
9-
set style line 4 lt 1 lc rgb '#000000' #
10-
set style line 5 lt 1 lc rgb '#000000' #
11-
set style line 6 lt 1 lc rgb '#000000' #
12-
set style line 7 lt 1 lc rgb '#000000' #
13-
set style line 8 lt 1 lc rgb '#000000' #
14-
set style line 9 lt 1 lc rgb '#000000' #
6+
set style line 1 lt 1 lc rgb '#3b4cc0' #
7+
set style line 2 lt 1 lc rgb '#688aef' #
8+
set style line 3 lt 1 lc rgb '#99baff' #
9+
set style line 4 lt 1 lc rgb '#c9d8ef' #
10+
set style line 5 lt 1 lc rgb '#edd1c2' #
11+
set style line 6 lt 1 lc rgb '#f7a789' #
12+
set style line 7 lt 1 lc rgb '#e36a53' #
13+
set style line 8 lt 1 lc rgb '#b40426' #
1514

1615
# palette
1716
# TODO: check if the short version gives the same results

overview.gnu

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
#!/usr/bin/gnuplot
2+
#
3+
# <+DESCRIPTION+>
4+
#
5+
# AUTHOR: Hagen Wierstorf
6+
# gnuplot 4.6 patchlevel 1
7+
8+
reset
9+
10+
# wxt
11+
set terminal wxt size 1024,1600 enhanced font 'Verdana,10' persist
12+
# png
13+
set terminal pngcairo size 1024,1600 enhanced font 'Verdana,10'
14+
set output 'overview.png'
15+
16+
# color definitions
17+
18+
19+
unset key
20+
21+
unset border
22+
unset key
23+
unset tics
24+
unset colorbox
25+
26+
# function for lines
27+
f(x,i) = cos(x - 1.0 + i/10.0)
28+
29+
set xrange [0:pi]
30+
31+
set multiplot layout 14,6
32+
# colorbrewer diverging
33+
do for [pal in "\
34+
brbg prgn piyg puor rdbu rdgy rdylbu rdylgn spectral\
35+
accent dark2 paired pastel1 pastel2 set1 set2 set3\
36+
blues bugn bupu gnbu greens greys orrd oranges pubu pubugn purd purples rdpu reds ylgn ylgnbu ylorbr ylorrd\
37+
moreland\
38+
"] {
39+
filename = pal . '.pal'
40+
load filename
41+
# plot colorbar
42+
set lmargin 4
43+
set rmargin 4
44+
plot 'overview.txt' u 1:2:3 w image
45+
# plot lines
46+
set label 1 pal at -1,0 left front
47+
set lmargin -6
48+
set rmargin 1
49+
plot for [ii=1:8] f(x,ii) ls ii lw 2
50+
unset label
51+
}
52+
53+
load 'matlab.pal'
54+
set lmargin 4
55+
set rmargin 4
56+
plot 'overview.txt' u 1:2:3 w image
57+
set label 1 'matlab' at -1,0 left front
58+
set lmargin -6
59+
set rmargin 1
60+
plot for [ii=1:9] f(x,ii) ls ii lw 2
61+
unset label
62+
63+
load 'whylrd.pal'
64+
set lmargin 4
65+
set rmargin 4
66+
plot 'overview.txt' u 1:2:3 w image
67+
set label 1 'whylrd' at -1,0 left front
68+
set lmargin -6
69+
set rmargin 1
70+
plot for [ii=1:5] f(x,ii) ls ii lw 2
71+
unset label
72+
73+
load 'ylrd.pal'
74+
set lmargin 4
75+
set rmargin 4
76+
plot 'overview.txt' u 1:2:3 w image
77+
set label 1 'ylrd' at -1,0 left front
78+
set lmargin -6
79+
set rmargin 1
80+
plot for [ii=1:4] f(x,ii) ls ii lw 2
81+
unset label
82+
83+
do for [pal in "\
84+
gnpu\
85+
"] {
86+
filename = pal . '.pal'
87+
load filename
88+
# plot colorbar
89+
set lmargin 4
90+
set rmargin 4
91+
plot 'overview.txt' u 1:2:3 w image
92+
# plot lines
93+
set label 1 pal at -1,0 left front
94+
set lmargin -6
95+
set rmargin 1
96+
plot for [ii=1:10] f(x,ii) ls ii lw 2
97+
unset label
98+
}
99+
100+
unset multiplot

overview.png

391 KB
Loading

overview.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
1 1 1
2+
1 2 2
3+
1 3 3
4+
1 4 4
5+
1 5 5
6+
1 6 6
7+
1 7 7
8+
1 8 8
9+
2 1 1
10+
2 2 2
11+
2 3 3
12+
2 4 4
13+
2 5 5
14+
2 6 6
15+
2 7 7
16+
2 8 8

whylrd.pal

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# line styles
2+
set style line 1 lt 1 lc rgb '#ffffff' # white
3+
set style line 2 lt 1 lc rgb '#ffee00' #
4+
set style line 3 lt 1 lc rgb '#ff7000' # yellow
5+
set style line 4 lt 1 lc rgb '#ee0000' #
6+
set style line 5 lt 1 lc rgb '#7f0000' # red
7+
8+
# palette
9+
set palette defined ( \
10+
0 '#ffffff', \
11+
1 '#ffee00', \
12+
2 '#ff7000', \
13+
3 '#ee0000', \
14+
4 '#7f0000')

ylrd.pal

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# line styles
2+
set style line 1 lt 1 lc rgb '#ffee00' # yellow
3+
set style line 2 lt 1 lc rgb '#ff7000' #
4+
set style line 3 lt 1 lc rgb '#ee0000' #
5+
set style line 4 lt 1 lc rgb '#7f0000' # red
6+
7+
# palette
8+
set palette defined ( \
9+
0 '#ffee00', \
10+
1 '#ff7000', \
11+
2 '#ee0000', \
12+
3 '#7f0000')

0 commit comments

Comments
 (0)