arte/time_series/time_series.py
def plot_spectra(self, from_freq=None, to_freq=None,
                     segment_factor=None,
                     overplot=False,
                     label=None,
                     *args, **kwargs):
        '''Plot the PSD across specified series'''
        power = self.power(from_freq, to_freq,
                           segment_factor,
                           *args, **kwargs)
        freq = self.last_cutted_frequency()

        import matplotlib.pyplot as plt
        if not overplot:
            plt.cla()
            plt.clf()
        plt.plot(freq[1:], power[1:], label=label)
        plt.loglog()
        plt.xlabel('f [Hz]')
        plt.ylabel('psd [V^2]')
        if label is not None:
            plt.legend()
        return plt
Plot the PSD across specified series
Plot the PSD across specified series
Plot the PSD across specified series
def plot_spectra(self, from_freq=None, to_freq=None,
                     segment_factor=None,
                     overplot=False,
                     label=None,
                     *args, **kwargs):
        power = self.power(from_freq, to_freq,
                           segment_factor,
                           *args, **kwargs)
        freq = self.last_cutted_frequency()
        import matplotlib.pyplot as plt
        if not overplot:
            plt.cla()
            plt.clf()
        plt.plot(freq[1:], power[1:], label=label)
        plt.loglog()
        plt.xlabel('f [Hz]')
        plt.ylabel('psd [V^2]')
        if label is not None:
            plt.legend()
        return plt
def plot_spectra ( self , from_freq = None , to_freq = None , segment_factor = None , overplot = False , label = None , * args , ** kwargs ) : power = self . power ( from_freq , to_freq , segment_factor , * args , ** kwargs ) freq = self . last_cutted_frequency ( ) import matplotlib . pyplot as plt if not overplot : plt . cla ( ) plt . clf ( ) plt . plot ( freq [ 1 : ] , power [ 1 : ] , label = label ) plt . loglog ( ) plt . xlabel ( 'f [Hz]' ) plt . ylabel ( 'psd [V^2]' ) if label is not None : plt . legend ( ) return plt
Plot the PSD across specified series
Plot the PSD across specified series
'''Plot the PSD across specified series'''
self
from_freq
to_freq
segment_factor
overplot
label