Exemple #1
0
 def imag(self):
     """Use self.imag in a plot to plot only the imag part"""
     return PlotWrapperPartialReduce(self, RI='I')
def _imag_plot(self):
    """Use self.imag in a plot to plot only the imag part"""
    warnings.warn(
        "g.imag is deprecated. Use rather oplot(g, ...., mode = 'I') or oploti(g, ...)"
    )
    return PlotWrapperPartialReduce(self, RI='I')
Exemple #3
0
 def real(self):
     """Use self.real in a plot to plot only the real part"""
     return PlotWrapperPartialReduce(self, RI='R')
def _real_plot(self):
    """Use self.real in a plot to plot only the real part"""
    warnings.warn(
        "g.real is deprecated. Use rather oplot(g, ...., mode = 'R') or oplotr(g, ...)"
    )
    return PlotWrapperPartialReduce(self, RI='R')