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:
> Hébergement gratuit Plone chez Pilot Systems — Pilot Systems
>>
> 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
>> matplotlib-users List Signup and Options
> -- 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
> matplotlib-users List Signup and Options