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
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
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
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')
>
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