Re: How to get a cell content of a scatter plot

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Aug 30 1999 - 08:17:16 MEST


Xie Wei wrote:
> 
> Dear ROOTers,
> 
> It's easy to get the content of each bin in a one dimensional histogram.
> Is it possible to get directly the content of a cell in  2-dimensional
> scatter plot ?
> 

Use TH1::GetCellContent(binx, biny)
or alternatively (this works for all dimensions)
Int_t bin = h.GetBin(binx,biny)
GetBinContent(bin)

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET