Esempio n. 1
0
    def Plot(self, fignum=1, use_t=None, plotu=True, clear=True, \
             legend=None, legloc=None, xlabel=None, ylabel=None, \
             ylim=None, **kwargs):
        self.fignum = fignum
        if use_t is None:
            use_t = self.use_t
        if use_t:
            x = self.t
            if xlabel is None:
                xlabel = 'Time (sec)'
        else:
            x = self.n
            if xlabel is None:
                xlabel = 'ISR Counts'
        if ylabel is None:
            ylabel = 'Signal Amplitude (counts)'
        if plotu:
            plot_data = column_stack([self.u, self.v, self.y])
        else:
            plot_data = column_stack([self.v, self.y])

        pylab_util.plot_cols(x, plot_data, fi=fignum, \
                             leg=legend, clear=clear, ylim=ylim, \
                             legloc=legloc, \
                             xlabel=xlabel, **kwargs)
        pylab_util.set_ylabel(ylabel, fi=fignum)
Esempio n. 2
0
 def Plot(self, fi=1, clear=True):
     self.plot_data = column_stack([self.uvect, self.vvect, \
                                    self.yvect, self.avect])
     pmax = self.plot_data.max()
     pmin = self.plot_data.min()
     ylim = [pmin-5, pmax+5]
     pylab_util.plot_cols(self.nvect, self.plot_data, fi=fi, \
                          leg=self.legend, clear=clear, ylim=ylim)
     show()