Skip to content
Advertisement

Tag: contour

Drawing 2D and 3D contour in the same plot in python

Is it possible to draw 2D and 3D contour plot like this in python. Sorry I couldn’t provide much detail on the plot in terms of mathematical equations and all. Answer Use plot_surface along with contour to project the contour. It is not limited to the Z plane; you can do this to the X and Y planes as well.

Non overlapping random shapes on 2D plane

Objective: I want to create random non-overlapping irregular rounded shapes (contours) on a 2D plane, similar to a sandstone microstructure as shown below, to perform an oil flooding experiment using computer vision. Approach: I have previously done a similar thing but with circular shapes instead of random shapes. The result is as below. Also, I am aware of the programming

Advertisement