Filter löschen
Filter löschen

Plot Axes From Other GUI

1 Ansicht (letzte 30 Tage)
ken kin
ken kin am 17 Jun. 2011
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 ?

Antworten (0)

Kategorien

Mehr zu Specifying Target for Graphics Output finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by