New Figure Without Using Guide

조회 수: 2 (최근 30일)
koko kinder
koko kinder 2012년 1월 28일
How to create a new figure with axes without using GUIDE? I want to know the command that I should use for this? Could anyone help?

채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 28일
fignum = figure();
axhandle = axes('Parent', fignum);
  댓글 수: 2
koko kinder
koko kinder 2012년 1월 29일
Thanks Walter. I have one more question. I want to draw a line which is available in another function. How do I draw it in the same defined axes. I used the parent property as follows
l3=line([x0 x2],[y0 y2]);
set(l3,'Parent',mainax,'linewidth',l_wid,'color','b');
but it can't identify it because it is in another function. Is there anyway around this?
Walter Roberson
Walter Roberson 2012년 1월 30일
http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by