help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plot labels cut-off in AquaTerm


From: G B
Subject: Re: Plot labels cut-off in AquaTerm
Date: Sat, 7 May 2011 00:22:54 -0700 (PDT)

Yeah, I had the same problem.  Octave 3.4 fixes it.  If you want to stay with
an earlier version, this code helps.  Run it after all of your plots are
complete and it iterates through and fixes the formatting.

I wish I could remember who to credit for this script, it's not mine:



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
%---------------------------------------


--
View this message in context: 
http://octave.1599824.n4.nabble.com/Plot-labels-cut-off-in-AquaTerm-tp1637737p3505163.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]