gnuplot / plotpm3d2
not so FAQ
|
カラーマップを使った3次元表示 (pm3d)3次元カラー表示の色を変えたい.[ver.4] ONLY ! 特に設定しなければ,pm3dは「黒→青→赤→黄」と変化するような配色を用 gnuplot> set ticslevel 0 gnuplot> set pm3d gnuplot> set palette defined (-3 "blue", 0 "white", 1 "red") gnuplot> splot (2*sin(x)-1)*exp(-y) with pm3d ![]() オプション defined に続けて,設定したいZ値の値と,その高さ この例では,Z=0で背景色と同じになるように設定されています.この様な gnuplot> set pm3d map gnuplot> replot ![]() もう一つ別の色変更方法では,オプションとして rgbformulae , 色を変化させる関数は0から36まで,計37個定義されています.上の例だと, palette rgbformulae を使って望みの色を得るのは,結構至難の技 gnuplot> set palette rgbformulae 33,13,10 gnuplot> splot -x*x with pm3d ![]() その他,helpで紹介されている配色は,以下のようになっています. ![]() ![]() ![]() ![]() ![]() もひとつおまけの虹色. gnuplot> set pm3d map gnuplot> set size square gnuplot> set palette rgbformulae 22,13,-31 gnuplot> splot -(x*x+y*y) ![]() from Martin in Czech Republic. Thanks !
|