Rotate tetrahedron around coordinate axis

Very simple, but inefficient and unscalable rotation of tetrahedron about y-axis with no hidden line removal. References: plot and some concepts: “Python Graphics – A Reference for Creating 2D and 3D Images”, B.J. Korites. transform matrices: https://gist.github.com/jaseg/ef83d89b39ae69fad07a deleting lines from plot: from: https://sourceforge.net/p/matplotlib/mailman/message/9334388/ Tetrahedron is constructed with four points (vertices) and six lines (edges). The …

Delete line from matplotlib.pyplot

Two of many ways to do this: delete all lines delete one line using the line instance Delete all lines Import needed modules (numpy is only used to generate data): Generate dummy data and plot: Creates this plot: Get current instance of current axes: Loop through all lines and delete them: You may think that …

Design a site like this with WordPress.com
Get started