# Moving (or rotating) variable names in TParallelCoord?

**URL:** <https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113>\
**Category:** Newbie\
**Tags:** tree, root\
**Created:** [August 23, 2023, 11:34am UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113 "2023-08-23T11:34:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salomon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/salomon/32/18000_2.png) [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Post date:** [August 23, 2023, 11:34am UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113/1 "2023-08-23T11:34:45Z")

</div>

* * *

_ROOT Version:_ `6.28/04`  
_Platform:_ `Red Hat 8.4.1-1`  
_Compiler:_ `c++ (GCC) 8.4.1`

* * *

Dear ROOT Team,

Here is a minimal example of [TParallelCoord](https://root.cern/doc/v628/classTParallelCoord.html): [draw\_parallel.C](https://gitlab.com/uranie-cea/root-project/roottest/-/blob/7d6904ca03a29b41df12381d968b91d169ab3f8a/uranie/treeviewer/draw_parallel.C).

I used [data.csv](https://gitlab.com/uranie-cea/root-project/roottest/-/blob/7d6904ca03a29b41df12381d968b91d169ab3f8a/uranie/treeviewer/data.csv) as input. And I got this figure:

 ![parallel](https://root-forum.cern.ch/uploads/default/original/3X/9/3/938c3e5fbdb7901409f856fc7dccf1318e3da67c.png)

How can I move variable names to the left?

---

<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:** [August 23, 2023, 11:55am UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113/2 "2023-08-23T11:55:23Z")

</div>

This setting is not provided.

---

<div class="post-metadata">

**Author:** ![Salomon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/salomon/32/18000_2.png) [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Post date:** [August 23, 2023, 12:30pm UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113/3 "2023-08-23T12:30:41Z")

</div>

Thank you for your answer.

Do you have any workaround?

For instance, here is my [hack](https://gitlab.com/uranie-cea/root-project/roottest/-/commit/3d81ba51f71b70afd8f6199a30d50ac340ed60e1) playing with [TCanvas](https://root.cern/doc/v628/classTCanvas.html). And I got this wide picture:

 ![parallel](https://root-forum.cern.ch/uploads/default/original/3X/4/6/463686dce9d62613835562ff90f0b15e243b639d.png)

---

<div class="post-metadata">

**Author:** ![Salomon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/salomon/32/18000_2.png) [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Post date:** [August 23, 2023, 1:27pm UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113/4 "2023-08-23T13:27:05Z")

</div>

Or using [_vertical display_](https://gitlab.com/uranie-cea/root-project/roottest/-/commit/41a0a24176aee5d59bb35ebcf4194c8f58f68fc9):

 ![parallel](https://root-forum.cern.ch/uploads/default/original/3X/7/e/7e9b24c224341bf53181bd19b410e75ad08b5450.png)

is it possible to rotate variable names?

---

<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:** [August 23, 2023, 2:56pm UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113/5 "2023-08-23T14:56:12Z")

</div>

No it is automatic: [ROOT: tree/treeviewer/src/TParallelCoordVar.cxx Source File](https://root.cern/doc/v628/TParallelCoordVar_8cxx_source.html#l00768)

---

<div class="post-metadata">

**Author:** ![Salomon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/salomon/32/18000_2.png) [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Post date:** [August 24, 2023, 8:20am UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113/6 "2023-08-24T08:20:35Z")

</div>

Thank you for the reference to the source.

Using [`TLatex` Splitting Lines](https://root.cern/doc/v628/classTLatex.html#L3), I wrote another [workaround](https://gitlab.com/uranie-cea/root-project/roottest/-/commit/0bb560cf7a7d383c4ad697997005c1017cfe0462):

 ![parallel](https://root-forum.cern.ch/uploads/default/original/3X/6/5/6533a1a2c9c6c78c5b0ae3ae39c8c1a452a8f9dd.png)

What do you think? Is there a simpler solution?

---

<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:** [August 24, 2023, 8:59am UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113/7 "2023-08-24T08:59:37Z")

</div>

Yes that’s a good option.
