how to update custom xticklabel after zooming
3 views (last 30 days)
Show older comments
Hi, I have a figure where I have changed the xticklabels. How can I have matlab honor the custom xticklabels after I manually zoom in and out? For instance,
f = figure,
x = 1:100
y = rand(1,100)
plot(x,y)
set(gca,'xticklabel',get(gca,'xtick')/10)
The x-axis is now labeled from 1:10. If I zoom into 0:5 on the x-axis using the zoom botton, how can I have matlab honor the custom xticklabels and change to 0:5 instead of staying at 0:10?
0 Comments
Answers (1)
See Also
Categories
Find more on Visual Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!