Can't delete colorbar label
이전 댓글 표시
I have a plot with a horizontal colorbar. The range of values are all very small, so the default labelling uses expotential numbering, with 'x 10^-3' under the bottom right-hand corner of the axes:
I use get and set to replace the X Tick Labels with regular short numbers, ie, -0.005, 0, 0.005, 0.01, 0.015, 0.02, 0.025. However, the 'x 10^-3' text remains, and I can't delete it.
The text appears to be an Annotation, associated with the an object referred from the colorbar's 'XLabel' parameter (hg.Annotation). Nothing I've found in the help systems will allow me to get rid of this label, and I need to! I've tried deleting it.
Has anyone managed this trick? Any help gratefully received..
댓글 수: 3
Sean de Wolski
2013년 2월 21일
Could you provide us with repro code (And I can't see the image, not a Yahoo-er)?
Also, if you say it's associated with the xlabel:
delete(get(hColorbar,'XLabel'))
Where hColorbar is the handle to your colorbar.
Ian Harris
2013년 2월 21일
편집: Ian Harris
2013년 2월 21일
Ian Harris
2013년 2월 21일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!