Benjamin,

I tried this: x, y, yerr = np.loadtxt(r'C:\date1.dat', unpack=True)

but the error continue: http://pastebin.com/UwgKS3s5

Thanks,
Waleria.

On Mon, Oct 4, 2010 at 4:58 PM, Benjamin Root <ben.r...@ou.edu> wrote:

> On Mon, Oct 4, 2010 at 1:57 PM, Waléria Antunes David <
> waleriantu...@gmail.com> wrote:
>
>> Hi all,
>>
>> My problem is this error: 
>> http://pastebin.com/bfu29WuF<http://pastebin.com/ZPzdC5c8>
>>
>> my code: http://pastebin.com/KzwEmucN
>>
>> What could be?
>>
>> Thanks
>> Waleria
>>
>
> Waleria,
>
> I am not entirely familiar with programming python in a Windows
> environment, however, you are attempting to open files with the name:
> 'C:\date1.dat'.  The backslash is probably acting as an escape character and
> causing the filename to be interpreted differently from how you expect.  Try
> this:
>
> x, y, yerr = np.loadtxt(r'C:\date1.dat', unpack=True)
>
> The 'r' before the string forces python to not interpret any special
> characters in a special way.  Also note that I simplified your data loading
> code with the use of the 'unpack=True' keyword argument.
>
> I hope this helps,
> Ben Root
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to