import matplotlib.pyplot as plt
import numpy as np
# Create a 1024 by 2 array of random points
data=np.random.rand(1024,2)
x = data[:,0]
y = data[:,1]
plt.scatter(x, y)
plt.xlabel ('Series 1')
plt.ylabel ('Series 2')
plt.show()
Interests are use of simulation and machine learning in healthcare, currently working for the NHS and the University of Exeter. Committed to all work being performed in Free and Open Source Software (FOSS), and as much source data being made available as possible.
https://gitlab.com/michaelallen1966
View all posts by Michael Allen
Published
One thought on “37. Matplotlib: Scatter plot, and adding titles to axes”
One thought on “37. Matplotlib: Scatter plot, and adding titles to axes”