필터 지우기
필터 지우기

HMS time with ERRORBAR plot

조회 수: 2 (최근 30일)
ZBMedina
ZBMedina 2017년 5월 11일
댓글: ZBMedina 2020년 5월 21일
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.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 5월 11일
You could use a zoom ActionPostCallback https://www.mathworks.com/help/matlab/ref/zoom.html#brux2aq that did a datetick() call
  댓글 수: 7
Walter Roberson
Walter Roberson 2020년 5월 21일
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 2020년 5월 21일
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!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by