[ROOT] Re[2]: time labels

From: Anton Fokin (dr_mamadu@mail.ru)
Date: Fri Jul 21 2000 - 10:40:29 MEST


Yes, this is exactly what I meant in the first mail. October label should start at 1st of October as well as 10h should start at 10.00 but there should be only one such label on the axis. Do we understand each other now?:)

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