*Hi Daniel, *
* *
*I used the code but there is small issue. I forgot to mention that my
values are signed and unsigned decimal values. *
*My values look like this
*
 0.0023 -0.0456 0.0419 0.094  -0.0004 0.0236 -0.0237 -0.0043  -0.0718 0.0095
0.0592 -0.0417  0.0023 0.0386 -0.0023 -0.0236  -0.1045 0.098 -0.0006 0.0516
0.0463 -0.0035 -0.0442 0.1371  0.022 -0.0222 0.256 0.4903  0.0662 -0.0763
0.0064 0.1404

*After running the code the "pylab.savetxt" saves the same data something
like this*


8.205965840870644800e-01;8.034591567160346300e-01;5.493847743502982000e-01;2.581157685701491700e-01;6.409997826977161800e-01;3.719908502347885100e-01

*When I tried to extract data and print them they look like this (totally
different from the actual values!)*

[ 0.18353712  0.30468928  0.16164556 ...,  0.98860032  0.49681098
  0.77393306]

*When I tried not using the "pylab.savetxt" function it gives an error like
below:*

ValueError: invalid literal for float():
0.0023,-0.0456,0.0419,0.094,0.0224,0.0365

*Is there a specific way to handle signed decimal number? If so please
suggest some changes.* And also I did try using the "array[]" to access
individual comulns but I get an error saying the numpy.ndarray object not
callable.

*import matplotlib.pyplot as plt
import pylab
import scipy
import numpy
datafile1 = 'vet1.csv'
data = pylab.rand(98760,6)
pylab.savetxt(datafile1, data, delimiter=';')
a1 = pylab.loadtxt(datafile1, comments='#', delimiter=';').T
print 'loading', datafile1
v1 = [0,1]
v2 = [-2,2]*
*plt.close('all')
plt.figure()*
*plt.ylim(v2)
for i in range(2):
    plt.plot(a1[i])*
*plt.show()*

 -Karthik
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to