9951 explained code solutions for 126 technologies


python-matplotlibScatter chart example


import matplotlib.pyplot as plt

plt.scatter([1,2,3],[2,2,2])
plt.scatter(2,1,s=600)

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.scatter(

plots a point chart

[1,2,3]

list of x coordinates

[2,2,2]

list of y coordinates

2,1

x and y coordinates

s=600

point size

.show()

render chart in a separate window