question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I plot a 3D lemniscate ?

See original GitHub issue

Please, I want to know how can I plot that parametric surface

I mean something like this: cassini4b I saw that post http://lemur.cmp.uea.ac.uk/Research/ivis/backup/PhD/Latest/Paul%20Bourke%20Screenshots/Eggs,%20melons,%20and%20peanuts%20-%20Cassini%20Oval.htm to guide me, but I can´t understand how can I use that info. to create the parametric surface using ParametricSurface(lambda u, v: np.array([ # The parameters of that surface]))

I’ll be very greatful if you can help me

I was trying with:


        lemnisBer = ParametricSurface(
                lambda u, v: np.array([
                   np.sin(u)/(1+np.cos(u)**2),
                   v,
                   (np.sin(u)*np.cos(u))/(1+np.cos(u)**2)
                ]), v_min=0, v_max=TAU, u_min=TAU, u_max=TAU, checkerboard_colors=[YELLOW_E, YELLOW_E],
                resolution=(15, 32)).scale(1.5)

But that doesn´t graph a peanut. If you can provide me a guide or something else I´ll be gratefull

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Level-314commented, May 27, 2020

Yes, you have my permission to use the code. Good luck with your project!

1reaction
BETAPANDERETAcommented, May 27, 2020

Oh I’m gonna prove your code! Can I use that to my project ? I give you the credits at last of my proyect of course, if you give me permission to use that.

Thanks so much for you explanation , I really appreciate!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Graphing Lemniscates - GeoGebra
Graph a Lemniscate of the form by first graphing the rectangular graph . You can drag point with the mouse and the points...
Read more >
How to plot a lemniscate on a surface
The most convenient way is to start from the parametric equations of the lemniscate of Bernoulli, instead of insisting on the implicit ...
Read more >
Lemniscate -- from Wolfram MathWorld
The lemniscate, also called the lemniscate of Bernoulli, is a polar curve defined as the locus of points such that the the product...
Read more >
Need Help Plotting 3D Lemniscate of Bernoulli in Mathematica
Hi I am trying to plot a three dimensional Lemniscate of Bernoulli in Mathematica. So far I have only been able to make...
Read more >
Pyplot lemniscate - python - Stack Overflow
i wonder if someone knows a more elegant way to plot a lemnicate in python (in terms of formula or other nice ideas...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found