22 const char *states [nx] = {
23 "alabama",
"arizona",
"arkansas",
"california",
24 "colorado",
"connecticut",
"delaware",
"florida",
25 "georgia",
"idaho",
"illinois",
"indiana",
26 "iowa",
"kansas",
"kentucky",
"louisiana",
27 "maine",
"maryland",
"massachusetts",
"michigan",
28 "minnesota",
"mississippi",
"missouri",
"montana",
29 "nebraska",
"nevada",
"new_hampshire",
"new_jersey",
30 "new_mexico",
"new_york",
"north_carolina",
"north_dakota",
31 "ohio",
"oklahoma",
"oregon",
"pennsylvania",
32 "rhode_island",
"south_carolina",
"south_dakota",
"tennessee",
33 "texas",
"utah",
"vermont",
"virginia",
34 "washington",
"west_virginia",
"wisconsin",
"wyoming"
37 4708708, 6595778, 2889450, 36961664, 5024748, 3518288, 885122, 18537969,
38 9829211, 1545801, 12910409, 6423113, 3007856, 2818747, 4314113, 4492076,
39 1318301, 5699478, 6593587, 9969727, 5266214, 2951996, 5987580, 974989,
40 1796619, 2643085, 1324575, 8707739, 2009671, 19541453, 9380884, 646844,
41 11542645, 3687050, 3825657, 12604767, 1053209, 4561242, 812383, 6296254,
42 24782302, 2784572, 621760, 7882590, 6664195, 1819777, 5654774, 544270
46 usa->ToggleEventStatus();
51 TH2Poly *
p =
new TH2Poly(
"Lower48",
"Lower 48 Population (2009);Latitude;Longitude",lon1,lon2,lat1,lat2);
57 printf(
"Cannot access usa.root. Is internet working ?\n");
65 while ((key = (
TKey*)nextkey())) {
74 for (i=0; i<nx; i++)
p->Fill(states[i], pop[i]);
77 p->
Draw(
"colz textn");
80 TLatex pupulationRef(-128, 27,
"#scale[.55]{#splitline{Source:}{http://eadiv.state.wy.us/pop/st-09est.htm}}");
81 pupulationRef.DrawClone();
winID h TVirtualViewer3D TVirtualGLPainter p
R__EXTERN TStyle * gStyle
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
2D Histogram with Polygonal Bins
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual TObject * ReadObj()
To read a TObject* from the file.
To draw Mathematical Formula.
A TMultiGraph is a collection of TGraph (or derived) objects.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...