Re: [Matplotlib-users] plot x y value(x,y)

2006-10-13 Thread Jake Emerson
Hanno, I wrestled with this one for a while. The attached script is the result of my effort. The two keys were to define the colormap, and then make sure that when you call the colormap that the values span the full range. For example, if you want a data point to be "yellow", and that color (RGB: 1

Re: [Matplotlib-users] Simple scatter plot over an image

2007-06-10 Thread Jake Emerson
The python imaging library is pretty good for this kind of thing. http://www.pythonware.com/library/pil/handbook/ Here's an (untested) example. Hope it helps. Jake #!/usr/bin/env python from pylab import scatter, save import Image #get the background image, and find out how big it is