Borrar filtros
Borrar filtros

Plot Axes From Other GUI

1 visualización (últimos 30 días)
ken kin
ken kin el 17 de Jun. de 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 ?

Respuestas (0)

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by