Q. A distribution data stores about 1000 random number. Write a program to create a scatter chart from this data with varying point sizes.
Answer :-
import matplotlib.pyplot as plt import numpy as np X = np.random.randint(1 , 1000 , size = (1000)) Y = np.random.randint(1,1000 , size = (1000)) size = np.arange(0, 100 ,0.1) plt.scatter( X , Y , s = size) plt.show()
Output :-
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )