【问题标题】:Octave: Change (only) height of plot window八度:更改(仅)绘图窗口的高度
【发布时间】: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 文档中使用。

【问题讨论】:

    标签: image plot octave eps


    【解决方案1】:

    如果我正确理解了您的问题,请尝试将-tight 选项添加到print

    `-loose'
    `-tight'
          Force a tight or loose bounding box for eps files.  The
          default is loose.
    

    【讨论】:

    • 需要指出,为此需要安装'epstool'。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-22
    • 1970-01-01
    • 1970-01-01
    • 2015-02-10
    • 1970-01-01
    • 2016-07-05
    相关资源
    最近更新 更多