Y axis value

Hi,

how do I the y axis value when I know the bin number?
Another point: how can I search for a certain x-value, meaing I want to put in the x-axis value and let root take care of findind the correct bin number.

Cheers,
Carsten

If you have a 1-d histogram TH1* h, do
h->GetBinContent(bin);

See class TAxis::FindBin
Int_t bin = h->GetXaxis()->FindBin(x);

Rene