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 S wrote:
>
> Hi,
> I have the same problem. If you found the
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]
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 attr