# Issue with TGraphPolar: Unable to change title size or borders

**URL:** <https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121>\
**Category:** Newbie\
**Created:** [March 13, 2025, 2:31am UTC](https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121 "2025-03-13T02:31:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noisyboy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/noisyboy/32/37089_2.png) [@Noisyboy](https://root-forum.cern.ch/u/Noisyboy)\
**Post date:** [March 13, 2025, 2:31am UTC](https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121/1 "2025-03-13T02:31:02Z")

</div>

* * *

Hi everyone,  
I’m creating a polar plot using `TGraphPolar` in ROOT, but I’m having an issue with the title. No matter what I do, the title always appears stuck at π/2 and I can’t move it or change its size.  
I checked several examples online, and it looks like everyone has the same problem. 😅  
Does anyone know if there’s a proper way to modify the position or size of the title in `TGraphPolar`?  
Thanks in advance!

 ![Captura desde 2025-03-12 21-34-54](https://root-forum.cern.ch/uploads/default/original/3X/9/b/9b49d2de21608ab2c8a126bc15c27d43aa7d800a.png)

```auto
 graph2->SetTitle("Graph Angular");
    graph2->SetLineWidth(2); 
    graph2->SetLineColor(kRed); 
    graph2->Draw("AL");
    c2->Draw();
    c2->Update();

```

_ROOT Version:_ 6.28/04  
_Platform:_ Ubuntu  
_Compiler:_ GCC

* * *

---

<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:** [March 13, 2025, 7:49am UTC](https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121/2 "2025-03-13T07:49:33Z")

</div>

You can change all the lines widths with:

```auto
   gre->SetLineWidth(2);

```

if `gre` is a TGraph drawn with POL option.  
Can you provide a small running example showing your point ?

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [March 13, 2025, 9:00am UTC](https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121/3 "2025-03-13T09:00:55Z")

</div>

I didn’t find an obvious way to manipulate the title through the graph itself, but you can access the title box after you draw the graph:

```c++
TGraphPolar gr;
gr.SetPoint(0, 1, 2);
gr.SetTitle("123");
gr.Draw("LP");
auto title = ((TPaveText*)gPad->FindObject("title"));
title->SetX1(0.6);
title->SetX2(0.9);
gPad->Draw();

```

Alternatively, you can draw and drag the title with the mouse.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/7/d/7d3de67279411f85846ece74fb467501eecdfe00.png)

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [March 13, 2025, 9:10am UTC](https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121/4 "2025-03-13T09:10:42Z")

</div>

Try with `gStyle->SetTitleX(0.75);` (test numbers from 0 to 1); similarly for y.

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [March 13, 2025, 9:16am UTC](https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121/5 "2025-03-13T09:16:26Z")

</div>

Good idea, that works, too! Just note that this will move the titles for all plots.

---

<div class="post-metadata">

**Author:** ![Noisyboy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/noisyboy/32/37089_2.png) [@Noisyboy](https://root-forum.cern.ch/u/Noisyboy)\
**Post date:** [March 19, 2025, 10:10pm UTC](https://root-forum.cern.ch/t/issue-with-tgraphpolar-unable-to-change-title-size-or-borders/63121/6 "2025-03-19T22:10:19Z")

</div>

Thank You so much!!
