From: Francesc A. <fa...@ca...> - 2005-09-09 10:23:26
|
A Thursday 08 September 2005 18:08, Nicolas Girard va escriure: > BUT the big trouble occurs when accessing several elements: > > In [205]:mean(d[1,:,0]) > Out[205]:1.2737342119216919 > > In [206]:mean(d2[1,:,0]) > Out[206]:0.48158463835716248 By the way, do you know which one is the correct one? > Also when plotting the data using matplotlib, the results are absolutely > different: > > In [202]:plot(d[1,0:5,0]) > Out[202]:[<matplotlib.lines.Line2D instance at 0x99d932c>] > --> http://nicolasgirard.net2.nerim.net/img/plot_d.png > > In [203]:clf() > > In [204]:plot(d2[1,0:5,0]) > Out[204]:[<matplotlib.lines.Line2D instance at 0x991958c>] > --> http://nicolasgirard.net2.nerim.net/img/plot_d2.png Mmm..., that's very weird because you printed the results before and they looked similar. Just in case, have you configured your environment (I mean matplotlib or scipy, if applicable) so that it expects numarray objects instead of expecting Numeric objects? =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |