Www.cdt-pv.org



import matplotlib.pyplot as pltfrom matplotlib import rcimport numpy as nplamda, ref, kappa = np.loadtxt('KM52.txt', delimiter = ',',unpack = True , skiprows=1 )fig = plt.figure()ax = fig.add_subplot(111)ax.plot(lamda, ref , 'r', label = 'ref index n')ax.plot(lamda, ref , 'y', label = 'kappa')ax2 = ax.twinx()ax2.plot(lamda,kappa, 'b', label = 'kap')ax.legend(loc=0)ax.grid()ax.set_xlabel("wavelegth (nm)")ax.set_ylabel(r"ref index n")ax2.set_ylabel(r"kapa")plt.savefig('save.png')plt.show() ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download