how to use breakaxis for dates ?

4 次查看(过去 30 天)
hi, I found this very useful function breakAxis. In my mat file data is not time series. I have measured data on a date of 5 May 2017 after that directly I have data on 11th of May. when I plot this data against date(x-axis ) it gives me very large empty space in plot between 5th and 11th. here I want to break this x-axis so can have a good visualization of my data. I know breakAxis function should work, but I don't know how to apply it for dates? any idea?

采纳的回答

Walter Roberson
Walter Roberson 2018-5-22
The contribution was designed for hg1.
You will need to switch to serial date numbers for your axis. datetick is probably not compatible so you will probably need to set xticklabels to whatever date string you want.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by