# 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:** 1

<div class="post-metadata">

**Author:** ![McCuack](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/7bcc69/32.png) [@McCuack](https://root-forum.cern.ch/u/McCuack)\
**Post date:** [August 3, 2012, 9:57pm UTC](https://root-forum.cern.ch/t/palette-on-a-tprofile2d/14704/1 "2012-08-03T21:57:20Z")

</div>

Dear rooters

before I had posted this, I expend a lot of time on the web and forums an practically nothing (perhaps not correct words, but I tried hard). Here is my question…

I have a set of variables (xbc,ybc,q2) read them from a root file without any problem. I produce a TProfile2D as

```auto

```

as you can see, the range of my Z axis (q2 as variable) is between 8 and 20 since the data from q2 do not go out of this range, in fact could a smaller range but it is just a temptative to start. I fill the TProfile2D (of course in the appropiate for loop reading the events of the root file)

```auto

```

and draw as normal

```auto

```

Now, the color palette marks the range from 0 to 14. Upper limit is ok for me, but lower limit is too low, and restricts my plot to very small gradient around one color. I understand that it is because the palette takes the empty bins as 0 and it marks the lower limit.

I would like to know if it is possible to change the range of the palette to a scale more adjusted to my data. Somewhere I read, the idea is with TH2D::SetMinimum( ) ; so I tried but doesn’t work:

`
h4bprof->SetMinimum(6);`

(console output)

* * *

Error: Can’t call TProfile2D::SetMinimun(6) in current scope tree.c:356:  
Possible candidates are…  
(in TProfile2D)  
(in TH2D)  
(in TH2)  
(in TH1)  
\*\*\* Interpreter error recovered \*\*\*

Can I get some hint from experts? Thank you

---

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