two plots in same GUI

8 次查看(过去 30 天)
Lalit Patil
Lalit Patil 2012-12-25
a = [2 3 7];
plot3(a(1),a(2),a(3),'r.')
a = [6 3 4];
plot3(a(1),a(2),a(3),'r.')
I have to plot this both 3D plots in different figures in same GUI.
so, below each plot3 commant what line i have to write to do this..
I understand that something like
set(handles.axes1)
and
set(handles.axes2)
may be, but give me an exact command.

采纳的回答

Walter Roberson
Walter Roberson 2012-12-25
  4 个评论
Lalit Patil
Lalit Patil 2012-12-25
Yes, what you given works correctly for two plots on same axes.. But, i mean to ask is on same GUI means on two different axes.. Which i think requires use of handle..
Walter Roberson
Walter Roberson 2012-12-25
Then just follow the instructions from the link I gave, to parent the plot3() against the appropriate axes.
a = [2 3 7];
plot3(FirstAxesHandle, a(1), a(2), a(3), 'r.')
or
plot3(a(1), a(2), a(3), 'r.', 'Parent', FirstAxesHandle)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by