Home > Blockchain >  Drawing 2D and 3D contour in the same plot in python
Drawing 2D and 3D contour in the same plot in python

Time:01-03

Is it possible to draw 2D and 3D contour plot like this in python.

2d and 3d contours combined

Sorry I couldn't provide much detail on the plot in terms of mathematical equations and all.

CodePudding user response:

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.

There is an example in the official documentation of Matplotlib: enter image description here

  • Related