Plotting package?

A

Andrew Koenig

This may be a foolish question, but what's the most straightforward way to
plot a bunch of data in Python?

That is, I want to write a program that does some number crunching, and then
I want to change some parameters and watch how the changes affect the
results. I could produce a file to hand to gnuplot, but that's a bit of a
pain; so I'm wondering if there is a widely used package to which I can give
my x-y pairs and have it produce a graph for me with axes, scaling, etc.
 
J

Jorge Godoy

Andrew said:
This may be a foolish question, but what's the most straightforward way to
plot a bunch of data in Python?

That is, I want to write a program that does some number crunching, and
then I want to change some parameters and watch how the changes affect the
results. I could produce a file to hand to gnuplot, but that's a bit of a
pain; so I'm wondering if there is a widely used package to which I can
give my x-y pairs and have it produce a graph for me with axes, scaling,
etc.

I liked the output of PyChart. It is pretty easy to use. Also, I don't
know what you're doing with numbers, but there's rpy to use with R.

--
Jorge Godoy <[email protected]>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.
 
J

John Hunter

L

Lou Pecora

"Andrew Koenig said:
This may be a foolish question, but what's the most straightforward way to
plot a bunch of data in Python?

That is, I want to write a program that does some number crunching, and then
I want to change some parameters and watch how the changes affect the
results. I could produce a file to hand to gnuplot, but that's a bit of a
pain; so I'm wondering if there is a widely used package to which I can give
my x-y pairs and have it produce a graph for me with axes, scaling, etc.

I second all other recommendations on matplotlib.

-- Lou Pecora (my views are my own) REMOVE THIS to email me.
 
J

James Graham

Andrew said:
This may be a foolish question, but what's the most straightforward way to
plot a bunch of data in Python?

That is, I want to write a program that does some number crunching, and then
I want to change some parameters and watch how the changes affect the
results. I could produce a file to hand to gnuplot, but that's a bit of a
pain; so I'm wondering if there is a widely used package to which I can give
my x-y pairs and have it produce a graph for me with axes, scaling, etc.
In addition to the other (excellent) suggestions, you could have a look
at Veusz [1]. It has a GUI which, in your case, you could use to create
all the boilerplate code (axes, labels, etc.) interactively and then use
the scripting interface to feed in different datasets as required. The
major limitation is that it requires Qt/PyQt 3 so I don't know how easy
it is to get working under Windows.

[1] http://home.gna.org/veusz/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,048
Members
48,769
Latest member
Clifft

Latest Threads

Top