БЛОГ

May 30, 2022

How I make beautiful GRAPHS and PLOTS using LaTeX

Posted by in categories: information science, life extension, mathematics

Andrew Lincoln, your boss?

Vanessa YelenaYour boss is deathist cringe. Let’s see if it stays that way when he’s getting old…

1 Reply.

View 5 more comments.

Jose Ruben Rodriguez Fuentes shared a link.


My favorite LaTeX editor is Overleaf: ►https://www.overleaf.com?utm_source=yt&utm_medium=link&utm_campaign=im22tb My thanks to Overleaf for sponsoring today’s video!

Check out the previous videos in my LaTeX playlist:
https://www.youtube.com/playlist?list=PLHXZ9OQGMqxcWWkx2DMnQmj5os2X5ZR73

I make most of my graph and plots inside of LaTeX using a package called pgfplots. LaTeX is a type setting language and I like using it for graphs specifically because I can control all aspects of my graphs very precisely, with formatting native and easily adjustable with the rest of my document, with syntax similar to the syntax of the rest of LaTeX that I use all the time, and best of all it is free and will remain readily available. In this video we will see how to do 2D graphs, scatter plots, bar charts, 3D surface plots and 3D line plots, as well as how to format all aspects of our plots and axes.

0:00 Why I use LaTeX and pgfplots for plots and graphs.
1:17 Why I use Overleaf as my LaTeX editor.
2:00 The simplest 2D plot.
3:57 Adjusting the preamble.
4:49 Customizing plot color, style, marks, samples.
6:25 Adjusting axis bounds, placement, labels and title.
9:04 Plot domain.
9:45 2nd example: ticks, tick labels, grid lines.
13:51 Adding text nodes.
15:18 3rd example: Scatter plot with imported data.
18:38 4th example: color coded scatter plot.
20:16 5th example: stacked bar chart.
21:23 Version history in overleaf.
22:00 6th example: 3D surface and mesh plots.
25:47 7th example: 3D curve plot.

The full documention for pgfplots (it’s long!) is here: https://www.iro.umontreal.ca/~simardr/pgfplots.pdf.

Check out my MATH MERCH line in collaboration with Beautiful Equations.
https://beautifulequations.net/pages/trefor.

COURSE PLAYLISTS:
►DISCRETE MATH: https://www.youtube.com/playlist?list=PLHXZ9OQGMqxersk8fUxiUMSIx0DBqsKZS
►LINEAR ALGEBRA: https://www.youtube.com/playlist?list=PLHXZ9OQGMqxfUl0tcqPNTJsb7R6BqSLo6
►CALCULUS I: https://www.youtube.com/playlist?list=PLHXZ9OQGMqxfT9RMcReZ4WcoVILP4k6-m.
► CALCULUS II: https://www.youtube.com/playlist?list=PLHXZ9OQGMqxc4ySKTIW19TLrT91Ik9M4n.
►MULTIVARIABLE CALCULUS (Calc III): https://www.youtube.com/playlist?list=PLHXZ9OQGMqxc_CvEy7xBKRQr6I214QJcd.
►VECTOR CALCULUS (Calc IV) https://www.youtube.com/playlist?list=PLHXZ9OQGMqxfW0GMqeUE1bLKaYor6kbHa.
►DIFFERENTIAL EQUATIONS: https://www.youtube.com/playlist?list=PLHXZ9OQGMqxde-SlgmWlCmNHroIWtujBw.
►LAPLACE TRANSFORM: https://www.youtube.com/playlist?list=PLHXZ9OQGMqxcJXnLr08cyNaup4RDsbAl1
►GAME THEORY: https://www.youtube.com/playlist?list=PLHXZ9OQGMqxdzD8KpTHz6_gsw9pPxRFlX

Comments are closed.