带有cairolatex(或epslatex)的3D框(直方图)Gnuplot
我想在gnuplot中使用直方图(3D框)绘制3D图形。但是,我使用epslatex或cairolatex,我在gnuplot演示站点使用的演示使用以下命令: 设置boxdepth 这个命令总是在我的脚本中给出错误 我要获取的图像与此类似: 图像链接: 我的基本脚本如下:带有cairolatex(或epslatex)的3D框(直方图)Gnuplot,plot,latex,gnuplot,histogram,Plot,Latex,Gnuplot,Histogram,我想在gnuplot中使用直方图(3D框)绘制3D图形。但是,我使用epslatex或cairolatex,我在gnuplot演示站点使用的演示使用以下命令: 设置boxdepth 这个命令总是在我的脚本中给出错误 我要获取的图像与此类似: 图像链接: 我的基本脚本如下: # Change filename to whatever you want. filename = "fig4" # LaTeX amsmath and utf8 input support. set terminal c
# Change filename to whatever you want.
filename = "fig4"
# LaTeX amsmath and utf8 input support.
set terminal cairolatex size 9cm,9cm color colortext standalone lw 4 header \
"\\usepackage{amsmath}\
\\usepackage[utf8]{inputenc}"
# Don't change output name
set output "gptemp.tex"
unset key
splot 'data.dat' with boxes
set out
system sprintf("pdflatex\
-interaction batchmode gptemp.tex &&\
mv gptemp.pdf %s.pdf &&\
rm -f gptemp*", filename)
绘制3D框的功能是新的,仅在gnuplot开发版本(5.3)中出现。这似乎更适合作为注释。文档(tmacchant3.starfree.jp/gnuplot/Eng/cygbin/gnuplot.pdf,第124页)表示该选项有效。但是当我运行在web上找到的绘图脚本时,gnuplot报告了一个错误(“无法识别的选项”),该脚本专门使用boxdepth。