20    const char *states [
nx] = {
    21       "alabama",      
"arizona",        
"arkansas",       
"california",
    22       "colorado",     
"connecticut",    
"delaware",       
"florida",
    23       "georgia",      
"idaho",          
"illinois",       
"indiana",
    24       "iowa",         
"kansas",         
"kentucky",       
"louisiana",
    25       "maine",        
"maryland",       
"massachusetts",  
"michigan",
    26       "minnesota",    
"mississippi",    
"missouri",       
"montana",
    27       "nebraska",     
"nevada",         
"new_hampshire",  
"new_jersey",
    28       "new_mexico",   
"new_york",       
"north_carolina", 
"north_dakota",
    29       "ohio",         
"oklahoma",       
"oregon",         
"pennsylvania",
    30       "rhode_island", 
"south_carolina", 
"south_dakota",   
"tennessee",
    31       "texas",        
"utah",           
"vermont",        
"virginia",
    32       "washington",   
"west_virginia",  
"wisconsin",      
"wyoming"    35     4708708, 6595778,  2889450, 36961664, 5024748,  3518288,  885122, 18537969,
    36     9829211, 1545801, 12910409,  6423113, 3007856,  2818747, 4314113,  4492076,
    37     1318301, 5699478,  6593587,  9969727, 5266214,  2951996, 5987580,   974989,
    38     1796619, 2643085,  1324575,  8707739, 2009671, 19541453, 9380884,   646844,
    39    11542645, 3687050,  3825657, 12604767, 1053209,  4561242,  812383,  6296254,
    40    24782302, 2784572,   621760,  7882590, 6664195,  1819777, 5654774,   544270
    50    TH2Poly *p = 
new TH2Poly(
"USA",
"USA Population",lon1,lon2,lat1,lat2);
    53    f = 
TFile::Open(
"http://root.cern.ch/files/usa.root");
    56       printf(
"Cannot access usa.root. Is internet working ?\n");
    64    while ((key = (
TKey*)nextkey())) {
    73    for (i=0; i<
nx; i++) p->
Fill(states[i], pop[i]);
 
virtual void ToggleEventStatus()
Toggle event statusbar. 
R__EXTERN TStyle * gStyle
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
A TMultiGraph is a collection of TGraph (or derived) objects. 
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file. 
Int_t AddBin(TObject *poly)
Adds a new bin to the histogram. 
Book space in a file, create I/O buffers, to fill them, (un)compress them. 
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options. 
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname". 
Mother of all ROOT objects. 
virtual TObject * ReadObj()
To read a TObject* from the file. 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Int_t Fill(Double_t x, Double_t y)
Increment the bin containing (x,y) by 1. 
2D Histogram with Polygonal Bins