Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: How to create a scatter plot in Matplotlib?
Answer: Use the `plt.scatter()` function to create a scatter plot.

Example:

plt.scatter([1, 2, 3, 4], [10, 20, 25, 30])
plt.show()
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook