A simple question

How to change the x max and min of a histogram?
I tried:
TH1F *f = new TH1F(“f”,“f”,200,0,200);

f->GetXaxis()->SetLimits(0,100);

Ony the X axis changed.

Hi,
use TAxis::SetRangeUser(0.,100.).
Axel.