curve

Plotting surface and curve in 3D and a curve in xy-plane, all in the same plot

Plotting surface and curve in 3D and a curve in xy-plane, all in the same plot Question: To illustrate an optimization problem, I want all of this in the same 3D plot: A surface. A curve in the xy-plane. A curve/path on the surface which marks out the points on the surface that lies directly …

Total answers: 1

Get Evenly Spaced Points from a Curved Shape

Get Evenly Spaced Points from a Curved Shape Question: How may I take a shape that was created with more points at its curves and subdivide it so that the points are distributed more equally along the curve? In my research I thought that numpy‘s interp might be the right function to use, but I …

Total answers: 3

How to draw a patterned curve with Python

How to draw a patterned curve with Python Question: Let’s say I have a set of coordinates that when plotted looks like this: I can turn the dots into a smooth-ish line by simply drawing lines from adjacent pair of points: That one’s easy. However, I need to draw a line with a pattern because …

Total answers: 1