Connecting Tech Pros Worldwide Forums | Help | Site Map

Graphs, bar charts, etc

Jan Danielsson
Guest
 
Posts: n/a
#1: Feb 6 '07
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?

--
Kind regards,
Jan Danielsson

Jussi Salmela
Guest
 
Posts: n/a
#2: Feb 6 '07

re: Graphs, bar charts, etc


Jan Danielsson kirjoitti:
Quote:
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
Joshua J. Kugler
Guest
 
Posts: n/a
#3: Feb 7 '07

re: Graphs, bar charts, etc


Jan Danielsson wrote:
Quote:
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

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ Â*ID 0xDB26D7CE

--
Posted via a free Usenet account from http://www.teranews.com

bernhard.voigt@gmail.com
Guest
 
Posts: n/a
#4: Feb 7 '07

re: Graphs, bar charts, etc


On Feb 7, 4:46 am, "Joshua J. Kugler" <jos...@eeinternet.comwrote:
Quote:
Jan Danielsson wrote:
Quote:
Hello all,
>
Quote:
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.
>
Quote:
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?
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

Sean Davis
Guest
 
Posts: n/a
#5: Feb 7 '07

re: Graphs, bar charts, etc


On Feb 6, 7:57 am, Jan Danielsson <jan.m.daniels...@gmail.comwrote:
Quote:
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?
>
--
Kind regards,
Jan Danielsson
You might want to look at RPy (http://rpy.sourceforge.net), an
interface to R (statistical programming environment).

Sean

Closed Thread


Similar Python bytes