【问题标题】:Inkscape crops eps files generated with gnuplotInkscape 裁剪使用 gnuplot 生成的 eps 文件
【发布时间】:2021-02-02 08:32:21
【问题描述】:

我有一个脚本文件可以用 gnuplot 生成一个 eps 文件。该脚本的基础是:

set terminal postcript enhanced color size 30,20 font 'Times-ew-Roman,40'
set xtics -.5,0.125
set ytics 0.1,0.1

set xrange [-0.5,.5]
set yrange [0.,1.6]
set cbrange [-0.5,.5]

set output "file.eps"
plot #whatever i plot

这个脚本会生成一个 eps 文件,我可以在 ubuntu 中打开它,我可以看到它打印得很好。现在,我想将此 eps 导入到 inkscape 中,但是在导入 inkscape 时会导入一个只绘制左上角的大框架。其余为空白。我是否必须更改我的 gnuplot 脚本中的任何值或使用inkscape 做其他事情?我尝试在 inskcape windows 和 ubuntu 版本中打开它,在这两种情况下,同一个文件都会发生同样的情况。

【问题讨论】:

  • 如果我减少 30,20 个 inkscape 导入更多图像。好像和文档的大小有关……

标签: gnuplot inkscape eps


【解决方案1】:

问题可能是您实际上并没有要求 gnuplot 生成 eps 图像。相反,您生成了一个页面大小与默认值不匹配的通用 PostScript 文档。您需要在终端命令中输入关键字"eps"

 set term postscript eps color size 30,20 font "Times-New-Roman,40"

【讨论】:

  • 完美!我只找到了改变页面大小的解决方案,但是没有这个技巧;)
猜你喜欢
  • 2014-01-06
  • 2019-05-18
  • 1970-01-01
  • 2021-05-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-12-24
  • 1970-01-01
相关资源
最近更新 更多