Graphs, bar charts, etc

J

Jan Danielsson

Hello all,

I have some data in a postgresql table which I view through a web
interface (the web interface is written in python -- using mod_python
under apache 2.2). Now I would like to represent this data as graphs,
bar charts, etc.

I know about matplotlib, and it seemed like exactly what I was
looking for. I tried importing it in my script, but it gave me some
error about a home directory not being writable. I'm not sure I like the
idea of it require to be able to write somewhere. Am I using it wrong?

Is there something else I can use which can produce graphs easily?
 
J

Jussi Salmela

Jan Danielsson kirjoitti:
Hello all,

I have some data in a postgresql table which I view through a web
interface (the web interface is written in python -- using mod_python
under apache 2.2). Now I would like to represent this data as graphs,
bar charts, etc.

I know about matplotlib, and it seemed like exactly what I was
looking for. I tried importing it in my script, but it gave me some
error about a home directory not being writable. I'm not sure I like the
idea of it require to be able to write somewhere. Am I using it wrong?

Is there something else I can use which can produce graphs easily?

I've used PyChart:

http://home.gna.org/pychart/

in my Blood Pressure Monitor application:

http://personal.inet.fi/cool/operator/BPMDownload.html

I found PyChart to be very easy to use and to function as advertised.

HTH,
Jussi
 
J

Joshua J. Kugler

Jan said:
Hello all,

I have some data in a postgresql table which I view through a web
interface (the web interface is written in python -- using mod_python
under apache 2.2). Now I would like to represent this data as graphs,
bar charts, etc.

I know about matplotlib, and it seemed like exactly what I was
looking for. I tried importing it in my script, but it gave me some
error about a home directory not being writable. I'm not sure I like the
idea of it require to be able to write somewhere. Am I using it wrong?

Is there something else I can use which can produce graphs easily?

We've had good success with matplotlib.

j
 
B

bernhard.voigt

Hi!

Matplotlib saves some stuff into a configuration dir. Take a look at
the __init__.py file in site-packages/matplotlib (or where your
installation lives). There are several environment variabels checked
where a .matplotlib folder will be created. Try unsetting HOME, than
probably TMP will be used and this should be writable in any case. I
don't know whether the creation of the configuration folder can be
turned off.

Hope that helps! Bernhard
 
S

Sean Davis

Hello all,

I have some data in a postgresql table which I view through a web
interface (the web interface is written in python -- using mod_python
under apache 2.2). Now I would like to represent this data as graphs,
bar charts, etc.

I know about matplotlib, and it seemed like exactly what I was
looking for. I tried importing it in my script, but it gave me some
error about a home directory not being writable. I'm not sure I like the
idea of it require to be able to write somewhere. Am I using it wrong?

Is there something else I can use which can produce graphs easily?

You might want to look at RPy (http://rpy.sourceforge.net), an
interface to R (statistical programming environment).

Sean
 

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
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top