[Matplotlib-users] Legend colours for multiple histograms

2007-09-22 Thread Ed Schofield
Hi all, I'm superimposing histograms of two data sets on the same axes, using different colours and alpha transparency in the GtkAGG backend to show the overlapping regions. If I plot a legend as below, the colours in both legend entries are the same. Am I doing something wrong? import matplotlib

Re: [Matplotlib-users] Legend colours for multiple histograms

2007-09-22 Thread Jouni K . Seppänen
"Ed Schofield" <[EMAIL PROTECTED]> writes: > If I plot a legend as below, the colours in both legend entries are > the same. Am I doing something wrong? > pylab.hist(data1, normed=True, alpha=0.8) > pylab.hist(data2, normed=True, alpha=0.5, fc='yellow') > pylab.legend(["data 1", "data 2"]) Here'