lib/transient.py
def quickplot_OLD(self):
        """ simple plot of a list of transients """
        fig = plt.figure(num=516542)
        plt.clf()  #
        ax = fig.add_subplot(111)
        ax.set_xlabel('Time [ps]', fontsize=18)
        ax.set_ylabel('Differential Reflectivity', fontsize=18)
        ax.set_title(self.series_name, fontsize=26)
        ax.tick_params(axis='x', labelsize=12)
        ax.tick_params(axis='y', labelsize=12)

        key_parameter_values = []
        for transient in self.transients:
            key_parameter_values.append(getattr(transient, self.key_parameter))

        key_parameter_max = max(key_parameter_values)
        print(key_parameter_max)
        n = 1
        # while key_parameter_range % 10 != 0:
        #     n *=10
        #     key_parameter_range * n

        colorlist = cm.rainbow(np.linspace(0, 1, 1001))
        # colorlist = cm.rainbow(np.logspace(0,3,1000)) / 100

        for curve in self.transients:
            # l = str(scn[i].temperature) + 'K'
            xdata = curve.time
            ydata = curve.trace
            parameter = float(getattr(curve, self.key_parameter))
            parameter_label = str('{0} {1}'.format(parameter, curve.get_unit(self.key_parameter)))
            color_number = (parameter / key_parameter_max) * 999
            print(color_number, parameter)
            ax.plot(xdata, ydata, c=colorlist[color_number], label=str() + 'K', alpha=0.5)
        plt.draw()
        return fig
 simple plot of a list of transients 
simple plot of a list of transients
simple plot of a list of transients
def quickplot_OLD(self):
        fig = plt.figure(num=516542)
        plt.clf()  
        ax = fig.add_subplot(111)
        ax.set_xlabel('Time [ps]', fontsize=18)
        ax.set_ylabel('Differential Reflectivity', fontsize=18)
        ax.set_title(self.series_name, fontsize=26)
        ax.tick_params(axis='x', labelsize=12)
        ax.tick_params(axis='y', labelsize=12)
        key_parameter_values = []
        for transient in self.transients:
            key_parameter_values.append(getattr(transient, self.key_parameter))
        key_parameter_max = max(key_parameter_values)
        print(key_parameter_max)
        n = 1
         while key_parameter_range % 10 != 0:
             n *=10
             key_parameter_range * n
        colorlist = cm.rainbow(np.linspace(0, 1, 1001))
         colorlist = cm.rainbow(np.logspace(0,3,1000)) / 100
        for curve in self.transients:
             l = str(scn[i].temperature) + 'K'
            xdata = curve.time
            ydata = curve.trace
            parameter = float(getattr(curve, self.key_parameter))
            parameter_label = str('{0} {1}'.format(parameter, curve.get_unit(self.key_parameter)))
            color_number = (parameter / key_parameter_max) * 999
            print(color_number, parameter)
            ax.plot(xdata, ydata, c=colorlist[color_number], label=str() + 'K', alpha=0.5)
        plt.draw()
        return fig
def quickplot_OLD ( self ) : fig = plt . figure ( num = 516542 ) plt . clf ( ) ax = fig . add_subplot ( 111 ) ax . set_xlabel ( 'Time [ps]' , fontsize = 18 ) ax . set_ylabel ( 'Differential Reflectivity' , fontsize = 18 ) ax . set_title ( self . series_name , fontsize = 26 ) ax . tick_params ( axis = 'x' , labelsize = 12 ) ax . tick_params ( axis = 'y' , labelsize = 12 ) key_parameter_values = [ ] for transient in self . transients : key_parameter_values . append ( getattr ( transient , self . key_parameter ) ) key_parameter_max = max ( key_parameter_values ) print ( key_parameter_max ) n = 1 colorlist = cm . rainbow ( np . linspace ( 0 , 1 , 1001 ) ) for curve in self . transients : xdata = curve . time ydata = curve . trace parameter = float ( getattr ( curve , self . key_parameter ) ) parameter_label = str ( '{0} {1}' . format ( parameter , curve . get_unit ( self . key_parameter ) ) ) color_number = ( parameter / key_parameter_max ) * 999 print ( color_number , parameter ) ax . plot ( xdata , ydata , c = colorlist [ color_number ] , label = str ( ) + 'K' , alpha = 0.5 ) plt . draw ( ) return fig
simple plot of a list of transients
simple plot of a list of transients
""" simple plot of a list of transients """ # # while key_parameter_range % 10 != 0: #     n *=10 #     key_parameter_range * n # colorlist = cm.rainbow(np.logspace(0,3,1000)) / 100 # l = str(scn[i].temperature) + 'K'
self