Hello, I would like to make a clickable image map of a scatter plot in my web2py application. The scatter plot will be dynamically generated. I can use the technique that Massimo has shown many times to generate matplotlib plots in web2py. The trouble is that the technique relies on a controller that returns a cStringIO stream and simply sets the headers for the browser to interpret the stream as a PNG image. This works fine when you just need to generate a plot. But the techniques for generating the corresponding clickable regions for an image map require getting the pixel coordinates of the scatter points from the plot.
Here are some examples of people generating clickable image maps with matplotlib that I am referring to: http://hackmap.blogspot.com/2008/06/pylab-matplotlib-imagemap.html http://www.dalkescientific.com/writings/diary/archive/2005/04/24/interactive_html.html http://www.pageofguh.org/random/668 And here is one of Massimo's examples of using matplotlib with web2py: http://www.web2py.com/appliances/default/show/72 I appreciate any suggestions. Thanks, G