Plotting 3D surfaces directly in LaTeX with commands

  • Context: LaTeX 
  • Thread starter Thread starter LostInSpace
  • Start date Start date
  • Tags Tags
    Latex Plotting
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 8K views
LostInSpace
Messages
21
Reaction score
0
Hi! Is it possible to do a plot directly from LaTeX, ie using a tex command? It would be nice to do something like \plot{x^2+y^2+z^1=1} instead of plotting it in maple, exporting it to PostScript, opening and editing in illustrator, exporting to PDF and then include it in the file...

Thanks on advance!
 
Physics news on Phys.org
there's no way to do it automatically. You COULD add all the points and lines one by one, but that would be a waste of time.

JMD
 
The way I do it (in Linux) is by plotting the whole thing in GNUplot and making the output in LaTeX-code... This way you can include it by using

\include{plot}

I have put a guide to it on my webpage

http://www.imada.sdu.dk/~jarnhus/pspdf/tutorial.ps
 
Last edited by a moderator: