Graphs, bar charts, etc

bernhard.voigt at gmail.com bernhard.voigt at gmail.com
Wed Feb 7 06:14:39 EST 2007


On Feb 7, 4:46 am, "Joshua J. Kugler" <jos... at eeinternet.com> wrote:
> Jan Danielsson wrote:
> > 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?

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




More information about the Python-list mailing list