Plotting in GUI

조회 수: 1 (최근 30일)
Euan
Euan 2011년 11월 26일
I am trying to plot mulitiple graphs in a GUI.
I'm using this code
plot(x, y, 'Parent', handles.Force)
plot(a, b, 'Parent', handles.Angle)
Can anyone tell me how I can name the respective graphs Force and Angle?
Thanks

답변 (2개)

Naz
Naz 2011년 11월 26일
1) Drug two axis objects onto the gui 2) Double click on each and change the tag property name to Force and angle resepctively.
  댓글 수: 3
Naz
Naz 2011년 11월 26일
Can you use 'static text' object for your title? Just place it above the axis.
Naz
Naz 2011년 11월 26일
I don't understand 'Similarly I am unable to change the names of the axis'. After you double click on the axis, property inspector window should pop-up. Change the string 'axis1' to 'Force' in property 'tag'. And don't forget to save changes on the figure.

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


Walter Roberson
Walter Roberson 2011년 11월 26일
title(handles.Force, 'Force')
title(handles.Angle, 'Angle')

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by