Line break in colour bar title

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!

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

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


1 Like

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

1 Like

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