pdf - Gnuplot:如何通过调整页面大小和其他参数来避免PDF中的白边

标签 pdf gnuplot margin

这是我的代码:

set term pdfcairo enhanced dashed size 5,3;
set output "plot.pdf";
f(x,y)=sin(1.3*x)*cos(.9*y)+cos(.8*x)*sin(1.9*y)+cos(y*.2*x)
set size square
set xrange [-5:5]
set yrange [-5:5]
set contour base
set cntrparam level incremental -3, 0.5, 3
set palette rgbformulae 33,13,10
set pm3d map
set isosample 250, 250
unset key
set lmargin at screen 0.1;
set rmargin at screen 0.95;
set bmargin at screen 0.2;
set tmargin at screen 0.95;
splot f(x,y) with pm3d

这是相应的情节:

enter image description here

绘图周围有白边。如何通过编辑 gnuplot 代码消除这些白边?

最佳答案

谢谢米格尔。

我现在设置页面大小和边距。经过多次测试:

set term pdfcairo enhanced dashed size 3.2,3;
set output "plot.pdf";
f(x,y)=sin(1.3*x)*cos(.9*y)+cos(.8*x)*sin(1.9*y)+cos(y*.2*x)
set size square
set xrange [-5:5]
set yrange [-5:5]
set contour base
set cntrparam level incremental -3, 0.5, 3
set palette rgbformulae 33,13,10
set pm3d map
set isosample 250, 250
unset key
set lmargin at screen 0.05;
set rmargin at screen 0.9;
set bmargin at screen 0.1;
set tmargin at screen 0.95;
splot f(x,y) with pm3d

这是图:

enter image description here

关于pdf - Gnuplot:如何通过调整页面大小和其他参数来避免PDF中的白边,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23505711/

相关文章:

css - 为什么 margin-right 不起作用,而 margin-left、margin-top 和 margin-bottom 却起作用?

java - 使用 PDFBox 从单个 PDF 页面中提取多个嵌入图像

gnuplot - Gnuplot 中 tic 之间的间距

linux - gnuplot 线型不想改变

c++ - gnuplot-iostream 无法编译

css - 这个间距从何而来?

PDF 隐藏对象

java - 从pdf文件中提取所有图像和文本

android - Android 中的 PDF 阅读器

css - Firefox 和 IE 上的负边距问题