I'm studying the application of elliptic curves in crpytographie and I found a lot of pretty good looking plots of elliptic curves on tori:

Some of these examples can be found here and here. I tried to create these images using SageMath but I failed miserably. A torus can be created with this code:
sage: from sage.plot.plot3d.shapes import Torus
sage: Torus(1, .7, color='red', opacity=.5, grid = true).show(aspect_ratio=1)
The problem: I have no idea, how to get a grid structure on the torus and I have no idea how to get points/functions on the torus. Can someone help me?