FAQ
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

Search Discussions

  • Jussi Salmela at Feb 6, 2007 at 2:31 pm

    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
  • Dimitri pater at Feb 6, 2007 at 11:03 pm
    Hi,

    check out chartdirector : http://www.advsofteng.com/
    it's not free, but very easy to use
    right now I am testing it here: http://www.serpia.org/water
    a very simple barchart

    regards,
    Dimitri
    On 2/6/07, 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?

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

    --
    Kind regards,
    Jan Danielsson
    --
    http://mail.python.org/mailman/listinfo/python-list


    --
    ---
    You can't have everything. Where would you put it? -- Steven Wright
    ---
    please visit www.serpia.org
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://mail.python.org/pipermail/python-list/attachments/20070207/b9badca4/attachment-0001.html
  • Joshua J. Kugler at Feb 7, 2007 at 3:46 am

    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?

    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 at Feb 7, 2007 at 11:14 am

    On Feb 7, 4:46 am, "Joshua J. Kugler" 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
  • Sean Davis at Feb 7, 2007 at 1:50 pm

    On Feb 6, 7:57 am, 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?

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedFeb 6, '07 at 12:57p
activeFeb 7, '07 at 1:50p
posts6
users6
websitepython.org

People

Translate

site design / logo © 2022 Grokbase