|
From: Eric E. <ems...@ob...> - 2006-01-19 21:53:42
|
Ok thanks. (in fact the cvs version seemed to have solved it for some reason) I did that only because when doing "help(arange)" it gave me that dependency and I wanted to be sure to use the right one here. So why is Ipython giving me that instead of the most direct one? thanks again Eric > I agree. numpy.core.multiarray is the base object for arrays, but it > not really supposed to be used directly. All arrays should have a > dtypechar property, and since that was the source of your original > error, I am even more sure you shouldn't use it directly. Chris's > suggestions are the correct approach. > > On 1/19/06, Christopher Barker <Chr...@no...> wrote: > > Eric Emsellem wrote: > > > > > I have switched to numpy (I was using numarray before) with matplotlib. > > > > > x = numpy.core.multiarray.arange(0.,6.,1.) > > > > Why not use: > > > > x = numpy.arange(0.,6.,1.) > > > > Or maybe better with MPL: > > > > import matplotlib.numerix as nx > > x = nx.arange(0.,6.,1.) > > > > after setting numerix appropriately in .matplotlibrc. > > > > -Chris > > > > > > -- > > Christopher Barker, Ph.D. > > Oceanographer > > > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > > 7600 Sand Point Way NE (206) 526-6329 fax > > Seattle, WA 98115 (206) 526-6317 main reception > > > > Chr...@no... > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > -- -------------------------------------------------------------------------- Ce message a été envoyé depuis le webmail IMP (Internet Messaging Program) |