How can I read in a file with multiple x, y coordinates pairs and display as scatter points in Python 3 -


i have file consist of multiple x,y coordinates pairs/columns :

614749.4 471134.6 614682.35 470996.6

614755.6 471134.1 614685.45 470996.4

614761.8 471133.5 614688.55 470996.1

614768.1 471133 614691.7 470995.85

.......

614767.6 471058.1 614691.45 470958.4

614773.8 471057.6 614694.55 470958.15

614780 471057.1 614697.65 470957.9

614786.2 471056.6 614700.75 470957.65

i use python read in file , display excel can do:

the file big million of x,y pairs. excel slow read , display scatter points. have numpy , matplotlib package installed. have trouble

last year had deal lots of data , fit too. had written simple code that. hope helps in way. can contact me if needed.

underfed link code.

it takes files in given directory , process data file file plots , fits given function if required , @ end, results stored in text file.

you can write using numpy , matplotlib libraries. need use numpy genfromtxt data multi-dimensional array , plot using matplotlib.


Comments