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 Comments

What are the units on x-axis?
Maha
Maha on 14 Feb 2020
Edited: Maha on 14 Feb 2020
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)
Maha - you could always create your own custom data tips in the format that you want.
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)

Sign in to comment.

Answers (0)

Categories

Asked:

on 14 Feb 2020

Commented:

on 17 Feb 2020

Community Treasure Hunt

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

Start Hunting!