Re: [Matplotlib-users] Histogram with multiple data

2009-06-26 Thread Uma S
Hi, I have the same problem. If you found the solution could you please post? Thanks uma Yves-Alexandre wrote: 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],

Re: [Matplotlib-users] Histogram with multiple data

2009-06-26 Thread Jae-Joon Lee
I guess you're providing an input data with a wrong shape. aa = np.transpose([listA, listB, listC]) plt.hist(aa, bins=4, histtype='bar', alpha=0.75,rwidth=0.85,label=['A','B','C']) Regards, -JJ On Thu, Jun 25, 2009 at 1:37 AM, Uma Suma.sunde...@gmail.com wrote: Hi, I have the same

[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