Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 10f9971

Browse files
Create program.py
1 parent e646005 commit 10f9971

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# importing matplotlib module
2+
from matplotlib import pyplot as plt
3+
4+
# x-axis values[x1, x2, x3, x4]
5+
x = [5, 2, 9, 4, 7]
6+
7+
# y-axis values[y1, y2, y3, y4]
8+
y = [10, 5, 8, 4, 2]
9+
10+
# Functions to plot
11+
plt.plot(x,y)
12+
13+
#function to show the plot
14+
plt.show()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /