Why is the upper limit of the Y-axis in my loglog plot wrong, after I attempt to set it using handle graphics?

조회 수: 1 (최근 30일)
In general, the axis limits shown do not include the last value that I tried to set using handle graphics. In the example given below, the upper limit on the loglog plot is .1 less than it should be. In this case 0.6 should be the maximum Y value, but is not shown.
Example:
t=linspace(.1,.6,65);
loglog(t(2:65)) % loglog(t) % no error
set(gca,'ytick',.1:.1:1)
Using the entire range of 't' does not cause the error, i.e.:
t=linspace(.1,.6,65);
loglog(t)
set(gca,'ytick',.1:.1:1)

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
As a workaround, it is possible to set the axes limits using the property editor in the figure window.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by