|
From: John P. <joh...@st...> - 2006-04-13 03:43:31
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hi all,<br> <br> I have a simple 'region map' like the that shown below (currently generated as a gtk.gdk.Pixbuf) that I would like to plot on matplotlib axes, and then draw some points and lines on top of. I would also like to add to my graph a legend that shows what the various colours mean.<br> <br> Is there any way I can do this with matplot lib? The closest I found was the following, but there's no mention of the issue of creating a legend.<br> <a class="moz-txt-link-freetext" href="http://www.scipy.org/Cookbook/Matplotlib/Plotting_Images_with_Special_Values">http://www.scipy.org/Cookbook/Matplotlib/Plotting_Images_with_Special_Values</a><br> <br> <img src="cid:par...@st..." alt=""><br> <br> Cheers<br> JP<br> <pre class="moz-signature" cols="72">-- John Pye School of Mechanical and Manufacturing Engineering The University of New South Wales Sydney NSW 2052 Australia t +61 2 9385 5127 f +61 2 9663 1222 <a class="moz-txt-link-freetext" href="mailto:john.pye_AT_student_DOT_unsw.edu.au">mailto:john.pye_AT_student_DOT_unsw.edu.au</a> <a class="moz-txt-link-freetext" href="http://pye.dyndns.org/">http://pye.dyndns.org/</a></pre> </body> </html> |