Quote Originally Posted by LaminateFloor View Post
The program I'm developing have the option to choose between zero based time where the samples begins at time 00:00 and the clock time where the samples were recorded.
Both types of scales display seconds/minutes/hours, but they also differ substantially. That's why implementing a scale system ( scale engine + scale draw ) for displaying elapsed time is on my TODO list.

The question here is how to best support dual times with both proper text and scale alignment and how to inject the false x-values with the clock time based offset while the plot still believes that it is zero based?.
The proper is to implement a new type of scale engine and scale draw.


  • The scale draw should be pretty easy. it is simply about mapping your value ( guess: ms elapsed since ) into some string of a format "hh:mm:ss:zzz" - or maybe also showing days.
  • The scale engine will be more work - but maybe you don't need to implement all features. F.e. I can imagine, that you don't need autoscaling.



HTH,
Uwe