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
------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security
easier or more difficult to achieve? Read this whitepaper to separate the
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users