def pylab(self, name=None): if name is None: self._iplot += 1 name = 'Plot %i (%s)' % (self._iplot, self.get_name()) pylab = PyLab() self._panel_parent.add_tab(name, pylab) return pylab.gca()
def pylab(self, name=None, get='axes'): if name is None: self._iplot += 1 name = 'Plot %i (%s)' % (self._iplot, self.get_name()) pylab = PyLab() self._panel_parent.add_tab(name, pylab) if get == 'axes': return pylab.gca() elif get == 'figure': return pylab.gcf()