From cf5391c4c891a0cc12450facf2d5fbada882d82d Mon Sep 17 00:00:00 2001
From: Mohcine Chraibi <m.chraibi@fz-juelich.de>
Date: Thu, 23 Feb 2017 18:21:28 +0100
Subject: [PATCH] small changes in plot script

---
 Analysis.cpp         |  2 +-
 scripts/_Plot_N_t.py | 11 ++++-------
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/Analysis.cpp b/Analysis.cpp
index 02de8b08..5290b5de 100644
--- a/Analysis.cpp
+++ b/Analysis.cpp
@@ -320,8 +320,8 @@ int Analysis::RunAnalysis(const string& filename, const string& path)
                }
           }
      }
-     //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
 
+     //-----------------------------------------------------------------------------------------------------------------------------------------------------------------
      if(_DoesUseMethodA) //Method A
      {
 #pragma omp parallel for
diff --git a/scripts/_Plot_N_t.py b/scripts/_Plot_N_t.py
index ed8480a2..52f74bb8 100644
--- a/scripts/_Plot_N_t.py
+++ b/scripts/_Plot_N_t.py
@@ -1,9 +1,6 @@
-from numpy import *
-import matplotlib
+import numpy as np
 import matplotlib.pyplot as plt
 from Polygon import *         
-import matplotlib.cm as cm
-import pylab
 import argparse
 import sys
 
@@ -29,11 +26,11 @@ if __name__ == '__main__':
    ax1 = fig.add_subplot(111,aspect='auto')
    plt.rc("font", size=30)
    plt.rc('pdf',fonttype = 42)
-   data_NT = loadtxt("%s/%s"%(pathfile,namefile))
+   data_NT = np.loadtxt("%s/%s"%(pathfile,namefile))
    #plt.plot(data_NT[:,0]/fps,data_NT[:,1], 'r-')
    plt.plot(data_NT[:,0],data_NT[:,1], 'r-')
-   plt.xlabel("t [s]")
-   plt.ylabel("N [-]")
+   plt.xlabel("t [s]", size=18)
+   plt.ylabel("N [-]", size=18)
    plt.title("%s"%title)
    plt.savefig("%s/%s.png"%(pathfile,figname))
    plt.close()
-- 
GitLab