私のMacでは、オクターブとgnuplotを介してaquaterm 1.0.1を使用して、印刷可能なプロットを生成しています。aquaterm が私のプロットを生成するとき、すべてのタイトルと軸ラベルを切り取ったり切り取ったりする習慣があります。
この問題を起こさない、オクターブで動作する別のイメージング プログラムはありますか? または、私が考えていなかった他の修正はありますか?
x11よりもaquatermのプロット結果の方が好きです。この問題を修正して、aquaterm を使用できるようにするために、m-file スクリプトを作成しました。Figure ウィンドウで、title と xlabel のテキスト文字列が 1 行ずつ高すぎて低すぎます。注 - このスクリプトは 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
%---------------------------------------
アクアタームがプロットの一部をカットする理由はわかりませんが、X11 ターミナルを使用してみてください。Octave では、そうするように言うことができますsetenv GNUTERM 'x11'
。