Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Graphs from python

42 views
Skip to first unread message

Larry Whitley

unread,
Dec 4, 2000, 3:00:00 AM12/4/00
to
The simulation models I write and run generate a lot of data and to make
sense of it all I put the data into a set of graphs. The graphs are the
typical spread sheet fare, bar graphs, X/Y graphs, scatter plots, etc.
Today, I read the data into spreadsheets from the spreadsheet and create my
graphs by hand and I'd like to automate the process.

I'm looking at using win32com (by Mark Hammond) to drive excel or
piddle+graphite to generage graphs directly from python. While I'm sure it
will get the job done, the excel object model is a bit overwhelming. Piddle
by itself isn't at the right level. Graphite appears get to the right level
but the pre-alpha rating makes me think that it's a bit early to jump in.

Are there other approachs I should consider? Whatever I end up with, I'd
like it to work from either Unix or Windows. If I can't have both, I can
make do with just windows. Of the two approaches above, is one
significantly better than the other (by whatever measure you want to
choose)?

Thanks,
Larry

Neil Hodgson

unread,
Dec 4, 2000, 3:00:00 AM12/4/00
to
Larry Whitley:

> I'm looking at using win32com (by Mark Hammond) to drive excel or
> piddle+graphite to generage graphs directly from python. While I'm sure
it
> will get the job done, the excel object model is a bit overwhelming.

The easy way to create Excel code and learn the object model is to turn
on the macro recorder and perform by hand the steps you need to create the
graphs. Then look at the generated code and generalise it to suite your
needs.

Neil


Gilles Lenfant

unread,
Dec 5, 2000, 3:00:00 AM12/5/00
to
Hi,

You can use reportlab package to draw your graphs in a PDF file. It's use is
identical whatever OS you use (I did not test BeOS or Macintosh but it's
supposed to work too).
reportlab provides a low level API to the PDF document but making classes
for various charts should not be that difficult.
Get reportlab (free) from http://reportlab.com

"Larry Whitley" <l...@us.ibm.com> a écrit dans le message news:
90gse2$14uo$1...@news.rchland.ibm.com...


> The simulation models I write and run generate a lot of data and to make
> sense of it all I put the data into a set of graphs. The graphs are the
> typical spread sheet fare, bar graphs, X/Y graphs, scatter plots, etc.
> Today, I read the data into spreadsheets from the spreadsheet and create
my
> graphs by hand and I'd like to automate the process.
>

> I'm looking at using win32com (by Mark Hammond) to drive excel or
> piddle+graphite to generage graphs directly from python. While I'm sure
it
> will get the job done, the excel object model is a bit overwhelming.

Larry Whitley

unread,
Dec 5, 2000, 3:00:00 AM12/5/00
to
I hadn't thought of that. I'll give it a shot.

Thanks,
Larry

"Neil Hodgson" <ne...@scintilla.org> wrote in message
news:HOTW5.4117$xW4....@news-server.bigpond.net.au...
> Larry Whitley:


>
> > I'm looking at using win32com (by Mark Hammond) to drive excel or
> > piddle+graphite to generage graphs directly from python. While I'm sure
> it
> > will get the job done, the excel object model is a bit overwhelming.
>

Larry Whitley

unread,
Dec 5, 2000, 3:00:00 AM12/5/00
to
Thanks for the pointer. I'll check it out.

Larry

"Gilles Lenfant" <glen...@equod.com.nospam> wrote in message
news:90ihje$hmb$1...@reader1.imaginet.fr...


> Hi,
>
> You can use reportlab package to draw your graphs in a PDF file. It's use
is
> identical whatever OS you use (I did not test BeOS or Macintosh but it's
> supposed to work too).
> reportlab provides a low level API to the PDF document but making classes
> for various charts should not be that difficult.
> Get reportlab (free) from http://reportlab.com
>
> "Larry Whitley" <l...@us.ibm.com> a écrit dans le message news:
> 90gse2$14uo$1...@news.rchland.ibm.com...
> > The simulation models I write and run generate a lot of data and to make
> > sense of it all I put the data into a set of graphs. The graphs are the
> > typical spread sheet fare, bar graphs, X/Y graphs, scatter plots, etc.
> > Today, I read the data into spreadsheets from the spreadsheet and create
> my
> > graphs by hand and I'd like to automate the process.
> >

> > I'm looking at using win32com (by Mark Hammond) to drive excel or
> > piddle+graphite to generage graphs directly from python. While I'm sure
> it
> > will get the job done, the excel object model is a bit overwhelming.

srei...@_yahoo.dot.com

unread,
Dec 7, 2000, 3:00:00 AM12/7/00
to
You could also check out Gnuplot. There is a Gnuplot.py package that
interfaces to it. I don't know if it has the features you need,
though.

S.
On Mon, 4 Dec 2000 13:48:18 -0600, "Larry Whitley" <l...@us.ibm.com>
wrote:

0 new messages