473,396 Members | 1,773 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,396 software developers and data experts.

Plotting points to screen

If I'm wanting to plot points to the screen (nothing fancy at all for
the moment), would you recommend PyGame, PyOpenGL or PIL?

Like I said, it's nothing complicated, no flashing wotsits or 3d
quad-linear vertexes with bi-linear real-time shading, just simple
'points' a few lines or circles and nothing more.

Sep 26 '05 #1
3 2337
I've used both pygame and PIL for this in the past. (i'm plotting a
non-standard 3d data format from a in-house app)
Pygame was nice because I put a key handler in to reload the file and
do a little zooming/panning and when I wanted to save a particular plot
I would just use a screen capture program.
Then I upgraded my harddrive and didn't re-install PyGame. The next
time I had to plot some data, I tweaked my script to use PIL. I ended
up liking this solution better. I could easily create large images
(bigger than physical screen which was a limiting factor in PyGame) and
used a regular image viewer to pan and shrink/zoom. I had the drawing
portions of my script well separated from the data parsing and
manipulation so tweaking the script was simple.

YMMV, but PIL was the best way for me.

....
jay graves

Sep 26 '05 #2
jay graves wrote:
I've used both pygame and PIL for this in the past. (i'm plotting a
non-standard 3d data format from a in-house app)
Pygame was nice because I put a key handler in to reload the file and
do a little zooming/panning and when I wanted to save a particular plot
I would just use a screen capture program.
Then I upgraded my harddrive and didn't re-install PyGame. The next
time I had to plot some data, I tweaked my script to use PIL. I ended
up liking this solution better. I could easily create large images
(bigger than physical screen which was a limiting factor in PyGame) and
used a regular image viewer to pan and shrink/zoom. I had the drawing
portions of my script well separated from the data parsing and
manipulation so tweaking the script was simple.

YMMV, but PIL was the best way for me.

...
jay graves

Thanks Jay.

One question, that's twice in as many days that someone has said "YMMV".

What's it mean!?

Sep 26 '05 #3
Jay wrote:
One question, that's twice in as many days that someone has said "YMMV".

What's it mean!?


http://www.google.com/search?q=acronym+ymmv

Sep 26 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob Perlman | last post by:
Hi - I've been getting good results using the DISLIN data plotting package with Python. But I've been unable to plot points instead of curves. Can someone tell me how to turn off the...
6
by: Gerrit Holl | last post by:
Hi, I have a dictionairy containing DateTime objects as keys and integers as values. What would be the easiest way to create a simple plot of these, with a number axis versus a time axis? What...
5
by: Andrew Dalke | last post by:
I've been looking for a decent 3D plotting library with support for user selection that works under OpenGl, preferable with wxPython. For this first project I need to do a 3D scatter plot with...
7
by: Russell E. Owen | last post by:
Can anyone recommend a fast cross-platform plotting package for 2-D plots? Our situation: We are driving an instrument that outputs data at 20Hz. Control is via an existing Tkinter application...
4
by: skorpio11 | last post by:
Hi, I've been having some problems trying some basic plotting commands with gnuplot.py. My setup is the Python 2.3 Enthought edition and my script looks as: from scipy import * from scipy...
1
by: wayne | last post by:
i want to plot a line graph. The values that I obtain are the RGB value of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when generated the RGB values, there will b a column of values...
0
by: Muralish | last post by:
Anyone please suggest a Plotting program for plotting 500 points per second in VC++. please reply me soon.
4
by: Gouri | last post by:
Hi, Got a query regarding plotting a preview / thumbnail for a graph which reads data from a binary file. The preview should should take very less time, look exactly like the original graph i.e....
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.