lib/transient.py
def quickplot(self, figure=1):
        """ simple plot of a list of transients """  # todo: move to transients.py -> under multitransients()
        fig = plt.figure(num=figure)
        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)

        # todo: make nice color iteration, that follows parameter value
        colorlist_length = len(self.transients)
        colorlist = plt.cm.rainbow(np.linspace(0, 1, colorlist_length))
        color = iter(colorlist)

        for curve in self.transients:
            xdata = curve.time
            ydata = curve.trace
            label = str(getattr(curve, self.key_parameter)) + str(curve.get_unit(self.key_parameter))
            col = next(color)
            ax.plot(xdata, ydata, c=col, label=label, alpha=0.7)
        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(self, figure=1):
        fig = plt.figure(num=figure)
        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)
        colorlist_length = len(self.transients)
        colorlist = plt.cm.rainbow(np.linspace(0, 1, colorlist_length))
        color = iter(colorlist)
        for curve in self.transients:
            xdata = curve.time
            ydata = curve.trace
            label = str(getattr(curve, self.key_parameter)) + str(curve.get_unit(self.key_parameter))
            col = next(color)
            ax.plot(xdata, ydata, c=col, label=label, alpha=0.7)
        return fig
def quickplot ( self , figure = 1 ) : fig = plt . figure ( num = figure ) 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 ) colorlist_length = len ( self . transients ) colorlist = plt . cm . rainbow ( np . linspace ( 0 , 1 , colorlist_length ) ) color = iter ( colorlist ) for curve in self . transients : xdata = curve . time ydata = curve . trace label = str ( getattr ( curve , self . key_parameter ) ) + str ( curve . get_unit ( self . key_parameter ) ) col = next ( color ) ax . plot ( xdata , ydata , c = col , label = label , alpha = 0.7 ) return fig
simple plot of a list of transients
simple plot of a list of transients
""" simple plot of a list of transients """ # todo: move to transients.py -> under multitransients() # todo: make nice color iteration, that follows parameter value
self
figure