On Mon, 22 Mar 1999, Matthew R. Nelson wrote: > I am looking for a way to customize the axis labels of a TGraph() object. > I want to change them from showing negative values to positive values, e.g. > > -----|-----|-----|-----| -> -----|-----|-----|-----| > -30 -20 -10 0 30 20 10 0 > > I've gone through the options on TAxis, TAttAxis and TGaxis, but can find > no way to gain direct axis to the labels created. Any suggestions? An > alternative solution could include being able to actually reverse the axis > as shown in the above example, which is my ultimate goal. Hi Matt, as far as I understand what you ask for is in Rene's pipeline (see roottalk: RootTalk: Re: Text Axis Labels of 02 Oct, 1998 and also the still empty SetLabel(Text_t* label) etc. in TAxis) Unfortunately you want to change the label to decreasing values, otherwise you could simply use Set(Int_t nbins, Axis_t xmin, Axis_t xmax) but this needs xmin < xmax Cheers, Otto ---------------------------------------------------------------------------- Otto Schaile Sektion Physik der LMU Muenchen Phone: (+49 89)289 14070 Am Coulombwall 1, D-85748 Garching, Germany FAX: (+49 89)289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:30 MET