Esempio n. 1
0
    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()
Esempio n. 2
0
    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()
Esempio n. 3
0
    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()