Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- # To configure matplotlib to embed the plots in the output cells of the present notebook
- %matplotlib notebook
- In [26]:
- X = np.array([[1,1], [2,2.5], [3,1.2], [5.5,6.3], [6,9], [7,6], [8,8]]) # Define numpy array of two-dim points
- plt.figure()
- plt.scatter(X[:,0], X[:,1], s = 170, color = 'black') # Plot points with slicing syntax X[:,0] and X[:,1]
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement