Clearing data in an axes component

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

 채택된 답변

Oleg Komarov
Oleg Komarov 2011년 5월 4일

0 개 추천

delete(get(handles.axes2,'children'))

댓글 수: 1

Jason
Jason 2011년 5월 4일
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'};

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

질문:

2011년 5월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by