XTickLabels after the zooming

Hi,
I would like to know how I can set the new xticklabels in a 2D graphic after the zooming. But, I want to delete the previous xticklabels too. The xticklabels are rotated.
I think that the issue could be when I use the zoom per default of matlab.
How can I do it?
thanks
regards

댓글 수: 4

Andrew Newell
Andrew Newell 2011년 3월 22일
Are you using the software from the File Exchange (http://www.mathworks.com/matlabcentral/fileexchange/27812-rotate-x-axis-tick-labels)?
Andrew Newell
Andrew Newell 2011년 3월 22일
I think you'll need to provide a more explicit example.
Mtlb Usr
Mtlb Usr 2011년 3월 25일
Yes, I'm using this.
Mtlb Usr
Mtlb Usr 2011년 3월 28일
Hi,
Do you think that there is some solutions? Or If you want better I explain you the issue, by other way.
regards

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

답변 (1개)

Daniel Sternberg
Daniel Sternberg 2011년 4월 13일

1 개 추천

If you are using custom XTickLabels (which it sounds like you are since MATLAB doesn't rotate the labels by default), the best approach is to use the "ActionPostCallback" of the zoom object. Examples of its use are available in the documentation. At the command prompt, type
doc zoom

카테고리

도움말 센터File Exchange에서 Display Image에 대해 자세히 알아보기

제품

질문:

2011년 3월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by