LineWidth adding square dimensional.

조회 수: 1 (최근 30일)
Steinar Bråten
Steinar Bråten 2016년 4월 20일
댓글: Steinar Bråten 2016년 5월 2일
MatLab R2015a, OSX
This command:
FL=animatedline('LineWidth',5)
Compare to:
FL=animatedline('LineWidth',25)
Gives FL 25 size both x and y direction.
Meaning it never shows smaller than 25 y direction, and visually never 'goes away'.
Why?

답변 (1개)

Arnab Sen
Arnab Sen 2016년 4월 27일
Hi Steinar ,
I think you are missing the coordinate the point for which you want to join by the line. The commands you have provided gives only the axes and line width of the axes does not change with parameter. For example, you may try the following for illustration:
>> FL=animatedline([1 2],[15 16],'LineWidth',5,'LineStyle','-')
as compared to
>>FL=animatedline([1 2],[15 16],'LineWidth',25,'LineStyle','--')
You may consider contacting MathWorks Technical Support of you region if you have more assistance.
  댓글 수: 1
Steinar Bråten
Steinar Bråten 2016년 5월 2일
Sorry, here are som more info.:
forcevector=animatedline('LineWidth',5,'color','b');
clearpoints(forcevector);
FrontLine=animatedline('LineWidth',25,'color','blue');
clearpoints(FrontLine);
BackLine=animatedline( 'LineWidth',25,'color','red');
clearpoints(BackLine);
for i=1 : 20 : length(Fres) addpoints(forcevector,[ResX Fres(i,1)+ResX],[ResY Fres(i,2)+ResY]) drawnow
addpoints(FrontLine,[FrontX FrontX],[FrontY Front2(i)+FrontY])
drawnow
addpoints(BackLine,[BackX BackX],[BackY Back2(i)+BackY])
drawnow
M = getframe(gca);
writeVideo(mov,M);
clearpoints(forcevector);
clearpoints(FrontLine);
clearpoints(BackLine);
end
But the line's are squared in size, not only width...

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by