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