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)에 따르면 : '0'옵션은 gnuplot 툴킷에서만 유용하며, FLTK 및 Qt와 같은 OpenGL 그래픽 툴킷 그것을 구현하지 마십시오. " – TroyHaskin