Ejemplo n.º 1
0
class Surface(QtGui.QWidget):
    def __init__(self, name=None, controller=False):
        super(Surface, self).__init__()
        self.layout = QtGui.QHBoxLayout()

        # if backend == "visvis":
        self.graph = VisSurface(self)
        # else:
        #   self.graph = MplCanvas(self, "surface")

        self.layout.addWidget(self.graph)
        self.setLayout(self.layout)

    def set_lims(self, xlim, ylim, zlim):
        self.graph.set_lims(xlim, ylim, zlim)

    def set_xymesh(self, x, y):
        self.graph.set_xymesh(x, y)

    def set_boundary(self, x_r, y_r, z_r):
        self.graph.set_boundary(x_r, y_r, z_r)

    def update(self, data, config):
        self.graph.set_data(data[-1])
        self.graph.update_plot()
Ejemplo n.º 2
0
class Surface(QtGui.QWidget):

  def __init__(self, name=None, controller=False):
    super(Surface, self).__init__()
    self.layout = QtGui.QHBoxLayout()

    # if backend == "visvis":
    self.graph = VisSurface(self)
    # else:
    #   self.graph = MplCanvas(self, "surface")

    self.layout.addWidget(self.graph)
    self.setLayout(self.layout)

  def set_lims(self, xlim, ylim, zlim):
    self.graph.set_lims(xlim, ylim, zlim)

  def set_xymesh(self, x, y):
    self.graph.set_xymesh(x, y)

  def set_boundary(self, x_r, y_r, z_r):
    self.graph.set_boundary(x_r, y_r, z_r)

  def update(self, data, config):
    self.graph.set_data(data[-1])
    self.graph.update_plot()
Ejemplo n.º 3
0
    def __init__(self, name=None, controller=False):
        super(Surface, self).__init__()
        self.layout = QtGui.QHBoxLayout()

        # if backend == "visvis":
        self.graph = VisSurface(self)
        # else:
        #   self.graph = MplCanvas(self, "surface")

        self.layout.addWidget(self.graph)
        self.setLayout(self.layout)
Ejemplo n.º 4
0
  def __init__(self, name=None, controller=False):
    super(Surface, self).__init__()
    self.layout = QtGui.QHBoxLayout()

    # if backend == "visvis":
    self.graph = VisSurface(self)
    # else:
    #   self.graph = MplCanvas(self, "surface")

    self.layout.addWidget(self.graph)
    self.setLayout(self.layout)