How do I reset axis ticks to normal after I modify them?
显示 更早的评论
Suppose I have turned on datetick for a specific axis. Is there a way to turn off / reset the axis ticks to normal mode with 'set' commands?
采纳的回答
更多回答(2 个)
Ivan van der Kroon
2011-5-31
You can use
set(gca,'XTickLabel',xdate)
where xdate is your x-axis data. With datetick you're just changing the labels, but not the ticks themselves. Hope it helps!
Martijn Steenwijk
2011-5-31
0 个投票
1 个评论
Oleg Komarov
2011-5-31
Solutions don't work says nothing about your problem (since both solutions do work if applied coherently) and it's not clear what's your problem.
To see what's the difference with your problem post the formatted code (editing your answer), otherwise no clue.
类别
在 帮助中心 和 File Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!