Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
benchmark_graph.py
Go to the documentation of this file.
1import numpy as np
2import matplotlib.pyplot as plt
3
4barWidth = 0.25
5fig = plt.subplots(figsize =(12, 8))
6
7IT = [12, 30, 1, 8, 22]
8ECE = [28, 6, 16, 5, 10]
9CSE = [29, 3, 24, 25, 17]
10
11br1 = np.arange(len(IT))
12br2 = [x + barWidth for x in br1]
13br3 = [x + barWidth for x in br2]
14
15plt.bar(br1, IT, color ='r', width = barWidth,
16 edgecolor ='grey', label ='IT')
17plt.bar(br2, ECE, color ='g', width = barWidth,
18 edgecolor ='grey', label ='ECE')
19plt.bar(br3, CSE, color ='b', width = barWidth,
20 edgecolor ='grey', label ='CSE')
21
22plt.xlabel('Branch', fontweight ='bold', fontsize = 15)
23plt.ylabel('Students passed', fontweight ='bold', fontsize = 15)
24plt.xticks([r + barWidth for r in range(len(IT))],
25 ['2015', '2016', '2017', '2018', '2019'])
26
27plt.legend()
28plt.show()