|
From: Benjamin R. <ben...@ou...> - 2010-09-21 14:12:58
|
On Tue, Sep 21, 2010 at 9:02 AM, Bala subramanian <bal...@gm... > wrote: > Friends, > I have a file like below. Where i have data in row 1 to 8, then a gap, then > data for row 10-16. I want matplotlib to explicitly consider this gap and > not to shift the y values while plotting. How can i achieve this ?. I tried > by inserting a string 'None' instead of gap, but i get error. > > 20.6 -24.0 > 39.0 24.3 > 12.7 11.8 > 135.8 141.4 > 56.6 80.9 > -84.5 104.1 > -28.0 -28.6 > 1.1 16.7 > > 9.9 19.1 > -9.8 1.5 > 17.4 17.0 > -2.0 16.6 > 10.3 4.4 > 7.2 10.9 > > > Bala, instead of spaces, try 'NaN NaN' (without quotes). I hope that works! Ben Root |