matplotlib on fc3 crashes

Hi, here is the script:

Really very strange. Are you running this from the command line or an
IDE? Could you post the results of

  > python yourscript.py --verbose-helpful

Perhaps this is a problem with text cacheing if you run the same
script repeatedly from ipython or an IDE.

Does it matter if you put the x and y label calls *after* the errorbar
command?

JDH

···

#!/usr/bin/python

    > from scipy import * from pylab import *

    > MAX_TIME = 7000

    > fn_social="all-avg.dat"

    > def readStats(fn): q = [d for d in io.read_array(fn) if
    > d[0]<=MAX_TIME]

    > print q t=[s[0] for s in q]

    > age=[s[1] for s in q] age_conf=[s[2] for s in q]

    > wp=[s[3] for s in q] wp_conf=[s[4] for s in q]

    > return t, age, age_conf, wp, wp_conf

    > hold(True)

    > t, age, age_conf, wp, wp_conf = readStats(fn_social)

    > xlabel('time [s]') ylabel('average lifetime [s]')

    > errorbar(t,wp,yerr=wp_conf, color="blue",ecolor="black",
    > mfc='red', mec='green', ms=200, mew=4)

    > show()

    > Am Freitag, 14. Oktober 2005 16:05 schrieb John Hunter:

    >>
    > Thanks, that helped! Switching to QtAgg did the trick.
    > However, I have still some issues: 1) the text placement of
    > the titles does not really work:
    > http://wr.objectis.net/Members/Papst/Matplotlib_Problems
    >>
    > 2) The confidence intervals are only vertical lines. I
    > would like to have some small horizontal "stoppers" at the
    > upper and lower point of those error bars. Is that
    > possible with matplotlib?
    >>
    >>
    >> Could you post the script -- hard to debug in a vacuum.
    >>
    >> JDH
    >>
    >>
    >> ------------------------------------------------------- This
    >> SF.Net email is sponsored by: Power Architecture Resource
    >> Center: Free content, downloads, discussions, and
    >> more. http://solutions.newsforge.com/ibmarch.tmpl
    >> _______________________________________________
    >> Matplotlib-users mailing list
    >> Matplotlib-users@lists.sourceforge.net
    >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

    > -- Dipl.-Inform. Willi Richert C-LAB - Cooperative
    > Computing & Communication Laboratory der Universit?t
    > Paderborn und Siemens

    > FU.323 F?rstenallee 11 D-33102 Paderborn Tel: +49 52 51 60
    > - 61 20 Fax: +49 52 51 60 - 60 65 E-Mail: richert@...840...
    > Internet: http://www.c-lab.de

    > -------------------------------------------------------
    > This SF.Net email is sponsored by: Power Architecture
    > Resource Center: Free content, downloads, discussions, and
    > more. http://solutions.newsforge.com/ibmarch.tmpl
    > _______________________________________________
    > Matplotlib-users mailing list
    > Matplotlib-users@lists.sourceforge.net
    > https://lists.sourceforge.net/lists/listinfo/matplotlib-users

    > Hi, here is the script:

Really very strange. Are you running this from the command line or an
IDE? Could you post the results of

  > python yourscript.py --verbose-helpful

matplotlib data path /usr/share/matplotlib
$HOME=/home/wr
CONFIGDIR=/home/wr/.matplotlib
loaded rc file /home/wr/.matplotlib/matplotlibrc
matplotlib version 0.84
verbose.level helpful
interactive is True
platform is linux2
numerix Numeric 23.3
font search path ['/usr/share/matplotlib']
loaded ttfcache file /home/wr/.matplotlib/ttffont.cache
Could not load matplotlib icon: 'module' object has no attribute
'window_set_default_icon_from_file'
backend QtAgg version 0.9.1

matplotlibrc is attached

Perhaps this is a problem with text cacheing if you run the same
script repeatedly from ipython or an IDE.

Does it matter if you put the x and y label calls *after* the errorbar
command?

Unfortunately, no.

Regards,
wr

matplotlibrc (9.94 KB)

···

Am Montag, 17. Oktober 2005 19:28 schrieben Sie: