Guest User

Jai Balaya

a guest
Mar 12th, 2025
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. x = [5,7,8,7,2,17,2,9,4,11,12,9,6]
  3. y = [99,86,87,88,111,86,103,87,94,78,77,85,86]
  4. plt.scatter(x,y)
  5. plt.show()
  6.  
  7. ## NEXT CELL
  8.  
  9. from matplotlib import pyplot as plt
  10. import numpy as np
  11. a = np.array([22,87,5,43,56,73,55,54,11,20,51,5,79,31,27])
  12. fig,ax = plt.subplots(figsize=(10,7))
  13. ax.hist(a, bins = [0,25,50,75,100])
  14. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment