471,339 Members | 1,158 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

plotting pixels in python

hi to all
I am just a beginner of python. I want to know how pixels are plotted
in python. I am not intending to use PIL because I don't need to
manipulate images. So is there a simple module for 2D graphics and
plot pixels

Sep 13 '07 #1
5 4107
On Sep 13, 1:03 pm, jo5867...@gmail.com wrote:
hi to all
I am just a beginner of python. I want to know how pixels are plotted
in python. I am not intending to use PIL because I don't need to
manipulate images. So is there a simple module for 2D graphics and
plot pixels
Here is a *very* simple-minded module for creating BMP files, that
supports drawing points, lines, and simple shapes.

http://www.geocities.com/ptmcg/python/index.html#bmp

-- Paul

Sep 13 '07 #2
On Sep 13, 11:22 pm, Paul McGuire <pt...@austin.rr.comwrote:
On Sep 13, 1:03 pm, jo5867...@gmail.com wrote:
hi to all
I am just a beginner of python. I want to know how pixels are plotted
in python. I am not intending to use PIL because I don't need to
manipulate images. So is there a simple module for 2D graphics and
plot pixels

Here is a *very* simple-minded module for creating BMP files, that
supports drawing points, lines, and simple shapes.

http://www.geocities.com/ptmcg/python/index.html#bmp

-- Paul
No currently I am using a canvas from the Tkinter module
What I actually want is to show how a line is plotted pixel by pixel
using a delay loop. I want functions something like putpixel not
draw_line

Sep 13 '07 #3
On Thu, Sep 13, 2007 at 06:37:43PM -0000, jo*******@gmail.com wrote regarding Re: plotting pixels in python:
>
On Sep 13, 11:22 pm, Paul McGuire <pt...@austin.rr.comwrote:
On Sep 13, 1:03 pm, jo5867...@gmail.com wrote:
hi to all
I am just a beginner of python. I want to know how pixels are plotted
in python. I am not intending to use PIL because I don't need to
manipulate images. So is there a simple module for 2D graphics and
plot pixels
Here is a *very* simple-minded module for creating BMP files, that
supports drawing points, lines, and simple shapes.

http://www.geocities.com/ptmcg/python/index.html#bmp

-- Paul

No currently I am using a canvas from the Tkinter module
What I actually want is to show how a line is plotted pixel by pixel
using a delay loop. I want functions something like putpixel not
draw_line
The question to your answer can be found here:

http://catb.org/~esr/faqs/smart-questions.html

Cheers,
Cliff
Sep 13 '07 #4
On Sep 13, 1:37 pm, jo5867...@gmail.com wrote:
On Sep 13, 11:22 pm, Paul McGuire <pt...@austin.rr.comwrote:
On Sep 13, 1:03 pm, jo5867...@gmail.com wrote:
hi to all
I am just a beginner of python. I want to know how pixels are plotted
in python. I am not intending to use PIL because I don't need to
manipulate images. So is there a simple module for 2D graphics and
plot pixels
Here is a *very* simple-minded module for creating BMP files, that
supports drawing points, lines, and simple shapes.
http://www.geocities.com/ptmcg/python/index.html#bmp
-- Paul

No currently I am using a canvas from the Tkinter module
What I actually want is to show how a line is plotted pixel by pixel
using a delay loop. I want functions something like putpixel not
draw_line
Oh! Google for "bresenham" and then you can plot pixels on your
canvas using that algorithm.

-- Paul

Sep 13 '07 #5
On Sep 13, 11:37 am, jo5867...@gmail.com wrote:
No currently I am using a canvas from the Tkinter module
What I actually want is to show how a line is plotted pixel by pixel
using a delay loop. I want functions something like putpixel not
draw_line
Try drawing 1px wide rectangles.

Sep 13 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by srijit | last post: by
3 posts views Thread by Erik Lechak | last post: by
6 posts views Thread by DG | last post: by
7 posts views Thread by Rolf Wester | last post: by
3 posts views Thread by Jacky Luk | last post: by
7 posts views Thread by diffuser78 | last post: by
10 posts views Thread by anton | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.