☰
tikz.dev / PGFplots Manual

Manual for Package pgfplots
2D/3D Plots in LA, Version 1.18.3
https://github.com/pgf-tikz/pgfplots

Utilities and Basic Level Commands

\(\newcommand{\footnotename}{footnote}\) \(\def \LWRfootnote {1}\) \(\newcommand {\footnote }[2][\LWRfootnote ]{{}^{\mathrm {#1}}}\) \(\newcommand {\footnotemark }[1][\LWRfootnote ]{{}^{\mathrm {#1}}}\) \(\let \LWRorighspace \hspace \) \(\renewcommand {\hspace }{\ifstar \LWRorighspace \LWRorighspace }\) \(\newcommand {\TextOrMath }[2]{#2}\) \(\newcommand {\mathnormal }[1]{{#1}}\) \(\newcommand \ensuremath [1]{#1}\) \(\newcommand {\LWRframebox }[2][]{\fbox {#2}} \newcommand {\framebox }[1][]{\LWRframebox } \) \(\newcommand {\setlength }[2]{}\) \(\newcommand {\addtolength }[2]{}\) \(\newcommand {\setcounter }[2]{}\) \(\newcommand {\addtocounter }[2]{}\) \(\newcommand {\arabic }[1]{}\) \(\newcommand {\number }[1]{}\) \(\newcommand {\noalign }[1]{\text {#1}\notag \\}\) \(\newcommand {\cline }[1]{}\) \(\newcommand {\directlua }[1]{\text {(directlua)}}\) \(\newcommand {\luatexdirectlua }[1]{\text {(directlua)}}\) \(\newcommand {\protect }{}\) \(\def \LWRabsorbnumber #1 {}\) \(\def \LWRabsorbquotenumber "#1 {}\) \(\newcommand {\LWRabsorboption }[1][]{}\) \(\newcommand {\LWRabsorbtwooptions }[1][]{\LWRabsorboption }\) \(\def \mathchar {\ifnextchar "\LWRabsorbquotenumber \LWRabsorbnumber }\) \(\def \mathcode #1={\mathchar }\) \(\let \delcode \mathcode \) \(\let \delimiter \mathchar \) \(\def \oe {\unicode {x0153}}\) \(\def \OE {\unicode {x0152}}\) \(\def \ae {\unicode {x00E6}}\) \(\def \AE {\unicode {x00C6}}\) \(\def \aa {\unicode {x00E5}}\) \(\def \AA {\unicode {x00C5}}\) \(\def \o {\unicode {x00F8}}\) \(\def \O {\unicode {x00D8}}\) \(\def \l {\unicode {x0142}}\) \(\def \L {\unicode {x0141}}\) \(\def \ss {\unicode {x00DF}}\) \(\def \SS {\unicode {x1E9E}}\) \(\def \dag {\unicode {x2020}}\) \(\def \ddag {\unicode {x2021}}\) \(\def \P {\unicode {x00B6}}\) \(\def \copyright {\unicode {x00A9}}\) \(\def \pounds {\unicode {x00A3}}\) \(\let \LWRref \ref \) \(\renewcommand {\ref }{\ifstar \LWRref \LWRref }\) \( \newcommand {\multicolumn }[3]{#3}\) \(\require {textcomp}\) \( \newcommand {\meta }[1]{\langle \textit {#1}\rangle } \) \(\newcommand {\toprule }[1][]{\hline }\) \(\let \midrule \toprule \) \(\let \bottomrule \toprule \) \(\def \LWRbooktabscmidruleparen (#1)#2{}\) \(\newcommand {\LWRbooktabscmidrulenoparen }[1]{}\) \(\newcommand {\cmidrule }[1][]{\ifnextchar (\LWRbooktabscmidruleparen \LWRbooktabscmidrulenoparen }\) \(\newcommand {\morecmidrules }{}\) \(\newcommand {\specialrule }[3]{\hline }\) \(\newcommand {\addlinespace }[1][]{}\) \(\require {colortbl}\) \(\let \LWRorigcolumncolor \columncolor \) \(\renewcommand {\columncolor }[2][named]{\LWRorigcolumncolor [#1]{#2}\LWRabsorbtwooptions }\) \(\let \LWRorigrowcolor \rowcolor \) \(\renewcommand {\rowcolor }[2][named]{\LWRorigrowcolor [#1]{#2}\LWRabsorbtwooptions }\) \(\let \LWRorigcellcolor \cellcolor \) \(\renewcommand {\cellcolor }[2][named]{\LWRorigcellcolor [#1]{#2}\LWRabsorbtwooptions }\) \(\newcommand {\intertext }[1]{\text {#1}\notag \\}\) \(\let \Hat \hat \) \(\let \Check \check \) \(\let \Tilde \tilde \) \(\let \Acute \acute \) \(\let \Grave \grave \) \(\let \Dot \dot \) \(\let \Ddot \ddot \) \(\let \Breve \breve \) \(\let \Bar \bar \) \(\let \Vec \vec \) \(\newcommand {\nicefrac }[3][]{\mathinner {{}^{#2}\!/\!_{#3}}}\)

9.7Layer Access

  • \pgfplotsonlayer{(math image)layer name(math image)}

  • A low-level command which will check if the current axis has layer support activated and, if so, calls \pgfonlayer{(math image)layer name(math image)}.

    There must be a \endpgfplotsonlayer to delimit the environment.

  • \pgfonlayer{(math image)layer name(math image)}

  • A low-level command of pgf which will collect everything until the matching \endpgfonlayer into layer (math image)layer name(math image).

    The (math image)layer name(math image) must be active, i.e. it must be part of the layer names of set layers.

    The only special case is if you call \pgfdeclarelayer{discard} somewhere: this special layer has a “magical name” which serves as /dev/null if it is enabled using \pgfonlayer{discard}: it does not need to be active and everything assigned to this layer will be thrown away if it is not part of the layer name configuration.

    There must be a \endpgfonlayer to delimit the environment.

  • \pgfsetlayers{(math image)layer list(math image)}

  • This is a low-level command of pgf. At the time of this writing, it is the only way to tell pgf which layers it shall use for the current/next picture. It is used implicitly by set layers.

References

  • [1]  C. Feuersänger. PgfplotsTable package – Loading, rounding and formatting tables in . Available as separate package \usepackage{pgfplotstable}, as part of pgfplots, October 20, 2026.

  • [2]  C. Feuersänger. Programming in and Library Functions from pgf and pgfplots. Available as part of pgfplots, TeX-programming-notes.pdf, October 20, 2026.

  • [3]  U. Kern. Extending ’s color facilities: the xcolor package.

  • [4]  D. Knuth. Computers & Typesetting. Addison Wesley, 2000.

  • [5]  N. O. Office. Live access to the national virtual ocean data system (nvods), bathymetry/topography 5min resolution. http://ferret.pmel.noaa.gov/NVODS/UI.vm, 2016.

  • [6]  D. P. Story. The Acro eDucation Bundle. http://www.ctan.org/pkg/acrotex. Sub packages insdljs and eforms are required for the clickable library.

  • [7]  T. Tantau. TikZ and pgf manual. https://github.com/pgf-tikz/pgf. \(v.\ge 2.00\).

  • [8]  K. van Zonneveld. PhP to JavaScript conversion project (GPL). http://kevin.vanzonneveld.net/techblog/article/phpjs_licensing.

  • [9]  J. Wright and C. Feuersänger. Implementing key–val input: an introduction. TUGboat, 30(1):110–122, 2009.