User Tools

Site Tools


root:paletteaxis
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


root:paletteaxis [2011/06/23 18:26] (current) – created bursche
Line 1: Line 1:
 +The colour axis is an object of the type [[http://root.cern.ch/root/html526/TPaletteAxis.html|TPaletteAxis]].  
 +Here the code i use to format it nicely: 
 +<code python> 
 +def ScaleZAxis(histname): 
 +  hist = ROOT.gDirectory.Get(histname) 
 +  ROOT.gPad.Update() 
 +  palette = hist.GetListOfFunctions().FindObject("palette"
 +  palette.SetX1NDC(0.90) 
 +  palette.SetX2NDC(0.92) 
 +  palette.Draw() 
 +  ROOT.gPad.Update() </code>
root/paletteaxis.txt · Last modified: 2011/06/23 18:26 by bursche