Plotting from LaTeX: Easier than You Think

  • Context: LaTeX 
  • Thread starter Thread starter LostInSpace
  • Start date Start date
  • Tags Tags
    Latex Plotting
Click For Summary
SUMMARY

Plotting directly from LaTeX using commands is not feasible for complex functions. Users typically rely on external tools like GNUplot to generate plots, which can then be integrated into LaTeX documents. The recommended method involves creating plots in GNUplot and exporting them as LaTeX code, allowing for seamless inclusion with the command \include{plot}. A detailed guide on this process is available at the provided URL.

PREREQUISITES
  • Familiarity with LaTeX document preparation
  • Basic understanding of GNUplot for generating plots
  • Knowledge of exporting files in LaTeX format
  • Experience with including external files in LaTeX documents
NEXT STEPS
  • Explore GNUplot documentation for advanced plotting techniques
  • Learn how to export plots as LaTeX code from GNUplot
  • Research LaTeX commands for including external files
  • Review tutorials on integrating plots into LaTeX documents
USEFUL FOR

LaTeX users, researchers, and academics who need to incorporate plots into their documents efficiently, particularly those familiar with GNUplot.

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:

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
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 9 ·
Replies
9
Views
6K