# Simple date and time plotting on x-axis

**URL:** <https://scilab.discourse.group/t/simple-date-and-time-plotting-on-x-axis/169>\
**Category:** Graphics and plotting\
**Created:** [September 19, 2023, 8:07am UTC](https://scilab.discourse.group/t/simple-date-and-time-plotting-on-x-axis/169 "2023-09-19T08:07:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![davcheze](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@davcheze](https://scilab.discourse.group/u/davcheze)\
**Post date:** [December 22, 2023, 10:01am UTC](https://scilab.discourse.group/t/simple-date-and-time-plotting-on-x-axis/169/3 "2023-12-22T10:01:12Z")

</div>

Hello Stephane, hello [Adeline](https://scilab.discourse.group/u/adeline.carnis)  
From Scilab 3DS team in Scilab 2024.0.0 release, there was unexpected very positive answer, to my lack of responsiveness (sorry) to describe the expected behaviour of such date and time data !  
Indeed the new features around [timeseries](https://scilab.discourse.group/t/timeseries-simple-use-case/253) and underlaying [datetime](https://scilab.discourse.group/t/datetime-and-duration-new-features-to-create-a-time-vector/289) are moving fast in the right direction from my perspective , thank you all ! I didn’t take time yet to implement these new features in replacement of previous workarounds that I was using in my previous works, macros etc… but I evaluate, from help pages of these new features, that most of them are now well covered.

The main limitation i’m noticing is related to plot of datetime objects (underlaying representation is still datenum I guess, as a number of days since 1-Jan-0000 ?) ,topic of this post . It is directly linked with `stackedplot` which is not (yet) providing flexibility in data “investigation” or “first visualization” phase, when digging into data and trying to figure out what is happening in details, you need to zoom frequently, measure some time intervals between singular points,… Then I feel some improvements could be brought specifically to date&time objects visualization, about the following aspects:

- multiple , successive zoom in and out on graphic figure time- x- axis =\> how to have relevant x-axis auto-ticks to suit to the current level of zoom?
- datatips : optional adapted format for `X:` labels to ease readability in case of sate and time objects?

These comments are illustrated on the figure below, obtained from `stackedplot` last example in help page:

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/355007fbf46903fe6516e7f8cae3a75f6c517b72.png)

Thank you for the discussion and the developments already performed

David

---

_[View the full topic](https://scilab.discourse.group/t/simple-date-and-time-plotting-on-x-axis/169)._
