iPDC-suite/iPDC/plot_kmeans1.py

23 lines
370 B
Python
Raw Normal View History

2022-10-24 20:30:30 +05:30
import csv
import pandas as pd
import matplotlib.pyplot as plt
x=[]
y=[]
x1=[]
y1=[]
with open('points.csv', mode ='r') as file:
csvFile = csv.reader(file)
for lines in csvFile:
print(lines)
x.append(float(lines[0]))
y.append(0)
x1.append(float(lines[2]))
y1.append(0)
plt.scatter(x, y)
plt.scatter(x1, y1)
plt.show()