rrTransientAnalysis.py
def quickplot_list(transient_list, title, dependence):
    """ simple plot of a list of transients """  # todo: move to transients.py -> under multitransients()
    fig = plt.figure(num=1)
    plt.clf()
    ax = fig.add_subplot(111)
    ax.set_xlabel('Time [ps]', fontsize=18)
    ax.set_ylabel('Differential Reflectivity', fontsize=18)
    ax.set_title('Fitted Scans', 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
    # using gcd didnt work, or the function for it is buggy
    # colorlist_length, color_step = get_parameter_min_max_minstep(transient_list, dependence)
    colorlist_length = len(transient_list)
    colorlist = cm.rainbow(np.linspace(0, 1, colorlist_length))
    color = iter(colorlist)

    for curve in transient_list:
        # l = str(scn[i].temperature) + 'K'
        xdata = curve.time
        ydata = curve.trace
        parameter = getattr(curve, dependence)
        col = next(color)
        ax.plot(xdata, ydata, c=col, label=str(curve.temperature) + 'K', alpha=0.5)
    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_list(transient_list, title, dependence):
    fig = plt.figure(num=1)
    plt.clf()
    ax = fig.add_subplot(111)
    ax.set_xlabel('Time [ps]', fontsize=18)
    ax.set_ylabel('Differential Reflectivity', fontsize=18)
    ax.set_title('Fitted Scans', fontsize=26)
    ax.tick_params(axis='x', labelsize=12)
    ax.tick_params(axis='y', labelsize=12)
    colorlist_length = len(transient_list)
    colorlist = cm.rainbow(np.linspace(0, 1, colorlist_length))
    color = iter(colorlist)
    for curve in transient_list:
        xdata = curve.time
        ydata = curve.trace
        parameter = getattr(curve, dependence)
        col = next(color)
        ax.plot(xdata, ydata, c=col, label=str(curve.temperature) + 'K', alpha=0.5)
    return fig
def quickplot_list ( transient_list , title , dependence ) : fig = plt . figure ( num = 1 ) plt . clf ( ) ax = fig . add_subplot ( 111 ) ax . set_xlabel ( 'Time [ps]' , fontsize = 18 ) ax . set_ylabel ( 'Differential Reflectivity' , fontsize = 18 ) ax . set_title ( 'Fitted Scans' , fontsize = 26 ) ax . tick_params ( axis = 'x' , labelsize = 12 ) ax . tick_params ( axis = 'y' , labelsize = 12 ) colorlist_length = len ( transient_list ) colorlist = cm . rainbow ( np . linspace ( 0 , 1 , colorlist_length ) ) color = iter ( colorlist ) for curve in transient_list : xdata = curve . time ydata = curve . trace parameter = getattr ( curve , dependence ) col = next ( color ) ax . plot ( xdata , ydata , c = col , label = str ( curve . temperature ) + 'K' , alpha = 0.5 ) 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 # using gcd didnt work, or the function for it is buggy # colorlist_length, color_step = get_parameter_min_max_minstep(transient_list, dependence) # l = str(scn[i].temperature) + 'K'
transient_list
title
dependence