タグ

ブックマーク / t16web.lanl.gov (1)

  • gnuplot / plotpm3d2

    3次元カラー表示の色を変えたい. [ver.4] ONLY ! 特に設定しなければ,pm3dは「黒→青→赤→黄」と変化するような配色を用 いて高さを表します.pm3dの配色を変えるには, set paletteコマン ドを用います.それに続くオプションにより,幾つかの色の変え方があります. Z値の最小値が-3,最大値が1となる関数 f(x,y) = (2*sin(x)-1)*exp(-y) を考 え,最小値のときに青,最大値で赤,z=0の高さで白となるように,色を変えて みます. 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 オプション

  • 1