This question already has an answer here:

I am making some notes on differential geometry and topology lecture. As I know in LaTeX we can draw some very nice images. But I was not able to find any examples on surfaces, which I could use. Is it possible to make this kind of plots?

enter image description here

marked as duplicate by percusse tikz-pgf Aug 12 '16 at 14:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.