Plotting implicit equations in 3d

前端 未结 8 669
遇见更好的自我
遇见更好的自我 2020-12-02 07:04

I\'d like to plot implicit equation F(x,y,z) = 0 in 3D. Is it possible in Matplotlib?

8条回答
  •  Happy的楠姐
    2020-12-02 07:41

    Matplotlib expects a series of points; it will do the plotting if you can figure out how to render your equation.

    Referring to Is it possible to plot implicit equations using Matplotlib? Mike Graham's answer suggests using scipy.optimize to numerically explore the implicit function.

    There is an interesting gallery at http://xrt.wikidot.com/gallery:implicit showing a variety of raytraced implicit functions - if your equation matches one of these, it might give you a better idea what you are looking at.

    Failing that, if you care to share the actual equation, maybe someone can suggest an easier approach.

提交回复
热议问题