Re: [Matplotlib-users] newline characters in tick labels

2011-11-16 Thread magurling
Benjamin Root-2 wrote: > > Seems to work fine for me using GTKAgg. > I added these lines: import matplotlib matplotlib.use('GTKAgg') I still get the "\n" printed literally in the label (an actual carriage return shows up as an empty rectangle). -- View this message in context: http://old.na

Re: [Matplotlib-users] newline characters in tick labels

2011-11-16 Thread Benjamin Root
On Tue, Nov 15, 2011 at 11:55 PM, magurling wrote: > > > Benjamin Root-2 wrote: > > > > Actually, that's how I do it, if I remember correctly. What is your > > platform and mpl version? > > > > I have Ubuntu 11.04, Python 2.7.1+, mpl 1.1.0. I've seen examples in the > mpl > gallery of two-liner l

Re: [Matplotlib-users] newline characters in tick labels

2011-11-15 Thread magurling
Benjamin Root-2 wrote: > > Actually, that's how I do it, if I remember correctly. What is your > platform and mpl version? > I have Ubuntu 11.04, Python 2.7.1+, mpl 1.1.0. I've seen examples in the mpl gallery of two-liner labels, but none that are rotated. Perhaps I didn't look closely enough

Re: [Matplotlib-users] newline characters in tick labels

2011-11-15 Thread Benjamin Root
On Tuesday, November 15, 2011, magurling 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') >

[Matplotlib-users] newline characters in tick labels

2011-11-15 Thread magurling
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