# Change title and scale of TPaletteAxis from TBrowser

**URL:** <https://root-forum.cern.ch/t/change-title-and-scale-of-tpaletteaxis-from-tbrowser/33923>\
**Category:** Newbie\
**Tags:** graphics\
**Created:** [May 6, 2019, 7:26pm UTC](https://root-forum.cern.ch/t/change-title-and-scale-of-tpaletteaxis-from-tbrowser/33923 "2019-05-06T19:26:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nyx](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Post date:** [May 6, 2019, 7:26pm UTC](https://root-forum.cern.ch/t/change-title-and-scale-of-tpaletteaxis-from-tbrowser/33923/1 "2019-05-06T19:26:18Z")

</div>

I am using the command tree-\>Draw(“e1:e2:e3”, “”, “colz”) to get a 3D plot of my variable “e3”. The color scale looks like this:

 ![root%20forum%20screenshot](https://root-forum.cern.ch/uploads/default/original/3X/1/7/1731e7084c8772732ea4af2d78d5e24b9ed36ff2.png)

First, I would like to remove the “x10^-6” at the top, and if you look carefully, the title appears near the -2 tick. I can make it appear in my canvas if I reduce the width of the color scale. The problem is that I need to change that title, but I can´t find any option in the TBrowser.

Thank you!

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 7, 2019, 7:16am UTC](https://root-forum.cern.ch/t/change-title-and-scale-of-tpaletteaxis-from-tbrowser/33923/2 "2019-05-07T07:16:45Z")

</div>

```auto
gStyle->SetPadRightMargin(0.2);
tree->Draw(“e1:e2:e3”, “”, “colz”)

```

---

<div class="post-metadata">

**Author:** ![Nyx](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Post date:** [May 7, 2019, 1:56pm UTC](https://root-forum.cern.ch/t/change-title-and-scale-of-tpaletteaxis-from-tbrowser/33923/3 "2019-05-07T13:56:19Z")

</div>

That works! Now I can directly see the title of the z axis (color scale). However, I am more interested in changing that title, but I can’t find anything in the options. Also, how can I remove the “x10^-6” at the top?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 7, 2019, 2:39pm UTC](https://root-forum.cern.ch/t/change-title-and-scale-of-tpaletteaxis-from-tbrowser/33923/4 "2019-05-07T14:39:17Z")

</div>

```auto
gStyle->SetPadRightMargin(0.2);
tree->Draw(“e1:e2:e3”, “”, “colz”)
htemp->SetZTitle("hello")
gPad->Update()

```

```auto
TGaxis::SetMaxDigits(3);

```

---

<div class="post-metadata">

**Author:** ![Nyx](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Post date:** [May 7, 2019, 6:20pm UTC](https://root-forum.cern.ch/t/change-title-and-scale-of-tpaletteaxis-from-tbrowser/33923/5 "2019-05-07T18:20:38Z")

</div>

That works! Thank you!
