[ROOT] Re[2]: time labels

From: Anton Fokin (dr_mamadu@mail.ru)
Date: Thu Jul 20 2000 - 22:45:38 MEST


Hi Damir,

yes of course! A user should define a format of the time string. What I wanted to say is to simply not repeat identical labels on the axis whatever those labels are. In case of simple numbers nobody wants to have


--|---|---|---|---|--->
  10  10  10  10  10 


if X axis data goes from 10.1 to 10.2 ...

Am I right?

Regards,
Anton

-----Original Message-----
From: Damir Buskulic <buskulic@lapp.in2p3.fr>
To: Anton Fokin <dr_mamadu@mail.ru>,ROOT mailing list <roottalk@pcroot.cern.ch>
Date: Thu, 20 Jul 2000 14:29:24 +0200
Subject: Re: time labels

> Hi Anton,
> 
> Anton Fokin wrote:
> > thanks for your input. I agree that it is not obvious
> > how the drawing algorithm should behave in different cases
> > but at least a few suggestions can be made. I think you
> > can check a user time format string and then
> > 
> > Do not repeat the same labels, i.e. avoid
> > 
> > ---|------|-----|-----|---
> >   Oct    Oct   Oct   Nov
> > 
> > case and draw
> > 
> > ---|------|-----|-----|---
> >   Oct                Nov
> > 
> > instead if a user wants to write month labels only.
> 
> I'm not sure I agree on this one. It is the user responsibility to know
> what is the time frame he/she is displaying. It seems to me it could
> bring some undesirable side-effects. The default behaviour should choose
> the best format. Perhaps is it possible to send to the user, via a
> method call, the best format length ("sec" or "months" or whatever)
> depending on the axis limits. Then the user may choose an appropriate
> (and private) format.
> 
> > Then set the first label at a point where month
> > actually starts. The same is true for hours, minutes, etc.
> > Of course some calculations are needed cause a year has
> > 12 months but a hour has 60 minutes :)
> 
> These calculations are already done. Is it interesting to have access to
> their result ?
> 
> Cheers
> 
> Damir
> 
> -- 
> =====================================================================
> | Damir Buskulic                  | Universite de Savoie/LAPP       |
> |                                 | Chemin de Bellevue, B.P. 110    |
> | Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
> | e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
> =====================================================================
> mailto:buskulic@lapp.in2p3.fr
> 
> 



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