tikz.dev / PGFplots Manual

Manual for Package pgfplots
2D/3D Plots in LA, Version 1.18.1
http://sourceforge.net/projects/pgfplots

Related Libraries

\(\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 {\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}}}\)

5.3Colormaps

An extension by Patrick Häcker

  • \usepgfplotslibrary{colormaps} % and plain

  • \usepgfplotslibrary[colormaps] % Cont

  • \usetikzlibrary{pgfplots.colormaps} % and plain

  • \usetikzlibrary[pgfplots.colormaps] % Cont

  • A small library providing a number of additional colormaps. Many of these colormaps originate from the free Matlab package “SC – powerful image rendering” of Oliver Woodford.

    The purpose of this library is to provide further colormaps to all users and to provide some of them which are similar to those used by Matlab®.

    • /pgfplots/colormap/autumn(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={autumn}{rgb255=(255,0,0) rgb255=(255,255,0)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/bled(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={bled}{rgb255=(0,0,0) rgb255=(43,43,0) rgb255=(0,85,0) rgb255=(0,128,128) rgb255=(0,0,170) rgb255=(213,0,213) rgb255=(255,0,0)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/bright(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={bright}{rgb255=(0,0,0) rgb255=(78,3,100) rgb255=(2,74,255) rgb255=(255,21,181) rgb255=(255,113,26) rgb255=(147,213,114) rgb255=(230,255,0) rgb255=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/bone(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={bone}{[1cm]rgb255(0cm)=(0,0,0) rgb255(3cm)=(84,84,116) rgb255(6cm)=(167,199,199) rgb255(8cm)=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/cold(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={cold}{rgb255=(0,0,0) rgb255=(0,0,255) rgb255=(0,255,255) rgb255=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/copper(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={copper}{[1cm]rgb255(0cm)=(0,0,0) rgb255(4cm)=(255,159,101) rgb255(5cm)=(255,199,127)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/copper2(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={copper2}{rgb255=(0,0,0) rgb255=(68,62,63) rgb255=(170,112,95) rgb255=(207,194,138) rgb255=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/earth(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={earth}{rgb255=(0,0,0) rgb255=(0,28,15) rgb255=(42,39,6) rgb255=(28,73,33) rgb255=(67,85,24) rgb255=(68,112,46) rgb255=(81,129,83) rgb255=(124,137,87) rgb255=(153,147,122) rgb255=(145,173,164) rgb255=(144,202,180) rgb255=(171,220,177) rgb255=(218,229,168) rgb255=(255,235,199) rgb255=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/hot2(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={hot2}{[1cm]rgb255(0cm)=(0,0,0) rgb255(3cm)=(255,0,0) rgb255(6cm)=(255,255,0) rgb255(8cm)=(255,255,255)} }

      Note that this particular choice ships directly with pgfplots, you do not need to load the colormaps library for this value.

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/hsv(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={hsv}{rgb255=(255,0,0) rgb255=(255,255,0) rgb255=(0,255,0) rgb255=(0,255,255) rgb255=(0,0,255) rgb255=(255,0,255) rgb255=(255,0,0)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/hsv2(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={hsv2}{rgb255=(0,0,0) rgb255=(128,0,128) rgb255=(0,0,230) rgb255=(0,255,255) rgb255=(0,255,0) rgb255=(255,255,0) rgb255=(255,0,0)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/jet(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={jet}{rgb255(0cm)=(0,0,128) rgb255(1cm)=(0,0,255) rgb255(3cm)=(0,255,255) rgb255(5cm)=(255,255,0) rgb255(7cm)=(255,0,0) rgb255(8cm)=(128,0,0)} }

      Note that this particular choice ships directly with pgfplots, you do not need to load the colormaps library for this value.

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/pastel(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={pastel}{rgb255=(0,0,0) rgb255=(120,0,5) rgb255=(0,91,172) rgb255=(215,35,217) rgb255=(120,172,78) rgb255=(255,176,24) rgb255=(230,255,0) rgb255=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/pink(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={pink}{rgb255=(0,0,0) rgb255=(12,16,46) rgb255=(62,22,43) rgb255=(53,53,65) rgb255=(79,72,58) rgb255=(122,80,67) rgb255=(147,91,102) rgb255=(147,115,140) rgb255=(144,145,154) rgb255=(173,163,146) rgb255=(216,171,149) rgb255=(250,179,179) rgb255=(255,198,227) rgb255=(246,229,255) rgb255=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/sepia(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={sepia}{rgb255(0cm)=(0,0,0) rgb255(1cm)=(26,13,0) rgb255(18cm)=(255,230,204) rgb255(20cm)=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/spring(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={spring}{rgb255=(255,0,255) rgb255=(255,255,0)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/summer(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={summer}{rgb255=(0,128,102) rgb255=(255,255,102)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/temp(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={temp}{rgb255=(36,0,217) rgb255=(25,29,247) rgb255=(41,87,255) rgb255=(61,135,255) rgb255=(87,176,255) rgb255=(117,211,255) rgb255=(153,235,255) rgb255=(189,249,255) rgb255=(235,255,255) rgb255=(255,255,235) rgb255=(255,242,189) rgb255=(255,214,153) rgb255=(255,172,117) rgb255=(255,120,87) rgb255=(255,61,61) rgb255=(247,40,54) rgb255=(217,22,48) rgb255=(166,0,33)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/thermal(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={thermal}{rgb255=(0,0,0) rgb255=(77,0,179) rgb255=(255,51,0) rgb255=(255,255,0) rgb255=(255,255,255)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/winter(style, no value)

    • A style which is equivalent to

      \pgfplotsset{ /pgfplots/colormap={winter}{rgb255=(0,0,255) rgb255=(0,255,128)} }

      This colormap is similar to one shipped with Matlab® under a similar name.

    • /pgfplots/colormap/viridis high res(style, no value)

    • A style which installs the colormap “viridis” which has been defined by Stéfan van der Walt and Nathaniel Smith for Matplotlib. It is designated to be the default colormap for Matplotlib starting with version \(2.0\) and is released under the CC085. This is the original suggestion as released by the authors.

      Please refer to http://bids.github.io/colormap/ for details.

      \pgfplotsset{ colormap name=viridis, }