Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In a paper I am in the process of writing in LaTeX, I need to draw and incorporate some diagrams of hyperbolic surfaces in my LaTeX document. Is there any software I can use to draw hyperbolic surfaces, either closed, or with boundaries or punctures ? Are there any such freely downloadable softwares that I can use to draw such diagrams ? Please let me know if you know one. I apologize if this is off-topic. Thank you !

share|improve this question
1  
Hi TeXTex, Welcome to TeX.SE! It's a reasonable question- can you give an example of such a surface? Presumably it'll be in the form f(x,y)=....? If so, either tikz or PStricks will almost certainly do the job. –  cmhughes May 3 '12 at 16:56
1  
add comment

1 Answer

When you are writing in LaTeX, basically there is a package for everything. Especially for plotting there is the beautiful pgfplots package: http://pgfplots.sourceforge.net/

Here's an example:

\begin{figure}[h!t]
\centering
%%% Declare tikspicture enviroment %%%
\begin{tikzpicture}
    %%% Declare axes %%%
    \begin{axis}[axis background/.style={fill=blue!10}]
    %%% Declare 3D surface, work on samples to adjust the quality %%%
    \addplot3[surf,domain=0:360,samples=40]
        {sin(x)*sin(y)};
    \end{axis}
\end{tikzpicture}
\end{figure}

Which gives as result: enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.