Hi Claire, There is no direct function to do this. Note that this will not be possible in general (rebinning problems). If you have an histogram h, do the following TH1F h2("h2","",100,0.67,1); h2.SetMaximum(1.1*h.GetMaximum()); h2.Draw(); h.Draw("same"); Rene Brun On Fri, 2 Jun 2000, Claire Gwenlan wrote: > > Hello, > > Is it possible to set the range of the x-axis to a value greater than the > value corresponding to the maximum bin or less than that corresponding to > the minimum bin? > > For example, I have a variable which ranges from 0.67 to 0.95 and so > original histogram was created with 7 bins ranging from 0.67 to 0.95. > However, now I am trying to reproduce the look of a plot done in a recent > paper, where, even though the values of the variable range from 0.67 to > 0.95, it was plotted on a graph where the x-axis ranged from 0.65 to 1. > > Is there a way to set the x-axis range in this way, or will I have to make > a new set of axis and overlay the plots onto it? > > Thanks, > > Claire > > __________________________________ > Claire Gwenlan > Department of Physics & Astronomy > University College London > Gower Street > LONDON > WC1E 6BT > > Tel: (0171) 419 3454 > _________________________________ >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET