Skip to content

Commit f079fb6

Browse files
Add files via upload
1 parent 9c8ca49 commit f079fb6

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import matplotlib.pyplot as plt
2+
3+
# Sample data
4+
x = [1, 2, 3, 4, 5]
5+
y = [2, 4, 1, 5, 3]
6+
7+
# Create a scatter plot
8+
plt.scatter(x, y, label='Scatter Plot', color='blue', marker='o')
9+
10+
# Add labels and title
11+
plt.xlabel('X-axis')
12+
plt.ylabel('Y-axis')
13+
plt.title('Scatter Plot Example')
14+
15+
# Add a legend
16+
plt.legend()
17+
18+
# Show the plot
19+
plt.show()
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import matplotlib.pyplot as plt
2+
3+
# Sample data
4+
categories = ['Category A', 'Category B', 'Category C', 'Category D']
5+
values = [3, 7, 2, 5]
6+
7+
# Create a bar chart
8+
plt.bar(categories, values, color='green')
9+
10+
# Add labels and title
11+
plt.xlabel('Categories')
12+
plt.ylabel('Values')
13+
plt.title('Bar Chart Example')
14+
15+
# Show the plot
16+
plt.show()

0 commit comments

Comments
 (0)