Data displayed while hovering behaviour

Hello, I have a strange behaviour when I hover my mouse over data like shown on my image.
The first data'x value (Sep 2003) is 20030901, I would expect to see the whole information like the second panel, not Sep 2003.
It is the case for ~10% of my data when I hover my mouse over data.
Any idea why ?
Cheers
edit : 20030901 not 20030902

댓글 수: 4

Ajay Kumar
Ajay Kumar 2020년 2월 14일
What are the units on x-axis?
Maha
Maha 2020년 2월 14일
편집: Maha 2020년 2월 14일
A datetime 'yyyymmdd'
In fact I think that I understand what it does, the date is 20030901 not 20030902, it rounds the date to "Sep" because it's the first day of the month.
Same behaviour for the years, on my xaxis, only the years (2003, 2004 etc) are displayed, even if they correspond to 20030101, 20040101 etc)
It's a good thing on my axis (I just want the years), but a bad thing on the hovering (even if now I know that it corresponds to the 1st day of the month)
Geoff Hayes
Geoff Hayes 2020년 2월 14일
Maha - you could always create your own custom data tips in the format that you want.
Maha
Maha 2020년 2월 17일
Sure, I'm doing it since 2019b version (I just asked it two weeks ago), but before that we couldn't if I am right ?
An option would be a good idea on a datetime axis for the hovering, by default it would show the whole information, and with an option it would squeeze it when possible. Actually it's the opposite and we require extra effort (datatip is ok but it still requires 2019b)

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

질문:

2020년 2월 14일

댓글:

2020년 2월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by