def plot(self, *args, **kwargs): o = BookViewer.plot(self, *args, **kwargs) if o is None: return if o.getvar('y').dtype.name.startswith('complex'): convert_figobj(o) self.add_video_obj(o) return o
def plot(self, *args, **kwargs): o = BookViewer.plot(self, *args, **kwargs) if o is None: return y = args[1] if y.dtype.name.startswith('complex'): o.setvar('complex_y', y) convert_figobj(o) self.add_video_obj(o) return o