On Tuesday, November 15, 2011, magurling <mag...@gm...> wrote:
>
> Can a tick label be on two separate lines? For example:
>
> LabelsList = ['Howard', 'Vince', 'Bob', 'Naboo the Enigma']
>
> xlabels = ax.set_xticklabels( LabelsList, rotation=35,
> horizontalalignment='right', fontstyle='italic', fontsize='10')
>
> How can I put "Naboo the Enigma" on two lines? I've tried to enter
newlines
> and carriage returns in the list element (e.g. 'Naboo\n the Enigma')
without
> any luck.
Actually, that's how I do it, if I remember correctly. What is your
platform and mpl version?
Ben Root
|