[Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread hari jayaram
Hi everyone, I have successfully plotted a set of 372 (x,y,z ) scattered values in 7 series. Each point is a circle colored according to a color based on a simple lookup table. # Lookup table for color col_lut = dict(Bistris7p2 = burlywood, Cit7p2 = c,APhosph8p0 = m, Acetate5p5 = k,Borate8p5 =

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread Benjamin Root
On Wed, Aug 17, 2011 at 3:29 PM, hari jayaram hari...@gmail.com wrote: Hi everyone, I have successfully plotted a set of 372 (x,y,z ) scattered values in 7 series. Each point is a circle colored according to a color based on a simple lookup table. # Lookup table for color col_lut =

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread hari jayaram
Thanks for your email Ben. Sorry I am still lost. I dont understand what the handles type is . In my example I guess the handles are an array of circles representing each x,y,z point.I am still a little lost since the plot autmatically plots my 3 arrays The color of each circle is arbitrary and

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread John Hunter
On Wed, Aug 17, 2011 at 5:30 PM, hari jayaram hari...@gmail.com wrote: Thanks for your email Ben. Sorry I am still lost. I dont understand what the handles type is . In my example I guess the handles are an array of circles representing each x,y,z point.I am still a little lost since the plot

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread hari jayaram
Thanks a lot John and Benjamin for your help. The Proxy Artist approach fits the bill perfectly. I used the following code to make a legend from my color_lut lookup table. # Lookup table for color col_lut = dict(Bistris7p2 = burlywood, Cit7p2 = c,APhosph8p0 = m, Acetate5p5 = k,Borate8p5 =