4 ms·
Or the following python script: import pandas from pylab import * d = pandas.read_csv(sys.argv[1]) plot(d[d.columns[0]], d[d.columns[1]])
by yummyfajitas 14y ago
Or the following python script:
import pandas
from pylab import *
d = pandas.read_csv(sys.argv[1])
plot(d[d.columns[0]], d[d.columns[1]])
xlabel(d.columns[0])
xlabel(d.columns[1])
show()
That'll just pop up a window displaying the graph. With 2-3 extra lines of code and more than 30 seconds of effort, I'm sure it would be easy to upload to imgur.
Example output: http://i.imgur.com/m7ooj.png http://i.imgur.com/m7ooj.png
- mdonahoe 14y agoAssuming you have matplotlib installed. I have definitely wasted an hour in vain trying to install that correctly on an old Mac mini.
- tlarkworthy 14y agowords cannot describe how much I hate matplotlib
- bsg75 14y agoMaybe some anecodtes? Alternatives (for Python)? Would like to generate D3 style charts, without leaving Python for JS.
- tlarkworthy 14y agotell me you find any. I use matplotlib as I have not found an alternative.
- Quiark 14y agoI, on the other hand, totally love matplotlib
- alphakappa 14y agoThe SciPy Superpack will save you many hours of trouble in the future then. (SciPy, NumPy, MatplotLib etc) https://github.com/fonnesbeck/ScipySuperpack https://github.com/fonnesbeck/ScipySuperpack