diff --git a/diverging/BrBG.plt b/diverging/BrBG.plt index 26ad500..3fdaa67 100644 --- a/diverging/BrBG.plt +++ b/diverging/BrBG.plt @@ -1,25 +1,34 @@ # line styles for ColorBrewer BrBG # for use with divering data -# provides 8 colors with brown low, white middle, and blue-green high +# provides 11 colors with brown low, white middle, and blue-green high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#8C510A' # dark brown -set style line 2 lc rgb '#BF812D' # medium brown -set style line 3 lc rgb '#DFC27D' # -set style line 4 lc rgb '#F6E8C3' # pale brown -set style line 5 lc rgb '#C7EAE5' # pale blue-green -set style line 6 lc rgb '#80CDC1' # -set style line 7 lc rgb '#35978F' # medium blue-green -set style line 8 lc rgb '#01665E' # dark blue-green + +set style line 1 lc rgb'#543005' +set style line 2 lc rgb'#8c510a' +set style line 3 lc rgb'#bf812d' +set style line 4 lc rgb'#dfc27d' +set style line 5 lc rgb'#f6e8c3' +set style line 6 lc rgb'#f5f5f5' +set style line 7 lc rgb'#c7eae5' +set style line 8 lc rgb'#80cdc1' +set style line 9 lc rgb'#35978f' +set style line 10 lc rgb'#01665e' +set style line 11 lc rgb'#003c30' # palette -set palette defined ( 0 '#8C510A',\ - 1 '#BF812D',\ - 2 '#DFC27D',\ - 3 '#F6E8C3',\ - 4 '#C7EAE5',\ - 5 '#80CDC1',\ - 6 '#35978F',\ - 7 '#01665E' ) \ No newline at end of file + +set palette defined ( 0 '#543005',\ +1 '#8c510a',\ +2 '#bf812d',\ +3 '#dfc27d',\ +4 '#f6e8c3',\ +5 '#f5f5f5',\ +6 '#c7eae5',\ +7 '#80cdc1',\ +8 '#35978f',\ +9 '#01665e',\ +10 '#003c30' ) + diff --git a/diverging/PRGn.plt b/diverging/PRGn.plt index 31b0dd3..afe0dba 100644 --- a/diverging/PRGn.plt +++ b/diverging/PRGn.plt @@ -1,25 +1,33 @@ # line styles for ColorBrewer PRGn (aka PuGn) # for use with divering data -# provides 8 colors with purple low, white middle, and green high +# provides 11 colors with purple low, white middle, and green high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#762A83' # dark purple -set style line 2 lc rgb '#9970AB' # medium purple -set style line 3 lc rgb '#C2A5CF' # -set style line 4 lc rgb '#E7D4E8' # pale purple -set style line 5 lc rgb '#D9F0D3' # pale green -set style line 6 lc rgb '#A6DBA0' # -set style line 7 lc rgb '#5AAE61' # medium green -set style line 8 lc rgb '#1B7837' # dark green + +set style line 1 lc rgb'#40004b' +set style line 2 lc rgb'#762a83' +set style line 3 lc rgb'#9970ab' +set style line 4 lc rgb'#c2a5cf' +set style line 5 lc rgb'#e7d4e8' +set style line 6 lc rgb'#f7f7f7' +set style line 7 lc rgb'#d9f0d3' +set style line 8 lc rgb'#a6dba0' +set style line 9 lc rgb'#5aae61' +set style line 10 lc rgb'#1b7837' +set style line 11 lc rgb'#00441b' # palette -set palette defined ( 0 '#762A83',\ - 1 '#9970AB',\ - 2 '#C2A5CF',\ - 3 '#E7D4E8',\ - 4 '#D9F0D3',\ - 5 '#A6DBA0',\ - 6 '#5AAE61',\ - 7 '#1B7837' ) \ No newline at end of file + +set palette defined ( 0 '#40004b',\ +1 '#762a83',\ +2 '#9970ab',\ +3 '#c2a5cf',\ +4 '#e7d4e8',\ +5 '#f7f7f7',\ +6 '#d9f0d3',\ +7 '#a6dba0',\ +8 '#5aae61',\ +9 '#1b7837',\ +10 '#00441b' ) diff --git a/diverging/PiYG.plt b/diverging/PiYG.plt index 4465cee..7712825 100644 --- a/diverging/PiYG.plt +++ b/diverging/PiYG.plt @@ -1,25 +1,33 @@ # line styles for ColorBrewer PiYG # for use with divering data -# provides 8 colors with pink low, white middle, and yellow-green high +# provides 11 colors with pink low, white middle, and yellow-green high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#C51B7D' # dark pink -set style line 2 lc rgb '#DE77AE' # medium pink -set style line 3 lc rgb '#F1B6DA' # -set style line 4 lc rgb '#FDE0EF' # pale pink -set style line 5 lc rgb '#E6F5D0' # pale yellow-green -set style line 6 lc rgb '#B8E186' # -set style line 7 lc rgb '#7FBC41' # medium yellow-green -set style line 8 lc rgb '#4D9221' # dark yellow-green + +set style line 1 lc rgb'#8e0152' +set style line 2 lc rgb'#c51b7d' +set style line 3 lc rgb'#de77ae' +set style line 4 lc rgb'#f1b6da' +set style line 5 lc rgb'#fde0ef' +set style line 6 lc rgb'#f7f7f7' +set style line 7 lc rgb'#e6f5d0' +set style line 8 lc rgb'#b8e186' +set style line 9 lc rgb'#7fbc41' +set style line 10 lc rgb'#4d9221' +set style line 11 lc rgb'#276419' # palette -set palette defined ( 0 '#C51B7D',\ - 1 '#DE77AE',\ - 2 '#F1B6DA',\ - 3 '#FDE0EF',\ - 4 '#E6F5D0',\ - 5 '#B8E186',\ - 6 '#7FBC41',\ - 7 '#4D9221' ) \ No newline at end of file + +set palette defined ( 0 '#8e0152',\ +1 '#c51b7d',\ +2 '#de77ae',\ +3 '#f1b6da',\ +4 '#fde0ef',\ +5 '#f7f7f7',\ +6 '#e6f5d0',\ +7 '#b8e186',\ +8 '#7fbc41',\ +9 '#4d9221',\ +10 '#276419' ) diff --git a/diverging/PuOr.plt b/diverging/PuOr.plt index 6a82e26..ffc2c48 100644 --- a/diverging/PuOr.plt +++ b/diverging/PuOr.plt @@ -1,25 +1,33 @@ # line styles for ColorBrewer PuOr # for use with divering data -# provides 8 colors with orange low, white middle, and purple high +# provides 11 colors with orange low, white middle, and purple high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#B35806' # dark orange -set style line 2 lc rgb '#E08214' # medium orange -set style line 3 lc rgb '#FDB863' # -set style line 4 lc rgb '#FEE0B6' # pale orange -set style line 5 lc rgb '#D8DAEB' # pale purple -set style line 6 lc rgb '#B2ABD2' # -set style line 7 lc rgb '#8073AC' # medium purple -set style line 8 lc rgb '#542788' # dark purple + +set style line 1 lc rgb'#7f3b08' +set style line 2 lc rgb'#b35806' +set style line 3 lc rgb'#e08214' +set style line 4 lc rgb'#fdb863' +set style line 5 lc rgb'#fee0b6' +set style line 6 lc rgb'#f7f7f7' +set style line 7 lc rgb'#d8daeb' +set style line 8 lc rgb'#b2abd2' +set style line 9 lc rgb'#8073ac' +set style line 10 lc rgb'#542788' +set style line 11 lc rgb'#2d004b' # palette -set palette defined ( 0 '#B35806',\ - 1 '#E08214',\ - 2 '#FDB863',\ - 3 '#FEE0B6',\ - 4 '#D8DAEB',\ - 5 '#B2ABD2',\ - 6 '#8073AC',\ - 7 '#542788' ) \ No newline at end of file + +set palette defined ( 0 '#7f3b08',\ +1 '#b35806',\ +2 '#e08214',\ +3 '#fdb863',\ +4 '#fee0b6',\ +5 '#f7f7f7',\ +6 '#d8daeb',\ +7 '#b2abd2',\ +8 '#8073ac',\ +9 '#542788',\ +10 '#2d004b' ) diff --git a/diverging/RdBu.plt b/diverging/RdBu.plt index f072854..f9d4edb 100644 --- a/diverging/RdBu.plt +++ b/diverging/RdBu.plt @@ -1,25 +1,34 @@ # line styles for ColorBrewer RdBu # for use with divering data -# provides 8 colors with red low, white middle, and blue high +# provides 11 colors with red low, white middle, and blue high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#B2182B' # red -set style line 2 lc rgb '#D6604D' # red-orange -set style line 3 lc rgb '#F4A582' # -set style line 4 lc rgb '#FDDBC7' # pale orange -set style line 5 lc rgb '#D1E5F0' # pale blue -set style line 6 lc rgb '#92C5DE' # -set style line 7 lc rgb '#4393C3' # medium blue -set style line 8 lc rgb '#2166AC' # dark blue + +set style line 1 lc rgb'#67001F' +set style line 2 lc rgb'#B2182B' +set style line 3 lc rgb'#D6604D' +set style line 4 lc rgb'#F4A582' +set style line 5 lc rgb'#FDDBC7' +set style line 6 lc rgb'#F7F7F7' +set style line 7 lc rgb'#D1E5F0' +set style line 8 lc rgb'#92C5DE' +set style line 9 lc rgb'#4393C3' +set style line 10 lc rgb'#2166AC' +set style line 11 lc rgb'#053061' # palette -set palette defined ( 0 '#B2182B',\ - 1 '#D6604D',\ - 2 '#F4A582',\ - 3 '#FDDBC7',\ - 4 '#D1E5F0',\ - 5 '#92C5DE',\ - 6 '#4393C3',\ - 7 '#2166AC' ) \ No newline at end of file + +set palette defined ( 0 '#67001F',\ +1 '#B2182B',\ +2 '#D6604D',\ +3 '#F4A582',\ +4 '#FDDBC7',\ +5 '#F7F7F7',\ +6 '#D1E5F0',\ +7 '#92C5DE',\ +8 '#4393C3',\ +9 '#2166AC',\ +10 '#053061' ) + diff --git a/diverging/RdGy.plt b/diverging/RdGy.plt index 5b6d909..cb4d9c7 100644 --- a/diverging/RdGy.plt +++ b/diverging/RdGy.plt @@ -1,25 +1,33 @@ # line styles for ColorBrewer RdGy # for use with divering data -# provides 8 colors with red low, white middle, and grey high +# provides 11 colors with red low, white middle, and grey high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#B2182B' # red -set style line 2 lc rgb '#D6604D' # red-orange -set style line 3 lc rgb '#F4A582' # -set style line 4 lc rgb '#FDDBC7' # pale orange -set style line 5 lc rgb '#E0E0E0' # pale grey -set style line 6 lc rgb '#BABABA' # -set style line 7 lc rgb '#878787' # medium grey -set style line 8 lc rgb '#4D4D4D' # dark grey + +set style line 1 lc rgb'#67001F' +set style line 2 lc rgb'#B2182B' +set style line 3 lc rgb'#D6604D' +set style line 4 lc rgb'#F4A582' +set style line 5 lc rgb'#FFFFFF' +set style line 6 lc rgb'#F7F7F7' +set style line 7 lc rgb'#E0E0E0' +set style line 8 lc rgb'#BABABA' +set style line 9 lc rgb'#878787' +set style line 10 lc rgb'#4D4D4D' +set style line 11 lc rgb'#1A1A1A' # palette -set palette defined ( 0 '#B2182B',\ - 1 '#D6604D',\ - 2 '#F4A582',\ - 3 '#FDDBC7',\ - 4 '#E0E0E0',\ - 5 '#BABABA',\ - 6 '#878787',\ - 7 '#4D4D4D' ) \ No newline at end of file + +set palette defined ( 0 '#67001F',\ +1 '#B2182B',\ +2 '#D6604D',\ +3 '#F4A582',\ +4 '#FFFFFF',\ +5 '#F7F7F7',\ +6 '#E0E0E0',\ +7 '#BABABA',\ +8 '#878787',\ +9 '#4D4D4D',\ +10 '#1A1A1A' ) diff --git a/diverging/RdYlBu.plt b/diverging/RdYlBu.plt index ad592ff..3d899fc 100644 --- a/diverging/RdYlBu.plt +++ b/diverging/RdYlBu.plt @@ -1,25 +1,33 @@ # line styles for ColorBrewer RdYlBu # for use with divering data -# provides 8 colors with red low, pale yellow middle, and blue high +# provides 11 colors with red low, pale yellow middle, and blue high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#D73027' # red -set style line 2 lc rgb '#F46D43' # orange -set style line 3 lc rgb '#FDAE61' # -set style line 4 lc rgb '#FEE090' # pale orange -set style line 5 lc rgb '#E0F3F8' # pale blue -set style line 6 lc rgb '#ABD9E9' # -set style line 7 lc rgb '#74ADD1' # medium blue -set style line 8 lc rgb '#4575B4' # blue + +set style line 1 lc rgb'#a50026' +set style line 2 lc rgb'#d73027' +set style line 3 lc rgb'#f46d43' +set style line 4 lc rgb'#fdae61' +set style line 5 lc rgb'#fee090' +set style line 6 lc rgb'#ffffbf' +set style line 7 lc rgb'#e0f3f8' +set style line 8 lc rgb'#abd9e9' +set style line 9 lc rgb'#74add1' +set style line 10 lc rgb'#4575b4' +set style line 11 lc rgb'#313695' # palette -set palette defined ( 0 '#D73027',\ - 1 '#F46D43',\ - 2 '#FDAE61',\ - 3 '#FEE090',\ - 4 '#E0F3F8',\ - 5 '#ABD9E9',\ - 6 '#74ADD1',\ - 7 '#4575B4' ) \ No newline at end of file + +set palette defined ( 0 '#a50026',\ +1 '#d73027',\ +2 '#f46d43',\ +3 '#fdae61',\ +4 '#fee090',\ +5 '#ffffbf',\ +6 '#e0f3f8',\ +7 '#abd9e9',\ +8 '#74add1',\ +9 '#4575b4',\ +10 '#313695' ) diff --git a/diverging/RdYlGn.plt b/diverging/RdYlGn.plt index 923d7c4..f34b780 100644 --- a/diverging/RdYlGn.plt +++ b/diverging/RdYlGn.plt @@ -1,25 +1,33 @@ # line styles for ColorBrewer RdYlGn # for use with divering data -# provides 8 colors with red low, pale yellow middle, and green high +# provides 11 colors with red low, pale yellow middle, and green high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#D73027' # red -set style line 2 lc rgb '#F46D43' # orange -set style line 3 lc rgb '#FDAE61' # pale orange -set style line 4 lc rgb '#FEE08B' # pale yellow-orange -set style line 5 lc rgb '#D9EF8B' # pale yellow-green -set style line 6 lc rgb '#A6D96A' # pale green -set style line 7 lc rgb '#66BD63' # medium green -set style line 8 lc rgb '#1A9850' # green + +set style line 1 lc rgb'#a50026' +set style line 2 lc rgb'#d73027' +set style line 3 lc rgb'#f46d43' +set style line 4 lc rgb'#fdae61' +set style line 5 lc rgb'#fee090' +set style line 6 lc rgb'#ffffbf' +set style line 7 lc rgb'#d9ef8b' +set style line 8 lc rgb'#a6d96a' +set style line 9 lc rgb'#66bd63' +set style line 10 lc rgb'#1a9850' +set style line 11 lc rgb'#006837' # palette -set palette defined ( 0 '#D73027',\ - 1 '#F46D43',\ - 2 '#FDAE61',\ - 3 '#FEE08B',\ - 4 '#D9EF8B',\ - 5 '#A6D96A',\ - 6 '#66BD63',\ - 7 '#1A9850' ) \ No newline at end of file + +set palette defined ( 0 '#a50026',\ +1 '#d73027',\ +2 '#f46d43',\ +3 '#fdae61',\ +4 '#fee090',\ +5 '#ffffbf',\ +6 '#d9ef8b',\ +7 '#a6d96a',\ +8 '#66bd63',\ +9 '#1a9850',\ +10 '#006837' ) diff --git a/diverging/Spectral.plt b/diverging/Spectral.plt index 02f4bf0..01719f9 100644 --- a/diverging/Spectral.plt +++ b/diverging/Spectral.plt @@ -1,25 +1,33 @@ # line styles for ColorBrewer Spectral # for use with divering data -# provides 8 rainbow colors with red low, pale yellow middle, and blue high +# provides 11 rainbow colors with red low, pale yellow middle, and blue high # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#D53E4F' # red -set style line 2 lc rgb '#F46D43' # orange -set style line 3 lc rgb '#FDAE61' # pale orange -set style line 4 lc rgb '#FEE08B' # pale yellow-orange -set style line 5 lc rgb '#E6F598' # pale yellow-green -set style line 6 lc rgb '#ABDDA4' # pale green -set style line 7 lc rgb '#66C2A5' # green -set style line 8 lc rgb '#3288BD' # blue + +set style line 1 lc rgb'#9e0142' +set style line 2 lc rgb'#d53e4f' +set style line 3 lc rgb'#f46d43' +set style line 4 lc rgb'#fdae61' +set style line 5 lc rgb'#fee08b' +set style line 6 lc rgb'#ffffbf' +set style line 7 lc rgb'#e6f598' +set style line 8 lc rgb'#abdda4' +set style line 9 lc rgb'#66c2a5' +set style line 10 lc rgb'#3288bd' +set style line 11 lc rgb'#5e4fa2' # palette -set palette defined ( 0 '#D53E4F',\ - 1 '#F46D43',\ - 2 '#FDAE61',\ - 3 '#FEE08B',\ - 4 '#E6F598',\ - 5 '#ABDDA4',\ - 6 '#66C2A5',\ - 7 '#3288BD' ) \ No newline at end of file + +set palette defined ( 0 '#9e0142',\ +1 '#d53e4f',\ +2 '#f46d43',\ +3 '#fdae61',\ +4 '#fee08b',\ +5 '#ffffbf',\ +6 '#e6f598',\ +7 '#abdda4',\ +8 '#66c2a5',\ +9 '#3288bd',\ +10 '#5e4fa2' ) diff --git a/examples/data_11.txt b/examples/data_11.txt new file mode 100644 index 0000000..8a7a3c1 --- /dev/null +++ b/examples/data_11.txt @@ -0,0 +1,22 @@ +1 1 1 +1 2 2 +1 3 3 +1 4 4 +1 5 5 +1 6 6 +1 7 7 +1 8 8 +1 9 9 +1 10 10 +1 11 11 +2 1 1 +2 2 2 +2 3 3 +2 4 4 +2 5 5 +2 6 6 +2 7 7 +2 8 8 +2 9 9 +2 10 10 +2 11 11 diff --git a/examples/data_12.txt b/examples/data_12.txt new file mode 100644 index 0000000..31485ba --- /dev/null +++ b/examples/data_12.txt @@ -0,0 +1,24 @@ +1 1 1 +1 2 2 +1 3 3 +1 4 4 +1 5 5 +1 6 6 +1 7 7 +1 8 8 +1 9 9 +1 10 10 +1 11 11 +1 12 12 +2 1 1 +2 2 2 +2 3 3 +2 4 4 +2 5 5 +2 6 6 +2 7 7 +2 8 8 +2 9 9 +2 10 10 +2 11 11 +2 12 12 diff --git a/examples/data.txt b/examples/data_8.txt similarity index 100% rename from examples/data.txt rename to examples/data_8.txt diff --git a/examples/data_9.txt b/examples/data_9.txt new file mode 100644 index 0000000..f1e880f --- /dev/null +++ b/examples/data_9.txt @@ -0,0 +1,18 @@ +1 1 1 +1 2 2 +1 3 3 +1 4 4 +1 5 5 +1 6 6 +1 7 7 +1 8 8 +1 9 9 +2 1 1 +2 2 2 +2 3 3 +2 4 4 +2 5 5 +2 6 6 +2 7 7 +2 8 8 +2 9 9 \ No newline at end of file diff --git a/examples/diverging.plt b/examples/diverging.plt index e9c09ea..ae061a1 100755 --- a/examples/diverging.plt +++ b/examples/diverging.plt @@ -31,12 +31,12 @@ do for [pal in "BrBG PiYG PRGn PuOr RdBu RdGy RdYlBu RdYlGn Spectral"] { # plot colorbar set lmargin 4 set rmargin 4 - plot 'data.txt' u 1:2:3 w image + plot 'data_11.txt' u 1:2:3 w image # plot lines set label 1 pal at -1,0 left front set lmargin -6 set rmargin 1 - plot for [ii=1:8] f(x,ii) ls ii lw 2 + plot for [ii=1:11] f(x,ii) ls ii lw 2 unset label } diff --git a/examples/diverging.png b/examples/diverging.png index 6430976..f634f98 100644 Binary files a/examples/diverging.png and b/examples/diverging.png differ diff --git a/examples/diverging_colored_lines.plt b/examples/diverging_colored_lines.plt index 6d6897a..7e52a5b 100644 --- a/examples/diverging_colored_lines.plt +++ b/examples/diverging_colored_lines.plt @@ -21,7 +21,10 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' # plot with PiYG set title 'PiYG' @@ -33,7 +36,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + # plot with PRGn set title 'PRGn' @@ -45,7 +52,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + # plot with PuOr set title 'PuOr' @@ -57,7 +68,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + # plot with RdBu set title 'RdBu' @@ -69,7 +84,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + # plot with RdGy set title 'RdGy' @@ -81,7 +100,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + # plot with RdYlBu set title 'RdYlBu' @@ -93,7 +116,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + # plot with RdYlGn set title 'RdYlGn' @@ -105,7 +132,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + # plot with Spectral set title 'Spectral' @@ -117,4 +148,8 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11' + diff --git a/examples/diverging_colored_lines.ps b/examples/diverging_colored_lines.ps index f149983..fd5caa4 100644 Binary files a/examples/diverging_colored_lines.ps and b/examples/diverging_colored_lines.ps differ diff --git a/examples/diverging_colored_palettes.ps b/examples/diverging_colored_palettes.ps index cc028e8..241c7b2 100644 Binary files a/examples/diverging_colored_palettes.ps and b/examples/diverging_colored_palettes.ps differ diff --git a/examples/qualitative.plt b/examples/qualitative.plt index 0366f3e..6a00c64 100755 --- a/examples/qualitative.plt +++ b/examples/qualitative.plt @@ -25,13 +25,13 @@ f(x,i) = cos(x - 1.0 + i/10.0) set multiplot layout 3,6 -do for [pal in "Accent Dark2 Paired Pastel1 Pastel2 Set1 Set2 Set3"] { +do for [pal in "Accent Dark2 Pastel2 Set2"] { filename = '../qualitative/'.pal.'.plt' load filename # plot colorbar set lmargin 4 set rmargin 4 - plot 'data.txt' u 1:2:3 w image + plot 'data_8.txt' u 1:2:3 w image # plot lines set label 1 pal at -1,0 left front set lmargin -6 @@ -40,4 +40,34 @@ do for [pal in "Accent Dark2 Paired Pastel1 Pastel2 Set1 Set2 Set3"] { unset label } +do for [pal in "Pastel1 Set1"] { + filename = '../qualitative/'.pal.'.plt' + load filename + # plot colorbar + set lmargin 4 + set rmargin 4 + plot 'data_9.txt' u 1:2:3 w image + # plot lines + set label 1 pal at -1,0 left front + set lmargin -6 + set rmargin 1 + plot for [ii=1:9] f(x,ii) ls ii lw 2 + unset label +} + +do for [pal in "Paired Set3"] { + filename = '../qualitative/'.pal.'.plt' + load filename + # plot colorbar + set lmargin 4 + set rmargin 4 + plot 'data_12.txt' u 1:2:3 w image + # plot lines + set label 1 pal at -1,0 left front + set lmargin -6 + set rmargin 1 + plot for [ii=1:12] f(x,ii) ls ii lw 2 + unset label +} + unset multiplot diff --git a/examples/qualitative.png b/examples/qualitative.png index 64347d0..0f207c2 100644 Binary files a/examples/qualitative.png and b/examples/qualitative.png differ diff --git a/examples/qualitative_colored_lines.plt b/examples/qualitative_colored_lines.plt index 9541e92..b0af6ea 100644 --- a/examples/qualitative_colored_lines.plt +++ b/examples/qualitative_colored_lines.plt @@ -21,7 +21,8 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9' # plot with Paired set title 'Paired' @@ -33,7 +34,11 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11',\ +f(x,12) ls 12 title 'line 12' # plot with Accent set title 'Accent' @@ -57,7 +62,8 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9' # plot with Set2 set title 'Set2' @@ -105,4 +111,8 @@ f(x,4) ls 4 title 'line 4',\ f(x,5) ls 5 title 'line 5',\ f(x,6) ls 6 title 'line 6',\ f(x,7) ls 7 title 'line 7',\ -f(x,8) ls 8 title 'line 8' +f(x,8) ls 8 title 'line 8',\ +f(x,9) ls 9 title 'line 9',\ +f(x,10) ls 10 title 'line 10',\ +f(x,11) ls 11 title 'line 11',\ +f(x,12) ls 12 title 'line 12' diff --git a/examples/qualitative_colored_lines.ps b/examples/qualitative_colored_lines.ps index e243da8..6b764e2 100644 Binary files a/examples/qualitative_colored_lines.ps and b/examples/qualitative_colored_lines.ps differ diff --git a/examples/qualitative_colored_palettes.ps b/examples/qualitative_colored_palettes.ps index 1a2b380..15149f7 100644 Binary files a/examples/qualitative_colored_palettes.ps and b/examples/qualitative_colored_palettes.ps differ diff --git a/examples/sequential.plt b/examples/sequential.plt index 4f398a8..7066583 100755 --- a/examples/sequential.plt +++ b/examples/sequential.plt @@ -31,7 +31,7 @@ do for [pal in "Blues BuPu Greens Oranges PuBuGn PuRd RdPu YlGnBu YlOrBr BuGn Gn # plot colorbar set lmargin 4 set rmargin 4 - plot 'data.txt' u 1:2:3 w image + plot 'data_8.txt' u 1:2:3 w image # plot lines set label 1 pal at -1,0 left front set lmargin -6 diff --git a/examples/sequential.png b/examples/sequential.png index 24a8149..5331eed 100644 Binary files a/examples/sequential.png and b/examples/sequential.png differ diff --git a/qualitative/Accent.plt b/qualitative/Accent.plt index 2e8e504..d7774f0 100644 --- a/qualitative/Accent.plt +++ b/qualitative/Accent.plt @@ -17,7 +17,7 @@ set style line 8 lc rgb '#666666' # grey # palette set palette maxcolors 8 set palette defined ( 0 '#7FC97F',\ - 1 '#BEAED4',\ + 1 '#BEAED4',\ 2 '#FDC086',\ 3 '#FFFF99',\ 4 '#386CB0',\ diff --git a/qualitative/Dark2.plt b/qualitative/Dark2.plt index 8563023..fc6e187 100644 --- a/qualitative/Dark2.plt +++ b/qualitative/Dark2.plt @@ -17,7 +17,7 @@ set style line 8 lc rgb '#666666' # dark gray # palette set palette maxcolors 8 set palette defined ( 0 '#1B9E77',\ - 1 '#D95F02',\ + 1 '#D95F02',\ 2 '#7570B3',\ 3 '#E7298A',\ 4 '#66A61E',\ diff --git a/qualitative/Paired.plt b/qualitative/Paired.plt index 3c308e9..34c665f 100644 --- a/qualitative/Paired.plt +++ b/qualitative/Paired.plt @@ -1,26 +1,34 @@ # line styles for ColorBrewer Paired # for use with qualitative/categorical data -# provides 8 colors in 4 pairs +# provides 12 colors in 4 pairs # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#A6CEE3' # light blue -set style line 2 lc rgb '#1F78B4' # dark blue -set style line 3 lc rgb '#B2DF8A' # light green -set style line 4 lc rgb '#33A02C' # dark green -set style line 5 lc rgb '#FB9A99' # light red -set style line 6 lc rgb '#E31A1C' # dark red -set style line 7 lc rgb '#FDBF6F' # light orange -set style line 8 lc rgb '#FF7F00' # dark orange +set style line 1 lc rgb '#a6cee3' +set style line 2 lc rgb '#1f78b4' +set style line 3 lc rgb '#b2df8a' +set style line 4 lc rgb '#33a02c' +set style line 5 lc rgb '#fb9a99' +set style line 6 lc rgb '#e31a1c' +set style line 7 lc rgb '#fdbf6f' +set style line 8 lc rgb '#ff7f00' +set style line 9 lc rgb '#cab2d6' +set style line 10 lc rgb '#6a3d9a' +set style line 11 lc rgb '#ffff99' +set style line 12 lc rgb '#b15928' # palette -set palette maxcolors 8 -set palette defined ( 0 '#A6CEE3',\ - 1 '#1F78B4',\ - 2 '#B2DF8A',\ - 3 '#33A02C',\ - 4 '#FB9A99',\ - 5 '#E31A1C',\ - 6 '#FDBF6F',\ - 7 '#FF7F00' ) +set palette maxcolors 12 +set palette defined ( 0 '#a6cee3',\ + 1 '#1f78b4',\ + 2 '#b2df8a',\ + 3 '#33a02c',\ + 4 '#fb9a99',\ + 5 '#e31a1c',\ + 6 '#fdbf6f',\ + 7 '#ff7f00',\ + 8 '#cab2d6',\ + 9 '#6a3d9a',\ + 10 '#ffff99',\ + 11 '#b15928' ) diff --git a/qualitative/Pastel1.plt b/qualitative/Pastel1.plt index 6edbf42..c979c6c 100644 --- a/qualitative/Pastel1.plt +++ b/qualitative/Pastel1.plt @@ -1,26 +1,28 @@ # line styles for ColorBrewer Pastel1 # for use with qualitative/categorical data -# provides 8 pale colors based on Set1 +# provides 9 pale colors based on Set1 # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#FBB4AE' # pale red -set style line 2 lc rgb '#B3CDE3' # pale blue -set style line 3 lc rgb '#CCEBC5' # pale green -set style line 4 lc rgb '#DECBE4' # pale purple -set style line 5 lc rgb '#FED9A6' # pale orange -set style line 6 lc rgb '#FFFFCC' # pale yellow -set style line 7 lc rgb '#E5D8BD' # pale brown -set style line 8 lc rgb '#FDDAEC' # pale pink +set style line 1 lc rgb '#FBB4AE' # +set style line 2 lc rgb '#B3CDE3' # +set style line 3 lc rgb '#CCEBC5' # +set style line 4 lc rgb '#DECBE4' # +set style line 5 lc rgb '#FED9A6' # +set style line 6 lc rgb '#FFFFCC' # +set style line 7 lc rgb '#E5D8BD' # +set style line 8 lc rgb '#FDDAEC' # +set style line 9 lc rgb '#F2F2F2' # # palette -set palette maxcolors 8 +set palette maxcolors 9 set palette defined ( 0 '#FBB4AE',\ - 1 '#B3CDE3',\ + 1 '#B3CDE3',\ 2 '#CCEBC5',\ 3 '#DECBE4',\ 4 '#FED9A6',\ 5 '#FFFFCC',\ 6 '#E5D8BD',\ - 7 '#FDDAEC' ) + 7 '#FDDAEC',\ + 8 '#F2F2F2' ) diff --git a/qualitative/Pastel2.plt b/qualitative/Pastel2.plt index 18f2b4a..96b98c8 100644 --- a/qualitative/Pastel2.plt +++ b/qualitative/Pastel2.plt @@ -17,7 +17,7 @@ set style line 8 lc rgb '#CCCCCC' # pale grey # palette set palette maxcolors 8 set palette defined ( 0 '#B3E2CD',\ - 1 '#FDCDAC',\ + 1 '#FDCDAC',\ 2 '#CDB5E8',\ 3 '#F4CAE4',\ 4 '#D6F5C9',\ diff --git a/qualitative/Set1.plt b/qualitative/Set1.plt index fd20c4b..be9b6e6 100644 --- a/qualitative/Set1.plt +++ b/qualitative/Set1.plt @@ -1,26 +1,28 @@ # line styles for ColorBrewer Set1 # for use with qualitative/categorical data -# provides 8 easy-to-name colors +# provides 9 easy-to-name colors # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#E41A1C' # red -set style line 2 lc rgb '#377EB8' # blue -set style line 3 lc rgb '#4DAF4A' # green -set style line 4 lc rgb '#984EA3' # purple -set style line 5 lc rgb '#FF7F00' # orange -set style line 6 lc rgb '#FFFF33' # yellow -set style line 7 lc rgb '#A65628' # brown -set style line 8 lc rgb '#F781BF' # pink +set style line 1 lc rgb '#E41A1C' +set style line 2 lc rgb '#377EB8' +set style line 3 lc rgb '#4DAF4A' +set style line 4 lc rgb '#984EA3' +set style line 5 lc rgb '#FF7F00' +set style line 6 lc rgb '#FFFF33' +set style line 7 lc rgb '#A65628' +set style line 8 lc rgb '#F781BF' +set style line 9 lc rgb '#999999' # palette -set palette maxcolors 8 +set palette maxcolors 9 set palette defined ( 0 '#E41A1C',\ - 1 '#377EB8',\ + 1 '#377EB8',\ 2 '#4DAF4A',\ 3 '#984EA3',\ 4 '#FF7F00',\ 5 '#FFFF33',\ 6 '#A65628',\ - 7 '#F781BF' ) + 7 '#F781BF',\ + 8 '#999999' ) diff --git a/qualitative/Set2.plt b/qualitative/Set2.plt index f60bc4c..afd25e7 100644 --- a/qualitative/Set2.plt +++ b/qualitative/Set2.plt @@ -17,7 +17,7 @@ set style line 8 lc rgb '#B3B3B3' # grey # palette set palette maxcolors 8 set palette defined ( 0 '#66C2A5',\ - 1 '#FC8D62',\ + 1 '#FC8D62',\ 2 '#8DA0CB',\ 3 '#E78AC3',\ 4 '#A6D854',\ diff --git a/qualitative/Set3.plt b/qualitative/Set3.plt index 99a55eb..6446996 100644 --- a/qualitative/Set3.plt +++ b/qualitative/Set3.plt @@ -1,26 +1,34 @@ # line styles for ColorBrewer Set3 # for use with qualitative/categorical data -# provides 8 colors that are more saturated than the Pastels but less so than Set2 +# provides 12 colors that are more saturated than the Pastels but less so than Set2 # compatible with gnuplot >=4.2 # author: Anna Schneider # line styles -set style line 1 lc rgb '#8DD3C7' # teal -set style line 2 lc rgb '#FFFFB3' # banana -set style line 3 lc rgb '#BEBADA' # lilac -set style line 4 lc rgb '#FB8072' # red -set style line 5 lc rgb '#80B1D3' # steel blue -set style line 6 lc rgb '#FDB462' # adobe orange -set style line 7 lc rgb '#B3DE69' # lime green -set style line 8 lc rgb '#FCCDE5' # mauve +set style line 1 lc rgb '#8dd3c7' +set style line 2 lc rgb '#ffffb3' +set style line 3 lc rgb '#bebada' +set style line 4 lc rgb '#fb8072' +set style line 5 lc rgb '#80b1d3' +set style line 6 lc rgb '#fdb462' +set style line 7 lc rgb '#b3de69' +set style line 8 lc rgb '#fccde5' +set style line 9 lc rgb '#d9d9d9' +set style line 10 lc rgb '#bc80bd' +set style line 11 lc rgb '#ccebc5' +set style line 12 lc rgb '#ffed6f' # palette -set palette maxcolors 8 -set palette defined ( 0 '#8DD3C7',\ - 1 '#FFFFB3',\ - 2 '#BEBADA',\ - 3 '#FB8072',\ - 4 '#80B1D3',\ - 5 '#FDB462',\ - 6 '#B3DE69',\ - 7 '#FCCDE5' ) +set palette maxcolors 12 +set palette defined ( 0 '#8dd3c7',\ + 1 '#ffffb3',\ + 2 '#bebada',\ + 3 '#fb8072',\ + 4 '#80b1d3',\ + 5 '#fdb462',\ + 6 '#b3de69',\ + 7 '#fccde5',\ + 8 '#d9d9d9',\ + 9 '#bc80bd',\ + 10 '#ccebc5',\ + 11 '#ffed6f' )