From: Felix S. <fel...@ui...> - 2010-08-16 11:34:01
|
Hi there, i got a question on how to best handle NaN values. I'm plotting 3 x-y curves into one plot (data comes from 3 files which are read and processed earlier in my code). Sometimes one of them has NaN-values at the y=0 point. If i just convert the NaN-values as everthing else: data_array.append(float(THENANVALUE)) the data array contains the nan and my values just fine. However if i then proceed to g.plot(...), i get a line 0: Bad data on line 1 error. What i would like to have, is a plot where the undefined lowest value is ignored and plotting starts at the first defined value. Is there a simple solution to this/ any suggestion? Thanks in advance for any answers! :-) Felix |