Technical requirements
This chapter’s examples are at https://tikz.org/chapter-13. On GitHub, they are at https://github.com/PacktPublishing/LaTeX-graphics-with-TikZ/tree/main/13-plotting.
The pgfplots
package is crucial here and must be installed in your LaTeX distribution. pgfplots
is built on the pgf/TikZ packages, so you must have it installed and loaded in your document. If you don’t load pgf/TikZ explicitly, pgfplots
will load it automatically. If you use TikZ.org, Overleaf, or TeXlive.net, pgfplots
is already included. We will also use the pgfplots
libraries colormaps
, fillbetween
, and polar
, which are bundled with pgfplots
.