From 27baa0e6511cc0158878f1d1f8ad10366a99f9d2 Mon Sep 17 00:00:00 2001 From: Paul-Corbalan Date: Mon, 30 Mar 2020 17:15:19 +0200 Subject: [PATCH] Images save in "Image" folder gitignore + *.png --- .gitignore | 3 ++- Simulation_DBM/Simulation_DBM.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9ab2ed8..e618b9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -Image/ \ No newline at end of file +Image/ +*.png \ No newline at end of file diff --git a/Simulation_DBM/Simulation_DBM.py b/Simulation_DBM/Simulation_DBM.py index 7a18452..3684bb2 100644 --- a/Simulation_DBM/Simulation_DBM.py +++ b/Simulation_DBM/Simulation_DBM.py @@ -252,7 +252,7 @@ def Print_plt(Mat, N, fichier, afficher=False): plt.title("Simulation de foudre") plt.legend(loc='upper left') plt.axis([0,N,0,N]) - plt.savefig(fichier+".png") + plt.savefig("..\\Image\\"+fichier+".png") if afficher: plt.show() plt.close()