Plot Axes From Other GUI

1 次查看(过去 30 天)
ken kin
ken kin 2011-6-17
I have a button in GUI (Figure 1) that call other GUI (Figure 2). Figure 2 have a button to show the graph in Figure 1's axes. So, What syntax that can I use?
Before, I use the syntax below to show graphic1 in Figure 1 by the button in its own figure.
aa = figure(...
'units','points',...
'position',[125 67 760 485],...
'color',[234/255 234/255 234/255],...
'menubar','none',...
'resize','off',...
'numbertitle','on',...
'name','graphic all');
% button to call graph
graphic1 = uicontrol('parent',aa,...
'units','points',...
'position',[130 5 70 16],...
'style','pushbutton',...
'string','Graph 1',...
'fontname','Arial',...
'fontweight','bold',...
'fontsize',10,...
'callback','plot(x,y)');
% and this syntax to plot in the same graph again set(aa,'currentaxes',graphic1); plot(x,y);
% may I change the 'currentaxes' so I can set the graphic1 from the syntax in other Figure ?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by