PandA-2024.02
matspy.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import matplotlib.pyplot as plt
4 import numpy as np
5 from mat import mat, mat2
6 
7 #(fig,ax)=plt.subplots()
8 plt.imshow(mat);
9 plt.savefig('mat.png')
10 plt.imshow(mat2);
11 plt.savefig('mat2.png')
12 
13 print sum(map(sum,mat))
14 print sum(map(sum,mat2))
15 
16 #d=dict(zip(list('ABCD'),[0,0,0,0]))
17 #for c in mat:
18 # d[c] += 1
19 #s=sum(d.values())
20 #for k in d:
21 # print 100*d[k]/s
int sum
Definition: dotproduct.h:3
unsigned map[NUM_VERTICES]
Definition: bfs.c:12

Generated on Mon Feb 12 2024 13:02:49 for PandA-2024.02 by doxygen 1.8.13