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