# Line break in colour bar title

**URL:** https://discourse.paraview.org/t/line-break-in-colour-bar-title/13071
**Category:** ParaView Support
**Created:** [October 20, 2023, 1:28pm UTC](https://discourse.paraview.org/t/line-break-in-colour-bar-title/13071 "2023-10-20T13:28:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RemDelaporteMathurin](https://discourse.paraview.org/user_avatar/discourse.paraview.org/remdelaportemathurin/32/12581_2.png) [@RemDelaporteMathurin](https://discourse.paraview.org/u/RemDelaporteMathurin)
#### Post date: [October 20, 2023, 1:28pm UTC](https://discourse.paraview.org/t/line-break-in-colour-bar-title/13071/1 "2023-10-20T13:28:47Z")

</div>

Hi all,

I was wondering if there was a way to have the title of a colour bar on several lines?  
I tried adding \, , \n to the title but it doesn’t seem to work.

Thanks in advance!

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/7ae625966e90ca731be1226942f3c0b6fbb95960.png)

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [October 23, 2023, 8:17am UTC](https://discourse.paraview.org/t/line-break-in-colour-bar-title/13071/2 "2023-10-23T08:17:56Z")

</div>

I didn’t manage to get it from the interface but I have this in the python shell:

```auto
# let's say we have an array named Swirl
swirlLUT = GetColorTransferFunction('Swirl')
swirlLUTColorBar = GetScalarBar(swirlLUT, GetActiveView())
swirlLUTColorBar.Title = 'Swirl \n test \n'

```

![image](https://discourse.paraview.org/uploads/default/original/2X/5/5e10fa78c1edf45cf60416824a39ec1c51b51921.png)

---

<div class="post-metadata">

### Author: ![RemDelaporteMathurin](https://discourse.paraview.org/user_avatar/discourse.paraview.org/remdelaportemathurin/32/12581_2.png) [@RemDelaporteMathurin](https://discourse.paraview.org/u/RemDelaporteMathurin)
#### Post date: [October 23, 2023, 8:47pm UTC](https://discourse.paraview.org/t/line-break-in-colour-bar-title/13071/3 "2023-10-23T20:47:42Z")

</div>

Thanks! Would be nice to be able to parse \n from the GUI

---

<div class="post-metadata">

### Author: ![RemDelaporteMathurin](https://discourse.paraview.org/user_avatar/discourse.paraview.org/remdelaportemathurin/32/12581_2.png) [@RemDelaporteMathurin](https://discourse.paraview.org/u/RemDelaporteMathurin)
#### Post date: [October 25, 2023, 5:44pm UTC](https://discourse.paraview.org/t/line-break-in-colour-bar-title/13071/4 "2023-10-25T17:44:59Z")

</div>

Interestingly enough, it works when exporting a screenshot as png but not as a pdf:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/ed34b84cbe4ac576c6575daab906f74d01acddf5.png)
