Azzera filtri
Azzera filtri

Plot Axes From Other GUI

1 visualizzazione (ultimi 30 giorni)
ken kin
ken kin il 17 Giu 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 ?

Risposte (0)

Categorie

Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by