Expand|Select|Wrap|Line Numbers
- #col1 col2 col3 col4
- 171.4 130.5 7.2245646 0.3933173
- 98.2 133.1 6.8370089 -0.4387156
- 4.8 12.8 2.9705532 -1.4150375
- 225.1 193.5 7.705306 0.2182325
I would like to plot of col3, col4 (from text data file) in order to
get a plot like:
Expand|Select|Wrap|Line Numbers
- y
- 1 |
- | * *
- | * * * * *
- 0 _ _ *_ _ *__ *_ *_ _ _ _ _
- | * * * * * * *
- | * * * * * *
- -1| ______________________ x
Question 2:
I try to make a plot using my column data like lists. Like:
########
Expand|Select|Wrap|Line Numbers
- from pylab import *
- x = [1.3, 4.5, 5]
- y = [2.3, 4.1, 6]
- plot(x,y)
- xlabel('xaxe')
- ylabel('yaxe')
- title('Plot name')
- plot(x,y,'r',label="Gallup",color='r',linewidth=0,markerfacecolor='g', markeredgecolor='y',marker='d')
- legend()
- show()
Result: I got back a line plot. I known that is a bad way.
What is the best way for list?
Thanks
Ibra