def __init__(self, name=None, controller=False): super(Polar, self).__init__() if backend == "visvis": self.graph = VisPolar(self) else: self.graph = MplCanvas(self) self.layout = QtGui.QHBoxLayout() self.layout.addWidget(self.graph) self.setLayout(self.layout)
def __init__(self, name=None, controller=False): super(Polar, self).__init__() if backend == "visvis": self.graph = VisPolar(self) else: self.graph = MplCanvas(self) self.layout = QtGui.QHBoxLayout() self.layout.addWidget(self.graph) self.setLayout(self.layout)
class Polar(QtGui.QWidget): def __init__(self, name=None, controller=False): super(Polar, self).__init__() if backend == "visvis": self.graph = VisPolar(self) else: self.graph = MplCanvas(self) self.layout = QtGui.QHBoxLayout() self.layout.addWidget(self.graph) self.setLayout(self.layout) def add_line(self, name, color): self.graph.add_line(name, color) def add_point(self, name, point): self.graph.add_point(name, point) def set_lims(self, theta, range): self.graph.set_lims(theta, range) # def update(self, data, config): def update(self): self.graph.update_plot()
class Polar(QtGui.QWidget): def __init__(self, name=None, controller=False): super(Polar, self).__init__() if backend == "visvis": self.graph = VisPolar(self) else: self.graph = MplCanvas(self) self.layout = QtGui.QHBoxLayout() self.layout.addWidget(self.graph) self.setLayout(self.layout) def add_line(self, name, color): self.graph.add_line(name, color) def add_point(self, name, point): self.graph.add_point(name, point) def set_lims(self, theta, range): self.graph.set_lims(theta, range) # def update(self, data, config): def update(self): self.graph.update_plot()