[Matplotlib-users] xlabel in two lines and centered

2009-06-05 Thread Yves-Alexandre
Hi, A quick (probably easy) question: how do you do a label in two lines and with both lines centered? xlabel('first line \n second line') don't center both :( best, -Yva. -- OpenSolaris 2009.06 is a cutting edge

[Matplotlib-users] Histogram with multiple data

2009-05-29 Thread Yves-Alexandre
Hi, I'm trying to add label to a histogram with multiple data. The doc says label can also be a sequence of strings but when I try: plt.hist([listA, listB, listC], bins=25, histtype='bar', alpha=0.75,rwidth=0.85,label=['A','B','C']) I got an error: AttributeError: 'tuple' object has no