LaTeX Plotting from LaTeX: Easier than You Think

  • Thread starter Thread starter LostInSpace
  • Start date Start date
  • Tags Tags
    Latex Plotting
Click For Summary
Creating plots directly in LaTeX using a command like \plot{x^2+y^2+z^1=1} is not feasible. While there is no automatic method for generating plots within LaTeX, users can manually add points and lines, though this is time-consuming. A recommended approach is to use GNUplot to generate plots and output them in LaTeX format, which can then be included in documents using the \include{plot} command. A guide for this process is available on a personal webpage.
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
Theres 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:

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 9 ·
Replies
9
Views
6K