views:

811

answers:

5

As per the title. I am trying to create a simple scater plot, but haven't found any Python 3.0 libraries that can do it. Note, this isn't for a website, so the web ones are a bit useless.

A: 

I'm sure I'll get modded down for this but, why do you need to use python 3 to make a graph?

Scott
Because the program that creates the data is written in Python 3?
TraumaPony
If you can run 2.6 on the same platform, then you can do the graphing in 2.6 from data generated in 3.0.
S.Lott
@S.Lott: Yeah, I'm looking into that too. I think that's what I'm going to have to end up doing.
TraumaPony
A: 

Have you looked at the Google Chart Wrapper?

http://pypi.python.org/pypi/GChartWrapper/0.7

S.Lott
Sorry, should have said that it wasn't for a website. I've still bookmarked it though, it looks quite good.
TraumaPony
But you have the option to download the image. It may not be for a website, but if you have internet access, Google Chart still works.
Alabaster Codify
A: 

I would call Gnuplot from Python. No need to reinvent the wheel in Python, Gnuplot is already there and already has a Python interface.

bortzmeyer
It requires NumPy, which isn't 3.0 compatible.
TraumaPony
you can pipe shell commands to Gnuplot from Python and pass it a data file. So it would be possible without Numpy (though uglier)
Corey Goldberg
+1  A: 

Maybe you can use Python Imaging Library (PIL). Also have a look at PyX, but this library is meant to output to PDF, ...

KornP
+1  A: 

The GChartWrapper (http://pypi.python.org/pypi/GChartWrapper/0.7) does work for py3k