x = 0をy軸にします。今は動作しません。私は、このコマンドを作ってみましたが、それは私のコードy軸をx = 0にする方法は?
set(gca, "yaxislocation", "zero")
が機能していません。
labels = [0 128 256 512 1024 2048]; % Provide your labels here
ylabels = [0 1 2 4 8 16 32]; % Provide your labels here
hold on;
% system1 durations in seconds
plot (3, 1 ,'o' ,"markersize", 12);
plot (4, 1, 'o' ,"markersize", 12);
plot (5, 30, 'o' ,"markersize", 12);
plot (6, 150, 'o' ,"markersize", 12);
% system2 durations in seconds
plot (3, 2 ,'x' ,"markersize", 12, "markerfacecolor", "auto");
plot (4, 2, 'x' ,"markersize", 12, "markerfacecolor", "auto");
plot (5, 10, 'x' ,"markersize", 12, "markerfacecolor", "auto");
plot (6, 30, 'x' ,"markersize", 12, "markerfacecolor", "auto");
% system3 durations in seconds
plot (3, 2 ,'d' ,"markersize", 12, "markerfacecolor", "auto");
plot (4, 7, 'd' ,"markersize", 12, "markerfacecolor", "auto");
plot (5, 18, 'd' ,"markersize", 12, "markerfacecolor", "auto");
plot (6, 22, 'd' ,"markersize", 12, "markerfacecolor", "auto");
%set(gca, 'xtick', x); % Change the x-axis so only the right amount of ticks remain
%set(gca, 'xticklabel', labels) % Change the labels to the desired ones
%set(gca, 'yticklabel', ylabels) % Change the labels to the desired ones
%set(gca, "xaxislocation", "zero")
set(gca, "yaxislocation", "zero")
%axis([0,1, miny, maxy]); axis "autox";
私は指数スケールをy軸とx軸の両方に表示しようとしていますが、不可能です。私の結論は、オクターブは役に立たず、gnuplotもうまくいかず、手動でグラフを描く方が良いということです。 matlabもオクターブも指数スケールのような単純なものを作ることはできませんし、それが所属する場所にゼロを置くことさえできません。
[このバグレポート](http://savannah.gnu.org/bugs/?47966)によると:「ゼロ」オプションは、gnuplotツールキットでのみ有効です.FLTKやQtなどのOpenGLグラフィックスツールキットそれを実装しないでください。 – TroyHaskin