Add "Print_mat"
This commit is contained in:
parent
50cbfce858
commit
f2730b39c6
|
@ -61,3 +61,13 @@ def Print_plt(Mat, fichier, rep=".\\", afficher=False, save=True):
|
|||
if afficher:
|
||||
plt.show()
|
||||
plt.close()
|
||||
|
||||
|
||||
def Print_mat(y, fichier, rep=".\\", afficher=False, save=True):
|
||||
heatmap = plt.pcolor(y)
|
||||
plt.colorbar(heatmap)
|
||||
if save:
|
||||
plt.savefig(rep+fichier+".png")
|
||||
if afficher:
|
||||
plt.show()
|
||||
plt.close()
|
||||
|
|
Loading…
Reference in New Issue