Skip to content

Commit 9e24733

Browse files
authored
Added scatter plot demo using matplotlib package
1 parent fc596fa commit 9e24733

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plotting_scatter.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import matplotlib.pyplot as plt
2+
import numpy as np
3+
4+
# Create sample data
5+
x = np.array([5,7,8,7,2,17,2,9,4,11,12,9,6])
6+
y = np.array([99,86,87,88,111,86,103,87,94,78,77,85,86])
7+
8+
# Create scatter plot
9+
plt.scatter(x, y)
10+
11+
# Display plot
12+
plt.show()

0 commit comments

Comments
 (0)