忍者ブログ
物理学者(ポスドク)による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)
けっこう前にpm3dの使い方をまとめた

デフォルトだと色合いはこんな感じ


これを変えてみたい

まずはgnuplotを起動して

help set palette rgbformulae

と打ってみる。次のような説明が出てくる。

%help set palette rgbformulae
For `rgbformulae` three suitable mapping functions have
to be chosen. This is done via `rgbformulae <r>,<g>,<b>`. The available
mapping functions are listed by `show palette rgbformulae`. Default is
`7,5,15`, some other examples are `3,11,6`, `21,23,3` or `3,23,21`. Negative
numbers, like `3,-11,-6`, mean inverted color (i.e. 1-gray passed into the
formula, see also `positive` and `negative` options below).

Some nice schemes in RGB color space
7,5,15 ... traditional pm3d (black-blue-red-yellow)
3,11,6 ... green-red-violet
23,28,3 ... ocean (green-blue-white); try also all other permutations
21,22,23 ... hot (black-red-yellow-white)
30,31,32 ... color printable on gray (black-blue-violet-yellow-white)
33,13,10 ... rainbow (blue-green-yellow-red)
34,35,36 ... AFM hot (black-red-yellow-white)

A full color palette in HSV color space
3,2,2 ... red-yellow-green-cyan-blue-magenta-red

Please note that even if called `rgbformulae` the formulas might actually
determine the <H>,<S>,<V> or <X>,<Y>,<Z> or ... color components as usual.

Use `positive` and `negative` to invert the figure colors.

Note that it is possible to find a set of the best matching rgbformulae for any
other color scheme by the command
show palette fit2rgbformulae


要するに

set palette rgbformulae <r>,<g>,<b>

括弧の中には数字を入れて、上のように打ったら色合いが変化する


試しに、helpで出てきた組み合わせについてsplotしてみる

7,5,15 ... traditional pm3d (black-blue-red-yellow)


3,11,6 ... green-red-violet


23,28,3 ... ocean (green-blue-white)


21,22,23 ... hot (black-red-yellow-white)


30,31,32 ... color printable on gray (black-blue-violet-yellow-white)


33,13,10 ... rainbow (blue-green-yellow-red)


34,35,36 ... AFM hot (black-red-yellow-white)


3,2,2 ... red-yellow-green-cyan-blue-magenta-red




自分が使うとしたら、AFM hotかなー

もしこの設定を今後のデフォルトにしたいのなら、

set palette rgbformulae 23,24,25

と .gnuplot という設定ファイルに書いておけば大丈夫でしょう
PR
プロフィール
HN:coffee
職業:物理屋(自称)
趣味:映画鑑賞、登山
出身:大阪府の南の田舎
自己紹介:
import MyProfile
import coffee_pote from TWITTER
import amazonのほしい物リスト from WISH_LIST

print "先月子供が産まれました!"

# 最終更新 2022/10/25
カウンター
カウンター カウンター
ブログ内検索
ツイートするボタン
リンク
相互リンク募集中です (Twitterにてお知らせください)

Demo scripts for gnuplot version 5
(gnuplotのさまざまなデモ画像と作り方がまとめられている、眺めているだけでできるようになった気分になれる)

gnuplotスクリプトの解説
(米澤進吾さんの個人ページ、gnuplotと言えばこのかた)

gnuplot のページ
(Takeno Lab、うちのブログがリンクされていたのでリンク返し)

Twitterから映画の評価が分かる & 映画の鑑賞記録が残せる coco
(映画の感想をまとめられるサイト、いつもお世話になっています)

Astronomy Picture of the Day Archive
(天文や宇宙関連の最新の話題について画像とともにNASAが説明しているページ)

今日のほしぞら
(任意の時刻の空で見える星を表示してくれる、国立天文台が管理している)

GNUPLOTとアニメーション
(応用の項目の「見せてあげよう!ラピュタの雷を!!」あたりからすごすぎる)

読書メーター
(読んだ本をリストできる便利なサイト)

flickr難民の写真置き場
(20XX年、flickrは有料化の炎に包まれた。あらゆるflickr無料ユーザーは絶滅したかに見えた。 しかし、tumblr移住民は死に絶えてはいなかった。)

教授でもできるMac OS X へのLaTeX, X11, gccのインストレーションと環境設定
(阪大の山中卓さんのwebページ、タイトルにセンスが溢れている、内容は超充実してる、特にTeX関連、学振DCとかPDの申請書類作成時にはお世話になっております)

英語論文執筆用の例文検索サービス
(とんでもないものを見つけてしまった・・・・ arXivに収録されている 811,761報の 英語論文から,例文を検索するための検索エンジン)


Template "simple02" by Emile*Emilie
忍者ブログ [PR]