我正在尝试在Gnuplot 5.3(开发版本)中以y,z-对数刻度绘制3-D柱状图,以使柱状图在图形上看起来大小一致(即,每个点的变量“ boxdepth”取决于位置)
好像可以为第4列中的每个点设置boxwidth,但不能为boxdepth设置?
set grid nopolar
set grid xtics nomxtics ytics nomytics ztics nomztics nortics nomrtics \
nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid lw 1
set xyplane 0
set xlabel 'Year' offset 12,-3,0 font ",16"
set ylabel 'traj length (ns,{/Symbol m}s,ms)' offset -12,-3,0 font ",16"
set zlabel 'M of atoms' offset -3,0,0 font ",16"
set xtics offset 2,0,-2 font ",16"
set ytics ("1 ns" 1, "10" 10, "100" 100, "1 {/Symbol m}s" 1000, "10" 10000, "100" 100000, "1 ms" 1000000)
set ytics offset -1,-1,0 font ",16" #format "1E{%T}" #format "%.0s*10^{%T}"
set ztics font ",16"
set xrange[1995:2020]
set yrange[0.05:2e6]
set zrange[0.01:1e3]
set logscale yz
set style data lines
set boxwidth 0.3 relative
set boxdepth 0
set grid vertical layerdefault lt 0 linecolor 0 linewidth 1.000, lt 0 linecolor 0 linewidth 1.000
set pm3d depthorder base
set pm3d interpolate 1,1 flush begin noftriangles border lt black linewidth 1.000 dashtype solid corners2color mean
set view 60,300
splot 'nano.dat' u 1:2:3 w boxes,'micro.dat' u 1:2:3 w boxes lc 3,'milli.dat' u 1:2:3 w boxes lc rgb 'red' lw 4
答案 0 :(得分:0)
gnuplot开发版本2019年5月23日
git head 6edcb769
#
# initial setup as in boxes3d.dem
#
set xrange [.5:12]
set yrange [.5:6]
set boxwidth .05
set boxdepth .05
set log xy
set tics nolog
set xtics 1
set ytics 1
set ztics 5
splot for [col=1:5] \
'candlesticks.dat' using 1:(col):(col*column(col)):(rgbfudge($1)) with boxes fc rgb variable