Example #1
0
            Df dimensions were: %i,%i'%(s0, s1))

        ### IMPLEMENT TEST FOR ANTI-SYMMETRY, NOT SURE HOW    

    pltkwds['zlabel']=pltkwds.pop('zlabel', 'Asynchronicity')      

    pltkwds['title_def']='Asynchronous Spectrum'
    corr_3d(df, **pltkwds)    


if __name__ == '__main__':
    from pyuvvis.data import aunps_glass, solvent_evap
    import numpy as np
    import matplotlib.pyplot as plt 

    ts = solvent_evap()#.as_interval('s').as_iunit('r')
    
    cd = Corr2d.from_spectra(ts)
    cd.center()

    cd.plot(fill=False, title="Blank sideplots", grid=False)
    plt.show()
    
#    cd.scale()
#    cd.scale(False)
 #   cd.scale(alpha=0.5)
#    ax1,ax2,ax3, ax4 = cd.plot(cmap='bone', 
 #                              fill=True, cbar=True, contours=20, grid=True)
 #   ts.plot(ax=ax2, padding=0.01, title='', xlabel='', ylabel='Full', 
 #           colormap='gray')
 #   ts.plot(ax=ax3, colormap='jet', padding=0.01, title='', xlabel='', ylabel='Full')
Example #2
0
            Df dimensions were: %i,%i' % (s0, s1))

        ### IMPLEMENT TEST FOR ANTI-SYMMETRY, NOT SURE HOW

    pltkwds['zlabel'] = pltkwds.pop('zlabel', 'Asynchronicity')

    pltkwds['title_def'] = 'Asynchronous Spectrum'
    corr_3d(df, **pltkwds)


if __name__ == '__main__':
    from pyuvvis.data import aunps_glass, solvent_evap
    import numpy as np
    import matplotlib.pyplot as plt

    ts = solvent_evap()  #.as_interval('s').as_iunit('r')

    cd = Corr2d.from_spectra(ts)
    cd.center()

    cd.plot(fill=False, sideplots=False, title="Blank sideplots", grid=False)
    plt.show()

    #    cd.scale()
    #    cd.scale(False)
    #   cd.scale(alpha=0.5)
    #    ax1,ax2,ax3, ax4 = cd.plot(cmap='bone',
    #                              fill=True, cbar=True, contours=20, grid=True)
    #   ts.plot(ax=ax2, padding=0.01, title='', xlabel='', ylabel='Full',
    #           colormap='gray')
    #   ts.plot(ax=ax3, colormap='jet', padding=0.01, title='', xlabel='', ylabel='Full')
Example #3
0
    #ts=TimeSpectra(abs(np.random.randn(300,30)), 
##                   columns=testdates, 
                    #index=spec, 
                    #name='ts1')  

    #print ts.list_varunits()
    #print ts.list_specunits()

    ###t2=TimeSpectra(abs(np.random.randn(300,30)), 
                    ###columns=testdates2, 
                    ###index=spec, 
                    ###name='ts2') 

    import matplotlib.pyplot as plt
    from pyuvvis.plotting import areaplot
    ts = solvent_evap()
    ts = ts.as_varunit('m')

    from pandas import DataFrame
    df = DataFrame(np.random.randn(50,50), index=np.linspace(0,50,50))
    
#    ts.nearby[900:]
    ts.nearby[[1200,1400]]
        
    ts.iloc[:, 2:4.4].columns
    ts._frame.iloc[:, 2:4.4].columns
#    ts = aunps_glass()
    print ts.ix[1505.0:1500.0]
    #ts.loc[:, 50.5, 520.0]
    ##area = ts.area()
    ##tf=ts[ts.columns[-1]]
Example #4
0
    #ts=TimeSpectra(abs(np.random.randn(300,30)),
    ##                   columns=testdates,
    #index=spec,
    #name='ts1')

    #print ts.list_varunits()
    #print ts.list_specunits()

    ###t2=TimeSpectra(abs(np.random.randn(300,30)),
    ###columns=testdates2,
    ###index=spec,
    ###name='ts2')

    import matplotlib.pyplot as plt
    from pyuvvis.plotting import areaplot
    ts = solvent_evap()
    ts = ts.as_varunit('m')

    from pandas import DataFrame
    df = DataFrame(np.random.randn(50, 50), index=np.linspace(0, 50, 50))

    #    ts.nearby[900:]
    ts.nearby[[1200, 1400]]

    ts.iloc[:, 2:4.4].columns
    ts._frame.iloc[:, 2:4.4].columns
    #    ts = aunps_glass()
    print ts.ix[1505.0:1500.0]
    #ts.loc[:, 50.5, 520.0]
    ##area = ts.area()
    ##tf=ts[ts.columns[-1]]