等高线图中的关键颜色
key colors in a contour plot
我正在尝试绘制等高线图。使用当前脚本,我得到了下图:
这是我用来生成图形的脚本:
#!/usr/bin/gnuplot
set term png font ",18" enh size 1000,1000
set view map
unset surface
set contour base
set cntrparam level incremental 0.005, 0.02, 0.5
set key at screen 1, 0.9, 0
set rmargin 0.50
#
a=6.3457
set xra[0.:2.60*a]
set yra[0.:1.73*a]
set xtics out nomirror
set ytics axis in offset -4.0,0 nomirror
set label "r (a.u)" at 3.4,-2.2 center
set label "r (a.u)" at -1.7,2.5 rotate by 90 center
set out 'M.1.-1.112.3.888.png'
splot 'M.1.-1.112.3.888.dat' u 1:2:3 w l lw 2 t ''
我的问题是我不喜欢键中的颜色指示值的方式,它们似乎随机变化。有没有办法(gnuplot 命令)使颜色逐渐变化,如下所示?
您必须手动更改 lintetypes
,例如:
set linetype 1 lc rgb "#B22222"
set linetype 2 lc rgb "#B22233"
set linetype 3 lc rgb "#B22244"
set linetype 4 lc rgb "#B22255"
# ect...
或
set style line 1 lc rgb "#B22222"
set style line 2 lc rgb "#B22233"
set style line 3 lc rgb "#B22244"
set style line 4 lc rgb "#B22255"
# ect...
我正在尝试绘制等高线图。使用当前脚本,我得到了下图:
这是我用来生成图形的脚本:
#!/usr/bin/gnuplot
set term png font ",18" enh size 1000,1000
set view map
unset surface
set contour base
set cntrparam level incremental 0.005, 0.02, 0.5
set key at screen 1, 0.9, 0
set rmargin 0.50
#
a=6.3457
set xra[0.:2.60*a]
set yra[0.:1.73*a]
set xtics out nomirror
set ytics axis in offset -4.0,0 nomirror
set label "r (a.u)" at 3.4,-2.2 center
set label "r (a.u)" at -1.7,2.5 rotate by 90 center
set out 'M.1.-1.112.3.888.png'
splot 'M.1.-1.112.3.888.dat' u 1:2:3 w l lw 2 t ''
我的问题是我不喜欢键中的颜色指示值的方式,它们似乎随机变化。有没有办法(gnuplot 命令)使颜色逐渐变化,如下所示?
您必须手动更改 lintetypes
,例如:
set linetype 1 lc rgb "#B22222"
set linetype 2 lc rgb "#B22233"
set linetype 3 lc rgb "#B22244"
set linetype 4 lc rgb "#B22255"
# ect...
或
set style line 1 lc rgb "#B22222"
set style line 2 lc rgb "#B22233"
set style line 3 lc rgb "#B22244"
set style line 4 lc rgb "#B22255"
# ect...