473,230 Members | 1,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 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 4227
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: srijit | last post by:
Hi, I am looking for a good plotting package (preferably with 3D plotting capabilities) based on Python 2.3 (Windows 98). Unfortunately Dislin does not exist for Python 2.3. I look forward to...
3
by: Erik Lechak | last post by:
Hello All, I am creating a visual programming environment for python (similar to Matlab's simulink, but for python). For several reasons I have decided not to go with OGL. I am writing a wxOGL...
6
by: DG | last post by:
I'm interesting in finding the ultimate cross-platform python plotting module. So far I've used scipy.gplt and biggles which both have disadvantages. There is no python 2.3 binary package for...
7
by: Rolf Wester | last post by:
Hi, I have a Python console application that is intended to be used interactively and I have to add plotting capabilities (multiple XY plots and if possible 2D-surface plots). I'm loocking for a...
3
by: Jacky Luk | last post by:
Hi, I used to stick with VB6 and now changing to vb.net What about pixel plotting? there is no function like pset. So how to do simple pixels on screen? Thanks a lot Jack
7
by: diffuser78 | last post by:
My python program spits lot of data. I take that data and plot graphs using OfficeOrg spredsheet. I want to automate this task as this takes so much of time. I have some questions. 1. Which is...
10
by: anton | last post by:
Hi, I would like to know if some of you knows a - working - actual - out of the box (for me: binaries available)
2
by: Dr. Colombes | last post by:
Is there an easy scientific graphics (plotting) package for Python 2.5.1 running on Ubuntu Linux 7.1 ("Gutsy Gibbon")? A few years ago I used PyLab (a MatLab-like plotting module for Python) on...
2
archonmagnus
by: archonmagnus | last post by:
Hello all, I've been experimenting with developing an orbital analysis program. Being a visually oriented person, I'd like to translate my (x, y) coordinate pairs to an pixel image array so I can...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.