import numpy as np from matplotlib import pyplot as plt data = np.array([ [5, 7], [6, 3], [9, 4], ]) x, y = data.T list =data.tolist() for x,y in list: plt.scatter(x,y,color='red') plt.show()
for y,x in list: plt.scatter(x,y,color='blue') plt.show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)