예제 #1
0
 def plot_curves(cmap_start=0.0, cmap_max=1.0):
     # TODO: implement this
     # cmap = plt.get_cmap('coolwarm')
     ncurves = len(spectra)
     for i, pattern, curve in zip(range(len(spectra)), pattern_list, spectra):
         # plt.plot(*curve, label = pattern, color = cmap(cmap_start + i * (cmap_max - cmap_start)/ncurves))
         plt.plot(*curve, label=pattern)
     plt.legend()
     #        ax.set_xlabel('Angle (rad)')
     #        ax.set_ylabel('Intensity (arb)')
     plt.xlabel("Angle (rad)")
     plt.ylabel("Intensity (arb)")
예제 #2
0
 def plot_curves(cmap_start=0., cmap_max=1.0):
     # TODO: implement this
     #cmap = plt.get_cmap('coolwarm')
     ncurves = len(spectra)
     for i, pattern, curve in zip(range(len(spectra)), pattern_list,
                                  spectra):
         #plt.plot(*curve, label = pattern, color = cmap(cmap_start + i * (cmap_max - cmap_start)/ncurves))
         plt.plot(*curve, label=pattern)
     plt.legend()
     #        ax.set_xlabel('Angle (rad)')
     #        ax.set_ylabel('Intensity (arb)')
     plt.xlabel('Angle (rad)')
     plt.ylabel('Intensity (arb)')
예제 #3
0
 def show():
     plt.xlabel("angle (degrees)")
     plt.ylabel("inensity (arb)")
     plt.legend()
     plt.show()
예제 #4
0
 def show():
     plt.xlabel("angle (degrees)")
     plt.ylabel("inensity (arb)")
     plt.legend()
     plt.show()