import numpy as np import matplotlib.pyplot as plt dataset = np.genfromtxt('my_db.csv', delimiter=',',usecols=(1,2,3),names=['z','y','x']) plt.xlabel('Latitude') plt.ylabel('Longitude') #x = data['x'] #y = data['y'] #z = data['z'] dataset[dataset[:,1].argsort()] # 0 dBm is never extracted from the database old = [0,0,0] result = [] for x in dataset: if x[0] == old[0] and x[1] == old[1]: plt.colorbar() plt.show()