# Palette on a TProfile2d

**URL:** <https://root-forum.cern.ch/t/palette-on-a-tprofile2d/14704>\
**Category:** ROOT\
**Created:** [August 3, 2012, 9:57pm UTC](https://root-forum.cern.ch/t/palette-on-a-tprofile2d/14704 "2012-08-03T21:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [August 3, 2012, 10:12pm UTC](https://root-forum.cern.ch/t/palette-on-a-tprofile2d/14704/2 "2012-08-03T22:12:04Z")

</div>

Try:  
h4bprof-\>SetAxisRange(8, 20, “Z”);  
and/or:  
h4bprof-\>GetZaxis()-\>SetRangeUser(8, 20);  
Actually, I believe this should work as well:  
h4bprof-\>SetMinimum(8);  
h4bprof-\>SetMaximum(20);  
See also:  
[url][SetAxisRange(0.0,1.0,“Y”); is ineffective](https://root-forum.cern.ch/t/setaxisrange-0-0-1-0-y-is-ineffective/14040/1)  
[url][Drawing a TGraphAsymmErrors](https://root-forum.cern.ch/t/drawing-a-tgraphasymmerrors/14205/1)

BTW. You have a typo in your “tree.c” file in line 356 … “SetMinimun” does NOT exist at all (note that the last character in this name is a “n” instead of a “m”) … I think that’s where your problem originates …

---

_[View the full topic](https://root-forum.cern.ch/t/palette-on-a-tprofile2d/14704)._
