Effacer les filtres
Effacer les filtres

HMS time with ERRORBAR plot

2 vues (au cours des 30 derniers jours)
ZBMedina
ZBMedina le 11 Mai 2017
Commenté : ZBMedina le 21 Mai 2020
Hello,
I can't get any HMS times to work with errorbar, I've spent too much time on this and need help.
The example at:
Does works intermittently and if you zoom then the ticks don't auto adjust. If you click auto so the ticks can readjust then you will lose your HMS time.
Please assist,
Thank you.

Réponses (1)

Walter Roberson
Walter Roberson le 11 Mai 2017
You could use a zoom ActionPostCallback https://www.mathworks.com/help/matlab/ref/zoom.html#brux2aq that did a datetick() call
  7 commentaires
Walter Roberson
Walter Roberson le 21 Mai 2020
invoke a function passing in event that does both items for you.
It could be written without a true function (.m) by adding two helper anonymous functions, but there probably is no point in that.
ZBMedina
ZBMedina le 21 Mai 2020
It worked!!! I wish I would have understood what you mentioned 3 years ago.
I added an additional IF statement for pan aswell, seems to work.
Matlab didn't like ~invalid so i used isvalid instead and that seems to not crash.
Thanks again!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by