Articles → Matplotlib → Scatter Graph In Matplotlib

Scatter Graph In Matplotlib






Scatter Graph





Example


import matplotlib.pyplot as plt
import array

arr1 = array.array('i', [1, 2, 3])
arr2 = array.array('i', [4, 5, 6])

plt.scatter(arr1, arr2)
plt.show()



Output


Picture showing the output of Scatter graph in matplotlib



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, June 25, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250