how can set "off" the visibility of axes in gui
Mostrar comentarios más antiguos
I want to set a image as background of my gui and i don't want the axes to appear. I tried with set(axes1,'visible','off') also with set(axes1,'handlevisibility','off','visible','off'),but it does not work.I also try to set it manually in "property inspector",but it does not work. axes1 is the current axes. thanks in advance.
Respuestas (2)
B.k Sumedha
el 19 de Jun. de 2015
Editada: B.k Sumedha
el 19 de Jun. de 2015
set(handles.axes1,'visible', 'off');
This may solve
17 comentarios
B.k Sumedha
el 19 de Jun. de 2015
What did u try?
fefe fefe
el 19 de Jun. de 2015
B.k Sumedha
el 19 de Jun. de 2015
Have u used the correct handles name?
B.k Sumedha
el 19 de Jun. de 2015
In which part have you placed that
set(handles.axes,'visible','off');
Give us some part of the coding.
fefe fefe
el 19 de Jun. de 2015
fefe fefe
el 19 de Jun. de 2015
fefe fefe
el 19 de Jun. de 2015
B.k Sumedha
el 19 de Jun. de 2015
Use that just above the
function axes1_CreateFcn(hObject, eventdata, handles)
fefe fefe
el 19 de Jun. de 2015
fefe fefe
el 19 de Jun. de 2015
fefe fefe
el 19 de Jun. de 2015
B.k Sumedha
el 19 de Jun. de 2015
Its working fine for me.
fefe fefe
el 19 de Jun. de 2015
B.k Sumedha
el 19 de Jun. de 2015
Have a try with this
set(findobj(gcf, 'type','axes1'), 'Visible','off')
Álvaro Pauner Argudo
el 24 de Nov. de 2017
How can I hide the whole figure? Not only the axes
Andres Charris
el 18 de Mzo. de 2019
0 votos
ant= get(hObject,'Value');
minFreq = 1;
maxFreq = 10;
t = 0:0.001:1;
% Get parameters from GUI
fs = get(handles.freqSlider,'Value');
freq = minFreq + fs * (maxFreq - minFreq);
amp = str2double(get(handles.amplEdit,'String'));
% Calculate data
x = amp * sin(2*pi*freq*t);
% Create time plot in proper axes
h=plot(t,x);
if ant==1;
h.Visible='on';
else
h.Visible='off';
set(handles.axes1,'Visible','off');
end
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!