예제 #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()
예제 #2
0
파일: snuffling.py 프로젝트: trokia/pyrocko
    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()
예제 #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()