On Tuesday, November 15, 2011, magurling <magurl...@gmail.com> 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
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users