XTickLabels after the zooming
Mostra commenti meno recenti
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 Commenti
Andrew Newell
il 22 Mar 2011
Are you using the software from the File Exchange (http://www.mathworks.com/matlabcentral/fileexchange/27812-rotate-x-axis-tick-labels)?
Andrew Newell
il 22 Mar 2011
I think you'll need to provide a more explicit example.
Mtlb Usr
il 25 Mar 2011
Mtlb Usr
il 28 Mar 2011
Risposte (1)
Daniel Sternberg
il 13 Apr 2011
1 voto
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
Categorie
Scopri di più su Display Image in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!