Re: [Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-22 Thread John Hunter
On Thu, Jul 22, 2010 at 8:07 AM, John Hunter wrote: > On Thu, Jul 22, 2010 at 7:58 AM, alberttresens > wrote: >> >> http://old.nabble.com/file/p29236565/gcview.py gcview.py >> http://old.nabble.com/file/p29236565/gc.log gc.log >> >> Hi here the files you were asking for. > > Works fine for me --

Re: [Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-22 Thread John Hunter
On Thu, Jul 22, 2010 at 7:58 AM, alberttresens wrote: > > http://old.nabble.com/file/p29236565/gcview.py gcview.py > http://old.nabble.com/file/p29236565/gc.log gc.log > > Hi here the files you were asking for. Works fine for me -- most likely one of my suggestions in the previous post will help

Re: [Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-22 Thread alberttresens
http://old.nabble.com/file/p29236565/gcview.py gcview.py http://old.nabble.com/file/p29236565/gc.log gc.log Hi here the files you were asking for. -- View this message in context: http://old.nabble.com/Plot%28%29-%3A-IndexError%3A-index-out-of-range-for-array-tp29226333p29236565.html Sent fr

Re: [Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-22 Thread John Hunter
On Thu, Jul 22, 2010 at 3:48 AM, alberttresens wrote: > > Might be usefull, that is the script I am trying to run. I has some checks, > but is basiclly from Salmon Run Blog: We can't run this because when you pasted the text into the browser it was line wrapped and would require significant editi

Re: [Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-22 Thread alberttresens
Might be usefull, that is the script I am trying to run. I has some checks, but is basiclly from Salmon Run Blog: #!/usr/bin/python import os import sys import re import time from stat import * from pylab import * from matplotlib import * def parse(line): """ Parses an inpu

Re: [Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-22 Thread alberttresens
Hi, Thanks for the reply. I did already try it and still go the same trace back. I tried with long arrays [1,2,,n] and with short ones. I also tried with single numbers. How can it get an out of range array? File "gcview.py", line 87, in drawGraph plot([0],[0]) File "/usr/local/lib/p

Re: [Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-21 Thread John Hunter
On Wed, Jul 21, 2010 at 10:05 AM, alberttresens wrote: > > I am getting this trace when trying to plot. I tried all possible > combinations in the plot parameters, always the same. Can someone recon what > is happening? > > Traceback (most recent call last): >  File "gcview.py", line 226, in >  

[Matplotlib-users] Plot() : IndexError: index out of range for array

2010-07-21 Thread alberttresens
I am getting this trace when trying to plot. I tried all possible combinations in the plot parameters, always the same. Can someone recon what is happening? Traceback (most recent call last): File "gcview.py", line 226, in main() File "gcview.py", line 222, in main drawGraph(timeStam