Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【gnuplot5】paletteを使ってデフォルト色を変更するサンプル群

これ↓
■ 参考 : Gnuplotting/gnuplot-palettes

ここに乗ってるサンプルの配色例↓
overview


使い方は

load 'hoge.pal'
hoge.palを自分が使いたいものに置き換えればOK


例えばbrbg.palの中身はこんな感じ
これを直接 ~/.gnuplot に書き込んでおいてもOK

# line styles for ColorBrewer BrBG
# for use with divering data
# provides 8 colors with brown low, white middle, and blue-green high
# compatible with gnuplot >=4.2
# author: Anna Schneider

# line styles
set style line 1 lt 1 lc rgb '#8C510A' # dark brown
set style line 2 lt 1 lc rgb '#BF812D' # medium brown
set style line 3 lt 1 lc rgb '#DFC27D' #
set style line 4 lt 1 lc rgb '#F6E8C3' # pale brown
set style line 5 lt 1 lc rgb '#C7EAE5' # pale blue-green
set style line 6 lt 1 lc rgb '#80CDC1' #
set style line 7 lt 1 lc rgb '#35978F' # medium blue-green
set style line 8 lt 1 lc rgb '#01665E' # dark blue-green

# palette
set palette defined ( 0 '#8C510A',\
1 '#BF812D',\
2 '#DFC27D',\
3 '#F6E8C3',\
4 '#C7EAE5',\
5 '#80CDC1',\
6 '#35978F',\
7 '#01665E' )

ランキング参加中です

↓クリックしていただけると嬉しいです〜