[ROOT] Time labels and text labels....

From: KOSU_FOKIN@garbo.lucas.lu.se
Date: Thu Jul 20 2000 - 13:33:00 MEST


Hi Rene,

One note about present implementation of time axis labels.
Frankly speaking its drawing algorithm has to be improved and
the most important is to set a right behavior of time label
appearance. For example if now you want to see months on the 
axis, a label for a new month will appear on the axis in a place 
where it fits axis division proportions but not in the beginning 
of the month. The latter is very important if one wants to work 
with real world time series. The same goes for years, hours etc. 
A simple picture illustrates what I am saying:

1) Current time label implementation


    October,     November, 
     10th          12 

-------|------------|------->
      Oct          Nov



2) Required


    October,     November, 
      1st          1st 

-------|------------|------->
       Oct          Nov


I understand that some work around has to be done and I hope this
work can coinside with Rene's work around string labels. But again,
picture 1) is what happens in ROOT now and it is very bad because
it brings a lot of misunderstanding, i.e. if a user sees label
named "Oct 98", the user thinks of course that October 98 data
start at this label but this is not true since it can be any day
in October, perhaps October 31, depending on how current algorithm
divides axis to draw labels.

Damir, can you also comment this since you are the author of the
current implementation?


Regards,
Anton



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:30 MET