필터 지우기
필터 지우기

When the axis equal error comes

조회 수: 5 (최근 30일)
Guanfeng Gao
Guanfeng Gao 2015년 7월 23일
댓글: Walter Roberson 2015년 7월 23일
When I use the 'axis equal', the error comes as follows:
" Error using matlab.graphics.axis.Axes/set While setting the 'PlotBoxAspectRatio' property of Axes: Input values must be positive finite numbers.
Error in axis>LocSetEqual (line 388) set(ax,'PlotBoxAspectRatio', ...
Error in axis (line 131) LocSetEqual(ax(j),pbarlimit);
Error in display_3view_initial (line 21) axis equal;colormap(char(ColorMap)); "
However, when I use the 'axis auto' or 'axis image', there is no errors. Does anyone know what happens here?
  댓글 수: 2
Guanfeng Gao
Guanfeng Gao 2015년 7월 23일
I go to the error line and fine that when execute the line: " set(ax,'Units','Pixels'); a = get(ax,'Position'); " The result is a=[1,1,0,1], here a(3)=0, which induces the error. However, the a value is obviously wrong!!!! And the get function is the matlab build-in function which I could not read the source code!!!!
Walter Roberson
Walter Roberson 2015년 7월 23일
Are you using dual monitors?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by