how to use breakaxis for dates ?

8 views (last 30 days)
pruth
pruth on 22 May 2018
Answered: Walter Roberson on 22 May 2018
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?

Accepted Answer

Walter Roberson
Walter Roberson on 22 May 2018
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.

More Answers (0)

Categories

Find more on Dates and Time 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!