Exemplo n.º 1
0
def plot_comb_eig(es):
    """
    For each of the given eigenvectors, produce one plot with the eigenvector
    and the combined window of all elements.
    """
    for e in es:
        plt.figure(figsize=(16,5))
        plt.plot(e)
        combwin =np.ma.masked_array(0.1*(np.sum(normwindows,axis=0)/np.max(np.sum(normwindows,axis=0)))-0.06,mask=np.zeros(7214).astype(bool))
        plt.plot(combwin,color='r')
        plt.plot(smoothMedian(e,numpix=100.),lw=3,color='k')
        plt.xlim(0,7214)
Exemplo n.º 2
0
def plot_big_eig(es):
    """
    For each of the given eigenvectors, produce one plot with 15 subplots 
    each of which shows the same eigenvector with different element windows.

    es:   List of eigenvectors to compare.

    """
    for e in es:
        med = smoothMedian(e,numpix=100.)
        plt.figure(figsize=(16,5*15))
        for i in range(len(elems)):
            plt.subplot2grid((15,1),(i,0))
            plt.plot(e)
            plt.plot(med,lw=3,color='k')
            plt.xlim(0,7214)
            plt.yticks([])
            plt.plot(0.1*(normwindows[i]/np.max(normwindows[i]))-0.06,color='r')
            if i!=len(elems):
                plt.xticks([])