Esempio n. 1
0
            z.append(z10[i])
            z.append(z11[i])
            z.append(z21[i])
            z.append(z30[i])
            z.append(zrr[i])
            z.append(zpr[i])
            z.append(ztr[i])

            app.a.clear()
            app.a.plot(self.xt, self.yt, self.zt)
            app.a.plot(xtr, ytr, ztr)
            app.a.plot(x, y, z)
            app.a.set_xlabel("x")
            app.a.set_ylabel("y")
            app.a.set_zlabel("z")
            app.a.legend([
                "Trajektoria Zadana", "Trajektoria Realizowana", "Ramię Robota"
            ])
            app.f.canvas.draw()
            x = []
            y = []
            z = []
        pass


if __name__ == "__main__":
    root = Window.tk.Tk()
    gui = Window.GUI(root)
    back = Compute()
    root.mainloop()
import wx
import Window

app = wx.App(False)
frame = Window.GUI()
app.MainLoop()