This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| root:setaxisrange [2011/05/11 15:39] – [Y Axis of a normalized Histogram] nchiap | root:setaxisrange [2014/03/11 10:20] (current) – [X Axis of TGraph] add missing call to GetXaxis nchiap | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| hist-> | hist-> | ||
| </ | </ | ||
| + | |||
| + | ===== Y Axis of a THStack ===== | ||
| + | Do not try to '' | ||
| + | Instead use the following code: | ||
| + | <code c++> | ||
| + | THStack *hs = new THStack(" | ||
| + | hs-> | ||
| + | hs-> | ||
| + | </ | ||
| + | |||
| ===== X Axis of TGraph ===== | ===== X Axis of TGraph ===== | ||
| Line 32: | Line 42: | ||
| TGraph* myGraph = new TGraph(); | TGraph* myGraph = new TGraph(); | ||
| ... | ... | ||
| - | myGraph-> | + | myGraph-> |
| </ | </ | ||