On Sun, Jan 9, 2011 at 13:04, Benjamin Root <ben.r...@ou.edu> wrote:

> You have run into a peculiar numpy bug that I have reported several months
> ago.  Essentially, np.loadtxt() does a squeeze() on the data right before
> returning it.  Therefore, if there is only one line, the array returned is a
> 1-d array rather than your expected 2d array.
>
> You can mitigate this by using np.atleast_2d() on the returned array.  This
> will guarantee that your 'morning' array will always be 2d.
>
> I hope that helps!

It does! Thanks!

Cheers

Adam

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to