# Changing fonts of TParalledCoord

**URL:** <https://root-forum.cern.ch/t/changing-fonts-of-tparalledcoord/33974>\
**Category:** Newbie\
**Created:** [May 9, 2019, 10:33am UTC](https://root-forum.cern.ch/t/changing-fonts-of-tparalledcoord/33974 "2019-05-09T10:33:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hohshita](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Post date:** [May 9, 2019, 10:33am UTC](https://root-forum.cern.ch/t/changing-fonts-of-tparalledcoord/33974/1 "2019-05-09T10:33:00Z")

</div>

Dear all,

I executed $ROOTSYS/tutorials/tree/parallelcoord.C. Now, I’d like to change the title and label fonts of parallel coordinates.  
Would you tell me how to do it?

Best Regards,

Hide

---

<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 9, 2019, 11:46am UTC](https://root-forum.cern.ch/t/changing-fonts-of-tparalledcoord/33974/2 "2019-05-09T11:46:20Z")

</div>

At the end of the macro add:

```auto
gPad->Update();
auto p = (TPaveText*)gPad->GetListOfPrimitives()->FindObject("TPave");
p->SetTextFont(42);

```

---

<div class="post-metadata">

**Author:** ![hohshita](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Post date:** [May 9, 2019, 12:58pm UTC](https://root-forum.cern.ch/t/changing-fonts-of-tparalledcoord/33974/3 "2019-05-09T12:58:42Z")

</div>

Thanks for your quick reply!

Your suggestion is effective for TPaveText Class.  
Because it is one of some ROOT Classes inherited from TAttText Class.

But, TParallelCoord and TParallelCoordVar Classes are not inherited from TAttText Class. I’d like to change each axis title font such as “x”, “y” and so on.  
Is there any other way?

Best Regards,

Hide

---

<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 9, 2019, 1:12pm UTC](https://root-forum.cern.ch/t/changing-fonts-of-tparalledcoord/33974/4 "2019-05-09T13:12:27Z")

</div>

Actually the texts drawn in the context of parallel coordinates use the default text attributes.  
So you can do:

```auto
root [0] gStyle->SetTextFont(41);
root [1] .x parallelcoord.C 

```
