【发布时间】:2014-06-25 08:06:14
【问题描述】:
我做了一个情节
h = figure;
x = 1:0.1:13;
plot(x, x, [';straight line;']);
print(h, 'graph.eps', '-color', '-deps', '-F:16');
这给了我
我只想增加绘图窗口的高度。我添加了 pbaspect([1 2]);行:
h = figure;
x = 1:0.1:13;
plot(x, x, [';straight line;']);
pbaspect([1 2]);
print(h, 'graph.eps', '-color', '-deps', '-F:16');
但我得到了一个混乱的情节:
然后我将 F:16 更改为 F:8
h = figure;
x = 1:0.1:13;
plot(x, x, [';straight line;']);
pbaspect([1 2]);
print(h, 'graph.eps', '-color', '-deps', '-F:8');
它可以工作,但生成的文件的两侧仍然有白色边距(如果你单独看下图,你可以看到):
我希望最终的 eps 文件中的绘图没有白边。我怎样才能做到这一点?
使用“convert graph.eps graph.jpg”将图像从 eps 转换为 jpg。但是,它们旨在作为 eps 图像在 LaTeX 文档中使用。
【问题讨论】: