How to Create Graphs and Figures in LaTex Documents.

  • Context: LaTeX 
  • Thread starter Thread starter V0ODO0CH1LD
  • Start date Start date
  • Tags Tags
    Graphs Latex
Click For Summary
SUMMARY

This discussion focuses on creating graphs and figures in LaTeX documents, emphasizing that while LaTeX can import images, it is not inherently designed for generating graphics. Users can utilize tools such as PSTricks and MetaPost for basic figures, but these are not beginner-friendly. For more straightforward and modifiable graphics, alternatives like Gnuplot and MATLAB are recommended. The consensus is that creating graphics externally and importing them into LaTeX is the most efficient approach.

PREREQUISITES
  • Familiarity with LaTeX document preparation system
  • Basic understanding of PSTricks and MetaPost for graphics
  • Knowledge of Gnuplot or MATLAB for generating figures
  • Experience with image importing in LaTeX
NEXT STEPS
  • Explore the capabilities of PSTricks for basic figure creation
  • Learn how to use MetaPost for generating diagrams
  • Research Gnuplot for automated graph generation
  • Investigate MATLAB's integration with LaTeX for figure inclusion
USEFUL FOR

This discussion is beneficial for LaTeX users, graphic designers, and researchers looking to create and integrate simple figures into their documents efficiently.

V0ODO0CH1LD
Messages
278
Reaction score
0
I am learning LaTex and I was wondering if there's a way to create graphs and figures with it. Even if it's not as simple as just typing graph sin(x) somewhere.

I've been reading online about it and I think you actually can't, but then again I see documents like these (http://ocw.mit.edu/courses/mathemat...ble-calculus-fall-2006/lecture-notes/lec1.pdf) all the time and I wonder how are the figures integrated with the document. Assuming that document was created with LaTex, otherwise what was it created with?

I know for a fact you can actually import images into documents, but that is too definitive. I want something that I can change later with ease. I am not looking for complex 3D graphs like the ones you would get with MATLAB or mathematica. Just simple figures like the ones in the example above.
 
Physics news on Phys.org
V0ODO0CH1LD said:
Assuming that document was created with LaTex, otherwise what was it created with?
Just because the document was created with LaTeX (and it almost certainly was; it has that look and feel) does not mean the graphics were created with LaTeX/TeX.

I know for a fact you can actually import images into documents, but that is too definitive. I want something that I can change later with ease.
Graphics is not LaTeX strong suit, even with pstricks. Incorporating graphics developed elsewhere is something LaTeX does quite nicely. So create your graphics elsewhere. I tend to create my graphics with gnuplot or Matlab. Easy to modify, easy to understand, very easy to automate with a makefile. Use a tool that works well with the problem at hand. Using a hammer when what you need is a screwdriver is a bad idea.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K