Clearing data in an axes component

4 visualizaciones (últimos 30 días)
Jason
Jason el 4 de Mayo de 2011
Hi, Im using GUIDE to create graphs. I insert an "axes" component and label this axes2.
I can plot graphs (data = avg5) to this axes OK using
axes(handles.axes2)
h=bar(Avg5);
I want to include a clearall buttom and remove the graph data that I display but keep all of the axes and labels. Can anyone advise. thanks

Respuesta aceptada

Oleg Komarov
Oleg Komarov el 4 de Mayo de 2011
delete(get(handles.axes2,'children'))
  1 comentario
Jason
Jason el 4 de Mayo de 2011
is it possible to keep the labels. They currently dissappear when the data goes: There is always 12 categories on the x-axis
axes(handles.axes2)
h=bar(Avg5);
colormap jet;
label ={'AC', 'AG', 'AT','CA','CG','CT','GA','GC','GT','TA','TC','TG'};

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by