【问题标题】:Aquaterm: titles and axis labels getting cut offAquaterm:标题和轴标签被切断
【发布时间】:2011-02-06 20:59:14
【问题描述】:

我在我的 mac 上使用 aquaterm 1.0.1 到 octave 和 gnuplot 来生成可打印的绘图。当 aquaterm 生成我的地块时,它有一个习惯是切断或裁剪所有的标题和轴标签。

是否有其他适用于 octave 且不会出现此问题的成像程序?或者还有其他我没有想到的修复方法?

【问题讨论】:

    标签: image octave gnuplot


    【解决方案1】:

    比起 x11,我更喜欢 aquaterm 的绘图结果。我写了一个 m-file 脚本,它真的是一个 kludge,来解决这个问题,所以 aquaterm 是可用的。似乎标题和 xlabel 文本字符串在图形窗口中写得太高和太低了一行。注意 - 此脚本不会更改 ylabel。如果打印的 y 坐标值的幅度太大,则倾向于将 ylabel 移出页面左侧。不管怎样,这是我的拼凑,在所有数字都完成后运行它。

    function fixAxes
    %---------------------------------------
    %// Kludge to fix scaling of all figures
    %// until GNU or I can find real fix.
    %// Octave3.2.3 computes the scaling wrong
    %// for this mac, such that the title 
    %// and xlabel are not displayed.
    %---------------------------------------
    s = get(0,'showhiddenhandles');
    set(0,'showhiddenhandles','on');
    newpos = [0.13 0.135 0.775 0.75];        %// default is [0.13 0.11 0.775 0.815]
    figs = get(0,'children');
    if (~isempty(figs))
        for k=1:length(figs)
            cax = get(figs(k),'currentaxes');
            pos = get(cax,'position');       
            if ~(pos(1) == newpos(1) && ... 
                 pos(2) == newpos(2) && ...
                 pos(3) == newpos(3) && ...
                 pos(4) == newpos(4))
                set(cax,'position',newpos);    
                set(0,'currentfigure',figs(k));
                drawnow();
            endif
        endfor
    endif
    set(0,'showhiddenhandles',s);
    %---------------------------------------
    endfunction
    %---------------------------------------
    

    【讨论】:

      【解决方案2】:

      虽然我不知道为什么 aquaterm 会削减部分情节,但您可以尝试使用 X11 终端。在 Octave 中,您可以说 setenv GNUTERM 'x11' 这样做。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-12-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-08-06
        • 2014-02-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多