Re: axis unit

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Thu, 8 Jun 2006 14:14:54 +0200 (CEST)

Hi,

 My suggestion would be to create a new TGraph with the transformed data in order to leave the original unchanged.

O.Couet

On Thu, 8 Jun 2006, OKUMURA, Akira wrote:

> Hello ROOTers,
>
> I would like to change unit which is shown on an axis of a TGraph without
> changing unit of input data.
> I created a TGraph with data (wavelength VS QE), for example
> # wavelength[m]QE
> 3.0e-7 0.207
> 3.2e-7 0.220
> 3.4e-7 0.239
> 3.6e-7 0.235
>
> If I draw the graph, X axis range will be [3.0e-7, 3.6e-7].
> But I would like to change the unit from [m] to [nm].
> If possible, new axis range will be [300, 360].
>
> Is there any simple solution ?
> I would like to keep the internal data of TGraph in unit of [m].
>
> Sincerely,
>
> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
> Institute for Cosmic Ray Research, University of Tokyo
> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
> Phone/Fax : +81 4-7136-3153
> Skype : okumura.akira
>
>

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300
Received on Thu Jun 08 2006 - 14:15:00 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET