Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
On Thu, Aug 6, 2009 at 12:02 PM, Jae-Joon Lee wrote: > > I'm not sure what exactly you're trying to do here. > > You mean something like this? > > > http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_collection.html > > The example uses EllipseCollection but scatter basically creat

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Jae-Joon Lee
On Thu, Aug 6, 2009 at 1:13 PM, John Hunter wrote: > On Thu, Aug 6, 2009 at 11:47 AM, Jae-Joon Lee wrote: >> This turned out to be a bug introduced recently, which is now fixed in >> the 0.99 maintenance branch. >> The fix is not merged into the head yet. I tried svnmerge.py but it >> gave some mer

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread John Hunter
On Thu, Aug 6, 2009 at 11:47 AM, Jae-Joon Lee wrote: > This turned out to be a bug introduced recently, which is now fixed in > the 0.99 maintenance branch. > The fix is not merged into the head yet. I tried svnmerge.py but it > gave some merge conflict. While the conflict seems rather trivial, > I

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Jae-Joon Lee
On Thu, Aug 6, 2009 at 12:54 PM, Gökhan Sever wrote: > Thanks JJ, > > I was playing with different ways to create legends, and found myself a way > just like you suggested. > > I guess in legend as long as a sequence is provided it doesn't matter > whether it is a tuple or list. Am I correct? > As

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
Thanks JJ, I was playing with different ways to create legends, and found myself a way just like you suggested. I guess in legend as long as a sequence is provided it doesn't matter whether it is a tuple or list. Am I correct? Additionally, speaking of scatters; is there a way to add a colorbar

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Jae-Joon Lee
This turned out to be a bug introduced recently, which is now fixed in the 0.99 maintenance branch. The fix is not merged into the head yet. I tried svnmerge.py but it gave some merge conflict. While the conflict seems rather trivial, I'll leave it to others. Meanwhile, you can explicitly give art

[Matplotlib-users] No legend using scatter function

2009-08-04 Thread Gökhan Sever
Hello, Could not get a legend shown on scatter function used plot: In [4]: a = rand(100) In [5]: b = rand(100) In [22]: scatter(a,b, c=a, s=b, label="") Out[22]: In [23]: scatter(a,b, c=a*5, s=b*5, label="") Out[23]: In [24]: legend() at rev 7355. with Python 2.6 (r26:66714, Jun