© B.J. Korites 2018
B.J. KoritesPython Graphicshttps://doi.org/10.1007/978-1-4842-3378-8_9

9. 3D Data Plotting

B. J. Korites1 
(1)
Duxbury, Massachusetts, USA
 

Extrapolating the techniques developed in Chapter 8, which were used to produce two dimensional splines, to three dimensions is easy: all you need to do is add a few lines to the program. These lines are the bold highlighted lines in Listing 9-1, particularly those in function plotspline() from lines 89 to 161. They introduce the z coordinate in a syntax that is essentially the same as used for the x and y coordinates.

Control of Listing 9-1 begins at line 175. The first set of data points are defined by lists x,y, and z in lines 175-177. These have been nullified with the # symbol but are left ...

Get Python Graphics: A Reference for Creating 2D and 3D Images now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.