how to use breakaxis for dates ?

4 visualizzazioni (ultimi 30 giorni)
pruth
pruth il 22 Mag 2018
Risposto: Walter Roberson il 22 Mag 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?

Risposta accettata

Walter Roberson
Walter Roberson il 22 Mag 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.

Più risposte (0)

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by