Plotting a single pixel (possible newbie question)
Fredrik Lundh
fredrik at pythonware.com
Wed Dec 1 09:00:00 EST 1999
Simon Evans <simon at george.maths.unsw.edu.au> wrote:
> I've installed and used both Tkinter and DISLIN (a
> scientific graphing extension), but what I'm really missing
> is the ability to do the simplest graphics task of all:
> lighting up a single pixel. You'd think it wouldn't
> be too much to ask...
>
> Does anyone know of a graphics extension that offers this
> simple facility, or a method of doing it in the ones I have?
> I'd like to do it by some other method than drawing a line
> with a length of one pixel!
assuming that you're drawing more than one pixel
per update, you can get decent results by com-
bining PIL [1] with Tkinter.
just draw the data into a PIL image memory, and
display it using Tkinter and PIL's ImageTk module.
</F>
1) http://www.pythonware.com/products/pil
More information about the Python-list
mailing list