Category : coordinates

I am trying to display a triangle with Matplotlib with the following Coordinates. x = (0,0,0) y = (10,0,0) z = (10,0,10) import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111, projection=’3d’) ax.plot_trisurf(x, y, z,color=’grey’,linewidth=1, antialiased=True) plt.show() After running the code, i get following Error: x and y arrays must consist of at least ..

Read more

import time from tkinter import * class Template: def __init__(self): self.window = Tk() self.window.title("2D Display") self.canvas = self.canvas_display() self.line1 = self.line_creation(650,350,500 * .3, 1000) self.line3 = self.line_movement_creation(0, 350,2000, 350) self.horizon = self.canvas.create_line(0,350,2000, 350, width = 2, fill ="white") self.speedx = 0 # x movement of line3 self.speedy = 9 # y movement of line3 self.active ..

Read more