Skip to content

Commit e207a1b

Browse files
authored
Add files via upload
1 parent f1dd8dd commit e207a1b

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import numpy as np
2+
import matplotlib.pyplot as plt
3+
4+
t = np.arange(0.0,2.0,0.01)
5+
s = 1 + np.cos(2*np.pi*t)
6+
7+
plt.grid()
8+
plt.plot(t,s, '--')
9+
plt.xlabel('Time (t)')
10+
plt.ylabel('Voltage (v)')
11+
plt.title('Cosine Curved plot')
12+
plt.show()
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import matplotlib.pyplot as plt
2+
3+
ages = [2, 50, 70, 40,30,50,59,4,84,34,30,30,48,2,7,18,30,34,90,50]
4+
5+
range =(0,100)
6+
bins = 10
7+
8+
plt.hist(ages,bins, range, color='green', histtype='bar', rwidth=0.7)
9+
plt.xlabel('Ages')
10+
plt.ylabel('Bins')
11+
plt.title('Histogram Plot')
12+
plt.show()

0 commit comments

Comments
 (0)