| 1 |
%-------------------------------------------- |
| 2 |
% |
| 3 |
% Package pgfplots |
| 4 |
% |
| 5 |
% Provides a user-friendly interface to create function plots (normal |
| 6 |
% plots, semi-logplots and double-logplots). |
| 7 |
% |
| 8 |
% It is based on Till Tantau's PGF package. |
| 9 |
% |
| 10 |
% Copyright 2007-2013 by Christian Feuersänger. |
| 11 |
% |
| 12 |
% This program is free software: you can redistribute it and/or modify |
| 13 |
% it under the terms of the GNU General Public License as published by |
| 14 |
% the Free Software Foundation, either version 3 of the License, or |
| 15 |
% (at your option) any later version. |
| 16 |
% |
| 17 |
% This program is distributed in the hope that it will be useful, |
| 18 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 |
% GNU General Public License for more details. |
| 21 |
% |
| 22 |
% You should have received a copy of the GNU General Public License |
| 23 |
% along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 |
% |
| 25 |
%-------------------------------------------- |
| 26 |
|
| 27 |
\edef\pgfplots@oldcatcodesemicolon{\the\catcode`\;}% |
| 28 |
\edef\pgfplots@oldcatcodedoublequote{\the\catcode`\"}% |
| 29 |
\catcode`\;=12 |
| 30 |
\catcode`\"=12 |
| 31 |
|
| 32 |
\input pgfplotscore.code.tex |
| 33 |
\input pgfplotslibrary.code.tex |
| 34 |
\input pgfplotsoldpgfsupp_loader.code.tex |
| 35 |
\input pgfplotsutil.code.tex |
| 36 |
\input pgfplotscolormap.code.tex |
| 37 |
\input pgfplotsstackedplots.code.tex |
| 38 |
\input pgfplotsplothandlers.code.tex |
| 39 |
\input pgfplots.scaling.code.tex |
| 40 |
\input pgfplotscoordprocessing.code.tex |
| 41 |
\input pgfplots.errorbars.code.tex |
| 42 |
\input pgfplots.markers.code.tex |
| 43 |
\input pgfplotsticks.code.tex |
| 44 |
\input pgfplots.paths.code.tex |
| 45 |
|
| 46 |
|
| 47 |
\usetikzlibrary{decorations,decorations.pathmorphing,decorations.pathreplacing} |
| 48 |
\usepgfplotslibrary{contourlua}% |
| 49 |
|
| 50 |
% FIXME: reduce number of variables! |
| 51 |
|
| 52 |
\newif\ifpgfplots@bb@isactive |
| 53 |
\newif\ifpgfplots@xislinear |
| 54 |
\newif\ifpgfplots@has@label@information |
| 55 |
\newif\ifpgfplots@yislinear |
| 56 |
\newif\ifpgfplots@zislinear |
| 57 |
\newif\ifpgfplots@reverse@legend |
| 58 |
\newif\ifpgfplots@transpose@legend |
| 59 |
\newif\ifpgfplots@allow@reversal@of@rel@axis@cs |
| 60 |
\newif\ifpgfplots@scanline@verbose |
| 61 |
\newif\ifpgfplots@plot@graphics@autoadjustaxis |
| 62 |
\newif\ifpgfplots@scaleuniformly@warning |
| 63 |
\newif\ifpgfplots@hide@obscured@xtick |
| 64 |
\newif\ifpgfplots@hide@obscured@ytick |
| 65 |
\newif\ifpgfplots@hide@obscured@ztick |
| 66 |
\newif\ifpgfplots@enable@tick@line@clipping |
| 67 |
\newcount\pgfplots@numplots |
| 68 |
\newdimen\pgfplots@xmin@reg |
| 69 |
\newdimen\pgfplots@xmax@reg |
| 70 |
\newdimen\pgfplots@ymin@reg |
| 71 |
\newdimen\pgfplots@ymax@reg |
| 72 |
\newdimen\pgfplots@zmin@reg |
| 73 |
\newdimen\pgfplots@zmax@reg |
| 74 |
\newif\ifpgfplots@warn@for@filter@discards |
| 75 |
\newif\ifpgfplots@isuniformtick |
| 76 |
\newif\ifpgfplotsplothandlermesh@patch@type@sampling |
| 77 |
\newif\ifpgfplots@clip@limits@compatmode |
| 78 |
\newif\ifpgfplots@clip@limits@x |
| 79 |
\newif\ifpgfplots@clip@limits@y |
| 80 |
\newif\ifpgfplots@clip@limits@z |
| 81 |
\newif\ifpgfplots@clip |
| 82 |
\newif\ifpgfplots@plot@coords@mathparser |
| 83 |
\pgfplots@plot@coords@mathparsertrue |
| 84 |
\newif\ifpgfplots@enlargelimits |
| 85 |
\newif\ifpgfplots@enlargelimits@respect@figure@size |
| 86 |
\pgfplots@enlargelimits@respect@figure@sizetrue |
| 87 |
\newif\ifpgfplots@enlargelimits@rel@thresh |
| 88 |
\newif\ifpgfplots@enlargelimits@auto |
| 89 |
\newif\ifpgfplots@tickshow |
| 90 |
\newif\ifpgfplots@scatterplotenabled |
| 91 |
\newif\ifpgfplots@xminorticks |
| 92 |
\newif\ifpgfplots@xmajorticks |
| 93 |
\newif\ifpgfplots@yminorticks |
| 94 |
\newif\ifpgfplots@ymajorticks |
| 95 |
\newif\ifpgfplots@zminorticks |
| 96 |
\newif\ifpgfplots@zmajorticks |
| 97 |
\newif\ifpgfplots@xminorgrids |
| 98 |
\newif\ifpgfplots@xmajorgrids |
| 99 |
\newif\ifpgfplots@yminorgrids |
| 100 |
\newif\ifpgfplots@ymajorgrids |
| 101 |
\newif\ifpgfplots@zminorgrids |
| 102 |
\newif\ifpgfplots@zmajorgrids |
| 103 |
\newif\ifpgfplots@clip@marker@paths |
| 104 |
\newif\ifpgfplots@axis@on@top |
| 105 |
\newif\ifpgfplots@separate@axis@lines |
| 106 |
\newif\ifpgfplots@identify@log@minor@tick@pos |
| 107 |
\newif\ifpgfplots@disablelogfilter@x |
| 108 |
\newif\ifpgfplots@disablelogfilter@y |
| 109 |
\newif\ifpgfplots@disablelogfilter@z |
| 110 |
\newif\ifpgfplots@disabledatascaling |
| 111 |
\newif\ifpgfplots@hide@x |
| 112 |
\newif\ifpgfplots@hide@y |
| 113 |
\newif\ifpgfplots@hide@z |
| 114 |
\newif\ifpgfplots@shownothingof@x |
| 115 |
\newif\ifpgfplots@shownothingof@y |
| 116 |
\newif\ifpgfplots@shownothingof@z |
| 117 |
\newif\ifpgfplots@is@old@list@format |
| 118 |
\newif\ifpgfplots@errorbars@enabled |
| 119 |
\newif\ifpgfplots@scale@only@axis |
| 120 |
\newif\ifpgfplots@xticklabel@interval |
| 121 |
\newif\ifpgfplots@yticklabel@interval |
| 122 |
\newif\ifpgfplots@zticklabel@interval |
| 123 |
\newif\ifpgfplots@stacked@reverse |
| 124 |
\newif\ifpgfplots@stacked@plus |
| 125 |
\newif\ifpgfplots@stacked@ignores@zero |
| 126 |
\newif\ifpgfplots@plot@file@skipfirst |
| 127 |
\newif\ifpgfplots@threedim |
| 128 |
\newif\ifpgfplots@curplot@threedim |
| 129 |
\newif\ifpgfplotsthreedim |
| 130 |
\newif\ifpgfplots@curplot@isirrelevant |
| 131 |
\newif\ifpgfplots@colorbar |
| 132 |
\newif\ifpgfplots@deprecated@anchors |
| 133 |
\newif\ifpgfplots@translategnuplot |
| 134 |
\pgfplots@translategnuplottrue |
| 135 |
\let\pgfnodepartimagebox=\pgfnodeparttextbox |
| 136 |
\newif\ifpgfplotsplothandlermesh@internaldepth |
| 137 |
\newif\ifpgfplotsplothandlermesh@hide@refined@edges |
| 138 |
\newif\ifpgfplots@has@cell@picture |
| 139 |
\newif\ifpgfplots@substitute@pgfpoint |
| 140 |
\newif\ifpgfplots@LUA@backend@supported |
| 141 |
\newif\ifpgfplots@threedim@log@sampling |
| 142 |
|
| 143 |
\newif\ifpgfplots@collect@firstplot@astick |
| 144 |
\newif\ifpgfplots@units@use |
| 145 |
|
| 146 |
\def\pgfplots@errorbars@xdirection{0}% pre-init, see below |
| 147 |
\def\pgfplots@errorbars@ydirection{0}% |
| 148 |
\def\pgfplots@errorbars@zdirection{0}% |
| 149 |
|
| 150 |
\def\axisdefaultwidth{240pt} |
| 151 |
\def\axisdefaultheight{207pt} |
| 152 |
|
| 153 |
\def\pgfplotsifaxisthreedim#1#2{\ifpgfplots@threedim #1\else #2\fi}% |
| 154 |
\def\pgfplotsifcurplotthreedim#1#2{\ifpgfplots@curplot@threedim #1\else #2\fi}% |
| 155 |
|
| 156 |
% Invokes '#2' if a cycle list named '#1' exists and '#3' if not. |
| 157 |
\long\def\pgfplotsifcyclelistexists#1#2#3{% |
| 158 |
\pgfutil@IfUndefined{pgfp@cyclist@\string#1@}{% |
| 159 |
\pgfkeysifdefined{/pgfplots/cycle list/\string#1/.@cmd}{% |
| 160 |
\pgfplotsthrow{cycle list instantiation needed}{#1}\pgfeov |
| 161 |
% note that we cannot instantiate it lazily at this point :-( |
| 162 |
}{}% |
| 163 |
#3% |
| 164 |
}{% |
| 165 |
#2% |
| 166 |
}% |
| 167 |
}% |
| 168 |
|
| 169 |
\def\pgfplots@label@upgrade@warning{% |
| 170 |
\ifpgfplots@threedim |
| 171 |
\pgfplotswarning{center lines upgrade required}\pgfeov% |
| 172 |
\global\let\pgfplots@label@upgrade@warning=\relax |
| 173 |
\fi |
| 174 |
}% |
| 175 |
|
| 176 |
% Creates a named plot cycle list. |
| 177 |
% |
| 178 |
% #1: the name of the final list. Can be used in 'cycle list name' |
| 179 |
% #2: the list entries. |
| 180 |
% It accepts the following formats: |
| 181 |
% \pgfplotscreateplotcyclelist{name}{[of colormap]}% |
| 182 |
% \pgfplotscreateplotcyclelist{name}{[of colormap=<colormap name>]}% |
| 183 |
% \pgfplotscreateplotcyclelist{name}{[colors of colormap={<list> of <colormap name>}]}% |
| 184 |
% \pgfplotscreateplotcyclelist{name}{[indices of colormap={<list> of <colormap name>}]}% |
| 185 |
% \pgfplotscreateplotcyclelist{name}{[* of colormap as it is also available inside of colormap definitions]} |
| 186 |
% \pgfplotscreateplotcyclelist{name}{comma-separated-list} |
| 187 |
% \pgfplotscreateplotcyclelist{name}{'\\'-separated list(requires the last item to be terminated by '\\')} |
| 188 |
\def\pgfplotscreateplotcyclelist#1#2{% |
| 189 |
\pgfplotscreateplotcyclelist@check@specials{#1}{#2}#2\pgfplots@EOI% |
| 190 |
}% |
| 191 |
|
| 192 |
\def\pgfplotscreateplotcyclelist@check@specials#1#2{% |
| 193 |
\pgfutil@ifnextchar[{% |
| 194 |
\pgfplotscreateplotcyclelist@check@specials@{#1}% |
| 195 |
}{% |
| 196 |
\pgfplotscreateplotcyclelist@check@specials@@{#1}{#2}% |
| 197 |
}% |
| 198 |
}% |
| 199 |
\def\pgfplotscreateplotcyclelist@check@specials@#1[#2]{% |
| 200 |
% the 'of colormap' feature uses the very same functionality as |
| 201 |
% the related functionality in colormap definitions. |
| 202 |
% We only replace two routines: |
| 203 |
% |
| 204 |
\begingroup |
| 205 |
\let\pgfplots@createcolormap@special@process@single@define=\pgfplots@createcolormap@special@process@single@define@CYCLE |
| 206 |
\let\pgfplots@createcolormap@special@process@list@separator=\pgfplots@createcolormap@special@process@list@separator@CYCLE |
| 207 |
\pgfplots@of@colormap@getresult{#2}% |
| 208 |
\global\let\pgfplots@glob@TMPa=\pgfplotsretval |
| 209 |
\endgroup |
| 210 |
% |
| 211 |
\t@pgfplots@tokb={#1}% |
| 212 |
\t@pgfplots@toka=\expandafter{\pgfplots@glob@TMPa}% |
| 213 |
\edef\pgfplots@loc@TMPa{\noexpand\pgfplotscreateplotcyclelist{\the\t@pgfplots@tokb}{\the\t@pgfplots@toka}}% |
| 214 |
%\message{#2->^^J \meaning\pgfplots@loc@TMPa^^J}% |
| 215 |
\pgfplots@loc@TMPa |
| 216 |
% |
| 217 |
% FIXME implement: |
| 218 |
%-------------------------------------------------- |
| 219 |
% \ifnum\pgfplots@glob@TMPb>\pgfkeysvalueof{/pgfplots/@cycle/max size} % |
| 220 |
% % cycle lists have quadratic runtime. Use small ones! |
| 221 |
% \pgfplotswarning{cycle list size limit reached}\pgfeov |
| 222 |
% \breakforeach |
| 223 |
% \fi |
| 224 |
%-------------------------------------------------- |
| 225 |
% |
| 226 |
\pgfutil@ifnextchar\pgfplots@EOI{% |
| 227 |
\pgfplots@gobble@until@EOI |
| 228 |
}{% |
| 229 |
\pgfplotscreateplotcyclelist@check@specials@gobble@error{#2}% |
| 230 |
}% |
| 231 |
}% |
| 232 |
|
| 233 |
\def\pgfplotscreateplotcyclelist@check@specials@gobble@error#1#2\pgfplots@EOI{% |
| 234 |
\t@pgfplots@tokb={[#1]}% |
| 235 |
\t@pgfplots@toka={#2}% |
| 236 |
\pgfplots@error{Encountered unexpected characters '\the\t@pgfplots@toka' after option '\the\t@pgfplots@tokb' in cycle list definition}% |
| 237 |
}% |
| 238 |
\def\pgfplotscreateplotcyclelist@check@specials@@#1#2#3\pgfplots@EOI{% |
| 239 |
\expandafter\pgfplots@assign@list\csname pgfp@cyclist@\string#1@\endcsname{#2}% |
| 240 |
} |
| 241 |
|
| 242 |
\pgfqkeys{/pgfplots/@cycle}{% |
| 243 |
max size/.initial=80, |
| 244 |
} |
| 245 |
|
| 246 |
\pgfplotscreateplotcyclelist{black white}{% |
| 247 |
every mark/.append style={fill=gray},mark=*\\% |
| 248 |
every mark/.append style={fill=gray},mark=square*\\% |
| 249 |
every mark/.append style={fill=gray},mark=otimes*\\% |
| 250 |
mark=star\\% |
| 251 |
every mark/.append style={fill=gray},mark=diamond*\\% |
| 252 |
densely dashed,every mark/.append style={solid,fill=gray},mark=*\\% |
| 253 |
densely dashed,every mark/.append style={solid,fill=gray},mark=square*\\% |
| 254 |
densely dashed,every mark/.append style={solid,fill=gray},mark=otimes*\\% |
| 255 |
densely dashed,every mark/.append style={solid},mark=star\\% |
| 256 |
densely dashed,every mark/.append style={solid,fill=gray},mark=diamond*\\% |
| 257 |
} |
| 258 |
|
| 259 |
\pgfplotscreateplotcyclelist{color}{% |
| 260 |
blue,every mark/.append style={fill=blue!80!black},mark=*\\% |
| 261 |
red,every mark/.append style={fill=red!80!black},mark=square*\\% |
| 262 |
brown!60!black,every mark/.append style={fill=brown!80!black},mark=otimes*\\% |
| 263 |
black,mark=star\\% |
| 264 |
blue,every mark/.append style={fill=blue!80!black},mark=diamond*\\% |
| 265 |
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=*\\% |
| 266 |
brown!60!black,densely dashed,every mark/.append style={solid,fill=brown!80!black},mark=square*\\% |
| 267 |
black,densely dashed,every mark/.append style={solid,fill=gray},mark=otimes*\\% |
| 268 |
blue,densely dashed,mark=star,every mark/.append style=solid\\% |
| 269 |
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=diamond*\\% |
| 270 |
} |
| 271 |
\pgfplotscreateplotcyclelist{linestyles}{solid,dashed,dotted} |
| 272 |
\pgfplotscreateplotcyclelist{linestyles*}{solid,dashed,dotted,dashdotted,dashdotdotted} |
| 273 |
\pgfplotscreateplotcyclelist{color list}{red,blue,black,yellow,brown,teal,orange,violet,cyan,green!70!black,magenta,gray} |
| 274 |
\pgfplotscreateplotcyclelist{mark list}{% |
| 275 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=*\\% |
| 276 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=square*\\% |
| 277 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=triangle*\\% |
| 278 |
every mark/.append style={solid},mark=star\\% |
| 279 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=diamond*\\% |
| 280 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill!40},mark=otimes*\\% |
| 281 |
every mark/.append style={solid},mark=|\\% |
| 282 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=pentagon*\\% |
| 283 |
every mark/.append style={solid},mark=text,text mark=p\\% |
| 284 |
every mark/.append style={solid},mark=text,text mark=a\\% |
| 285 |
} |
| 286 |
\pgfplotscreateplotcyclelist{mark list*}{% |
| 287 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=*\\% |
| 288 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=square*\\% |
| 289 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=triangle*\\% |
| 290 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfsquare*\\% |
| 291 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=pentagon*\\% |
| 292 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfcircle*\\% |
| 293 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill,rotate=180},mark=halfdiamond*\\% |
| 294 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill!40},mark=otimes*\\% |
| 295 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=diamond*\\% |
| 296 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfsquare right*\\% |
| 297 |
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfsquare left*\\% |
| 298 |
} |
| 299 |
\def\pgfplots@mark@list@fill{\pgfkeysvalueof{/pgfplots/mark list fill}} |
| 300 |
\let\pgfplotsmarklistfill=\pgfplots@mark@list@fill |
| 301 |
\pgfplotscreateplotcyclelist{exotic}{% |
| 302 |
teal,every mark/.append style={fill=teal!80!black},mark=*\\% |
| 303 |
orange,every mark/.append style={fill=orange!80!black},mark=square*\\% |
| 304 |
cyan!60!black,every mark/.append style={fill=cyan!80!black},mark=otimes*\\% |
| 305 |
red!70!white,mark=star\\% |
| 306 |
lime!80!black,every mark/.append style={fill=lime},mark=diamond*\\% |
| 307 |
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=*\\% |
| 308 |
yellow!60!black,densely dashed,every mark/.append style={solid,fill=yellow!80!black},mark=square*\\% |
| 309 |
black,every mark/.append style={solid,fill=gray},mark=otimes*\\% |
| 310 |
blue,densely dashed,mark=star,every mark/.append style=solid\\% |
| 311 |
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=diamond*\\% |
| 312 |
} |
| 313 |
|
| 314 |
|
| 315 |
% backwards compatibility: |
| 316 |
\let\pgfcreateplotcyclelist=\pgfplotscreateplotcyclelist |
| 317 |
\pgfplots@letcsname{pgfp@cyclist@\string\blackwhiteplotspeclist @}={pgfp@cyclist@black white@}% |
| 318 |
\pgfplots@letcsname{pgfp@cyclist@\string\coloredplotspeclist @}={pgfp@cyclist@color@}% |
| 319 |
%%%% |
| 320 |
|
| 321 |
\def\pgfplotsdeprecatedstylecheck#1{% |
| 322 |
\pgfkeysifdefined{#1/.@cmd}{% |
| 323 |
\begingroup |
| 324 |
\edef\pgfkeyscurrentkey{#1}% |
| 325 |
\pgfkeyssplitpath |
| 326 |
\pgfplots@warning{Loading deprecated style option |
| 327 |
\pgfkeyscurrentpath/\pgfkeyscurrentname. |
| 328 |
Please replace '\string\tikzstyle{\pgfkeyscurrentname}' |
| 329 |
with '\string\pgfplotsset{\pgfkeyscurrentname/.style={}}' |
| 330 |
(or '\string\pgfplotsset{\pgfkeyscurrentname/.append style={}}').}% |
| 331 |
\endgroup |
| 332 |
\pgfkeysvalueof{#1/.@cmd}\pgfeov |
| 333 |
}{}% |
| 334 |
}% |
| 335 |
|
| 336 |
\def\pgfplots@scaled@ticks@setargs#1#2{% |
| 337 |
\pgfutil@in@{:}{#2}% |
| 338 |
\ifpgfutil@in@ |
| 339 |
\pgfplots@scaled@ticks@setargs@{#1}#2\pgfplots@EOI |
| 340 |
\else |
| 341 |
\expandafter\pgfutil@in@\expandafter{\pgfplots@activecolon}{#2}% |
| 342 |
\ifpgfutil@in@ |
| 343 |
\pgfplots@scaled@ticks@setargs@active{#1}#2\pgfplots@EOI |
| 344 |
\else |
| 345 |
\pgfkeysalso{/pgfplots/scaled #1 ticks/#2}% |
| 346 |
\fi |
| 347 |
\fi |
| 348 |
}% |
| 349 |
\def\pgfplots@scaled@ticks@setargs@#1#2:#3\pgfplots@EOI{% |
| 350 |
\pgfkeysalso{/pgfplots/scaled #1 ticks/#2=#3}% |
| 351 |
} |
| 352 |
|
| 353 |
{ |
| 354 |
\catcode`\:=\active |
| 355 |
\gdef\pgfplots@scaled@ticks@setargs@active#1#2:#3\pgfplots@EOI{% |
| 356 |
\pgfkeysalso{/pgfplots/scaled #1 ticks/#2=#3}% |
| 357 |
} |
| 358 |
} |
| 359 |
|
| 360 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@center\endcsname{1} |
| 361 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@south west\endcsname{1} |
| 362 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@south\endcsname{1} |
| 363 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@south east\endcsname{1} |
| 364 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@east\endcsname{1} |
| 365 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@north east\endcsname{1} |
| 366 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@north\endcsname{1} |
| 367 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@north west\endcsname{1} |
| 368 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@west\endcsname{1} |
| 369 |
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@baseline\endcsname{1} |
| 370 |
|
| 371 |
% Sets the keys for /pgfplots/[xyz]ticklabel anchor. |
| 372 |
% #1: one of [xyz] |
| 373 |
% #2: the value |
| 374 |
\def\pgfplots@setticklabel@anchor@for#1#2{% |
| 375 |
\def\pgfplots@loc@TMPa{#2}% |
| 376 |
\def\pgfplots@loc@TMPb{auto}% |
| 377 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 378 |
\expandafter\def\csname pgfplots@ticklabel@anchor@#1\endcsname{0}% |
| 379 |
\else |
| 380 |
\def\pgfplots@loc@TMPb{near ticklabel}% |
| 381 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 382 |
\expandafter\def\csname pgfplots@ticklabel@anchor@#1\endcsname{1}% |
| 383 |
\else |
| 384 |
\def\pgfplots@loc@TMPb{tikz}% |
| 385 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 386 |
\expandafter\def\csname pgfplots@ticklabel@anchor@#1\endcsname{2}% |
| 387 |
\else |
| 388 |
\pgfplots@error{Sorry, I got an unexpected value for '#1ticklabel anchor': '#2'. Expected one of 'auto', 'near ticklabel' or 'tikz'.}% |
| 389 |
\fi |
| 390 |
\fi |
| 391 |
\fi |
| 392 |
}% |
| 393 |
|
| 394 |
% Does the work for '[xyz]ticklabel pos'. |
| 395 |
% |
| 396 |
% #1: the axis (x,y or z). |
| 397 |
% #2: the key argument. Accepts |
| 398 |
% 'lower', |
| 399 |
% 'upper', |
| 400 |
% 'default' -> depends on 'tick pos' |
| 401 |
% 'left' = 'lower', |
| 402 |
% 'bottom' = 'lower', |
| 403 |
% 'right' = 'upper' |
| 404 |
% 'top' = 'upper'. |
| 405 |
% |
| 406 |
\def\pgfplots@setkey@ticklabelpos#1#2{% |
| 407 |
\def\pgfplots@loc@TMPa{#2}% |
| 408 |
\def\pgfplots@loc@TMPb{lower}% |
| 409 |
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{l}% |
| 410 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 411 |
% =lower |
| 412 |
\else |
| 413 |
\def\pgfplots@loc@TMPb{upper}% |
| 414 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 415 |
% = upper |
| 416 |
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{u}% |
| 417 |
\else |
| 418 |
\def\pgfplots@loc@TMPb{default}% |
| 419 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 420 |
% = default |
| 421 |
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{}% |
| 422 |
\else |
| 423 |
\def\pgfplots@loc@TMPb{left}% |
| 424 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 425 |
% = left [ alias for 'lower' ] |
| 426 |
\else |
| 427 |
\def\pgfplots@loc@TMPb{right}% |
| 428 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 429 |
% = right [ alias for 'upper' ] |
| 430 |
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{u}% |
| 431 |
\else |
| 432 |
\def\pgfplots@loc@TMPb{bottom}% |
| 433 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 434 |
% = bottom [ alias for 'lower' ] |
| 435 |
\else |
| 436 |
\def\pgfplots@loc@TMPb{top}% |
| 437 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 438 |
% = top [ alias for 'upper' ] |
| 439 |
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{u}% |
| 440 |
\else |
| 441 |
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{}% |
| 442 |
\pgfplots@error{Sorry, the key '#1ticklabel pos' does not know what to do with '#2'... accepted values are 'default, 'lower', 'upper' and some aliases. Maybe you misspelled it?}% |
| 443 |
\fi |
| 444 |
\fi |
| 445 |
\fi |
| 446 |
\fi |
| 447 |
\fi |
| 448 |
\fi |
| 449 |
\fi |
| 450 |
}% |
| 451 |
|
| 452 |
% Sets 'x dir={normal,reverse}' |
| 453 |
% #1: an axis |
| 454 |
% #2: the key's value to apply |
| 455 |
\def\pgfplots@setkey@axisdir@for#1#2{% |
| 456 |
\def\pgfplots@loc@TMPa{#2}% |
| 457 |
\def\pgfplots@loc@TMPb{normal}% |
| 458 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 459 |
\pgfkeyssetvalue{/pgfplots/#1 dir/value}{n}% |
| 460 |
\else |
| 461 |
\def\pgfplots@loc@TMPb{reverse}% |
| 462 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 463 |
\pgfkeyssetvalue{/pgfplots/#1 dir/value}{r}% |
| 464 |
\else |
| 465 |
\pgfkeyssetvalue{/pgfplots/#1 dir/value}{n}% |
| 466 |
\pgfplots@error{Sorry, the key '#1 dir' does not know what to do with '#2'... accepted values are 'normal' or 'reverse'.}% |
| 467 |
\fi |
| 468 |
\fi |
| 469 |
}% |
| 470 |
|
| 471 |
|
| 472 |
\def\pgfplots@meshmode{n}% none |
| 473 |
\def\pgfplotsplothandlermesh@flatmode{m}% mean |
| 474 |
|
| 475 |
\def\pgfplots@cycle@multi@list@EOI{\pgfplots@cycle@multi@list@EOI}% |
| 476 |
\def\pgfplots@cycle@multi@list#1{% |
| 477 |
\def\pgfplots@loc@TMPb{0}% |
| 478 |
\gdef\pgfplots@cycle@multi@list@finalize@{}% |
| 479 |
\pgfkeysinterruptkeyfilter |
| 480 |
\pgfplots@cycle@multi@list@#1\nextlist\pgfplots@cycle@multi@list@EOI |
| 481 |
\endpgfkeysinterruptkeyfilter |
| 482 |
}% |
| 483 |
\def\pgfplots@cycle@multi@list@#1\nextlist{% |
| 484 |
\pgfkeys@spdef\pgfplots@loc@TMPa{#1}% |
| 485 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 486 |
% ignore it if someone provided too many \nextlist commands. |
| 487 |
\else |
| 488 |
% parse and store list: |
| 489 |
\begingroup |
| 490 |
% this deals with control sequences inside of #1: |
| 491 |
\pgfplots@command@to@string\pgfplots@loc@TMPa\pgfplots@as@string |
| 492 |
\expandafter\pgfplots@cycle@multi@list@findnamed\pgfplots@as@string\pgfplots@EOI |
| 493 |
\global\let\pgfplots@glob@TMPa=\pgfplots@loc@TMPa |
| 494 |
\endgroup |
| 495 |
\ifx\pgfplots@glob@TMPa\pgfutil@empty |
| 496 |
% create it: |
| 497 |
\pgfplotscreateplotcyclelist{/pgfplots/cycle multi list/@list\pgfplots@loc@TMPb}{#1}% |
| 498 |
\else |
| 499 |
% ok, take an existing one |
| 500 |
\expandafter\let\csname pgfp@cyclist@/pgfplots/cycle multi list/@list\pgfplots@loc@TMPb @\endcsname=\pgfplots@glob@TMPa |
| 501 |
\fi |
| 502 |
\begingroup |
| 503 |
\expandafter\pgfplotslistsize\csname pgfp@cyclist@/pgfplots/cycle multi list/@list\pgfplots@loc@TMPb @\endcsname\to\c@pgf@counta |
| 504 |
\edef\pgfmathresult{\the\c@pgf@counta}% |
| 505 |
\pgfmath@smuggleone\pgfmathresult |
| 506 |
\endgroup |
| 507 |
\pgfkeyslet{/pgfplots/cycle multi list/@totalN\pgfplots@loc@TMPb}\pgfmathresult |
| 508 |
\pgfkeyslet{/pgfplots/cycle multi list/@N\pgfplots@loc@TMPb}\pgfmathresult |
| 509 |
%\def\temp{#1}\message{cycle multi list/@list={\meaning\temp}; /@N\pgfplots@loc@TMPb = \pgfkeysvalueof{/pgfplots/cycle multi list/@N\pgfplots@loc@TMPb}^^J}% |
| 510 |
\pgfplotsutil@advancestringcounter\pgfplots@loc@TMPb |
| 511 |
\fi |
| 512 |
% |
| 513 |
\pgfutil@ifnextchar{\pgfplots@cycle@multi@list@EOI}{% |
| 514 |
\pgfplots@cycle@multi@list@finalize |
| 515 |
}{% |
| 516 |
\pgfplots@cycle@multi@list@ |
| 517 |
}% |
| 518 |
}% |
| 519 |
|
| 520 |
\def\pgfplots@colormap@catcodemagic{colormap} |
| 521 |
\pgfplots@command@to@string\pgfplots@colormap@catcodemagic\pgfplots@colormap@catcodemagic |
| 522 |
|
| 523 |
% checks for |
| 524 |
% - <known list> |
| 525 |
% - [<elements> of]<known list> |
| 526 |
% POSTCONDITION: |
| 527 |
% 1. pgfplots@loc@TMPa will be \pgfutil@empty if there is no such |
| 528 |
% list. |
| 529 |
% 2. \pgfplots@loc@TMPa will be \let to the list if there is one. |
| 530 |
% 3. \pgfplots@cycle@multi@list@finalize@ will contain any 'partial sublist' |
| 531 |
% commands. |
| 532 |
\def\pgfplots@cycle@multi@list@findnamed{\pgfutil@ifnextchar[{\pgfplots@cycle@multi@list@findnamed@}{\pgfplots@cycle@multi@list@findnamed@[]}}% |
| 533 |
\def\pgfplots@cycle@multi@list@findnamed@[#1]#2\pgfplots@EOI{% |
| 534 |
\def\pgfplots@loc@TMPa{#1}% |
| 535 |
\pgfplots@loc@tmptrue |
| 536 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 537 |
\else |
| 538 |
\expandafter\pgfutil@in@\expandafter{\pgfplots@colormap@catcodemagic}{#1}% |
| 539 |
\ifpgfutil@in@ |
| 540 |
% ups! This is actually one of |
| 541 |
% [of colormap] |
| 542 |
% [colors of colormap={...}] |
| 543 |
% [indices of colormap={...}] |
| 544 |
% which define a single cycle list! This is not what we aim |
| 545 |
% for. Abort |
| 546 |
\let\pgfplots@loc@TMPa=\pgfutil@empty |
| 547 |
\pgfplots@loc@tmpfalse |
| 548 |
\else |
| 549 |
\pgfplots@cycle@multi@list@findnamed@@#1 \pgfplots@EOI |
| 550 |
\fi |
| 551 |
\fi |
| 552 |
% |
| 553 |
\ifpgfplots@loc@tmp |
| 554 |
\pgfplotsifcyclelistexists{#2}{% |
| 555 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfp@cyclist@\string#2@\endcsname% |
| 556 |
}{% |
| 557 |
\let\pgfplots@loc@TMPa=\pgfutil@empty |
| 558 |
}% |
| 559 |
\fi |
| 560 |
} |
| 561 |
% #1: <elements> (an integer) |
| 562 |
\def\pgfplots@cycle@multi@list@findnamed@@#1 {% |
| 563 |
\pgfutil@ifnextchar o |
| 564 |
{\pgfplots@cycle@multi@list@findnamed@@@{#1}}% |
| 565 |
{\pgfplots@cycle@multi@list@findnamed@@@{#1}of}% |
| 566 |
}% |
| 567 |
\def\pgfplots@cycle@multi@list@findnamed@@@#1of#2\pgfplots@EOI{% |
| 568 |
\begingroup |
| 569 |
\t@pgfplots@toka=\expandafter{\pgfplots@cycle@multi@list@finalize@}% |
| 570 |
\t@pgfplots@tokb={#1}% |
| 571 |
\xdef\pgfplots@cycle@multi@list@finalize@{\the\t@pgfplots@toka |
| 572 |
\noexpand\pgfkeys{/pgfplots/cycle multi list/partial sublist={\pgfplots@loc@TMPb}{\the\t@pgfplots@tokb}}% |
| 573 |
}% |
| 574 |
\endgroup |
| 575 |
} |
| 576 |
|
| 577 |
\def\pgfplots@cycle@multi@list@finalize\pgfplots@cycle@multi@list@EOI{% |
| 578 |
\pgfkeyslet{/pgfplots/cycle multi list/@dim}\pgfplots@loc@TMPb |
| 579 |
\pgfplots@cycle@multi@list@finalize@ |
| 580 |
\c@pgf@countd=0 % |
| 581 |
\c@pgf@counta=0 % |
| 582 |
\pgfplotsloop{% |
| 583 |
\ifnum\c@pgf@counta<\pgfplots@loc@TMPb\relax |
| 584 |
\pgfplotsloopcontinuetrue |
| 585 |
\else |
| 586 |
\pgfplotsloopcontinuefalse |
| 587 |
\fi |
| 588 |
}{% |
| 589 |
\pgfkeysgetvalue{/pgfplots/cycle multi list/@N\the\c@pgf@counta}\pgfplots@cycle@N |
| 590 |
\ifnum\c@pgf@countd<\pgfplots@cycle@N\relax |
| 591 |
\c@pgf@countd=\pgfplots@cycle@N\relax |
| 592 |
\fi |
| 593 |
\advance\c@pgf@counta by1 |
| 594 |
}% |
| 595 |
\edef\pgfplots@loc@TMPd{\the\c@pgf@countd}% |
| 596 |
\pgfkeyslet{/pgfplots/cycle multi list/@maxlen}\pgfplots@loc@TMPd |
| 597 |
%\message{cycle multi list/@maxlen=\pgfplots@loc@TMPd^^J}% |
| 598 |
}% |
| 599 |
|
| 600 |
\def\pgfplots@pgfkeys@set@point@meta@value#1{% |
| 601 |
% |
| 602 |
\pgfutil@in@{=}{#1}% |
| 603 |
\ifpgfutil@in@ |
| 604 |
\def\pgfplots@loc@TMPa##1=##2\pgfplots@EOI{% |
| 605 |
% remove spaces from ##1 and ##2: |
| 606 |
\pgfkeys@spdef\pgfplots@loc@TMPa{##1}% |
| 607 |
\pgfkeys@spdef\pgfplots@loc@TMPb{##2}% |
| 608 |
% |
| 609 |
% check if the argument is known: |
| 610 |
\pgfkeysifdefined{/pgfplots/point meta/\pgfplots@loc@TMPa/.@cmd}{% |
| 611 |
\def\pgfplots@loc@TMPc{% |
| 612 |
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/\pgfplots@loc@TMPa/.@cmd}% |
| 613 |
}% |
| 614 |
\expandafter\pgfplots@loc@TMPc\expandafter{\pgfplots@loc@TMPb}% |
| 615 |
}{% |
| 616 |
% oh, then it will be a math expression. |
| 617 |
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/expr/.@cmd}{#1}% |
| 618 |
}% |
| 619 |
}% |
| 620 |
% disassemble key'='value: |
| 621 |
\pgfplots@loc@TMPa#1\pgfplots@EOI |
| 622 |
\else |
| 623 |
% the following code allows |
| 624 |
% 'point meta=\thisrow{xcol}' even though |
| 625 |
% \thisrow might be undefined in the context where keys are set. |
| 626 |
% I convert the argument to a string. |
| 627 |
\def\pgfplots@loc@TMPa{#1}% |
| 628 |
\pgfplots@command@to@string\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 629 |
% |
| 630 |
\pgfkeysifdefined{/pgfplots/point meta/\pgfplots@loc@TMPb/.@cmd}{% |
| 631 |
% ok, use it! |
| 632 |
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/\pgfplots@loc@TMPb/.@cmd}{}% |
| 633 |
}{% |
| 634 |
% oh, then it will be a math expression. |
| 635 |
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/expr/.@cmd}{#1}% |
| 636 |
}% |
| 637 |
\fi |
| 638 |
% |
| 639 |
% |
| 640 |
}% |
| 641 |
|
| 642 |
\def\pgfplots@color@of@colormap@parse#1{% |
| 643 |
\pgfutil@in@{of }{#1}% |
| 644 |
\ifpgfutil@in@ |
| 645 |
\pgfplots@color@of@colormap@parse@in#1\pgfplots@EOI |
| 646 |
\else |
| 647 |
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@color@of@colormap@name |
| 648 |
\edef\pgfplots@color@of@colormap@value{#1}% |
| 649 |
\fi |
| 650 |
}% |
| 651 |
\def\pgfplots@color@of@colormap@parse@in#1of #2\pgfplots@EOI{% |
| 652 |
\pgfkeys@spdef\pgfplots@color@of@colormap@value{#1}% |
| 653 |
\edef\pgfplots@color@of@colormap@value{\pgfplots@color@of@colormap@value}% |
| 654 |
\pgfkeys@spdef\pgfplots@color@of@colormap@name{#2}% |
| 655 |
} |
| 656 |
% defines |
| 657 |
% - \pgfmathresult to be the resulting color. |
| 658 |
% - \pgfplots@color@of@colormap@name the name of the colormap |
| 659 |
\def\pgfplots@color@of@colormap@define#1{% |
| 660 |
\pgfplots@color@of@colormap@parse{#1}% |
| 661 |
% |
| 662 |
\pgfplotscolormapifdefined{\pgfplots@color@of@colormap@name}{}{% |
| 663 |
% hm... the colormap does not exist? Perhaps someone used '4 of colormap/cool'. Try to define it! |
| 664 |
\pgfkeysifdefined{/pgfplots/\pgfplots@color@of@colormap@name/.@cmd}{% |
| 665 |
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@color@of@colormap@name@old |
| 666 |
\pgfplotsset{\pgfplots@color@of@colormap@name}% |
| 667 |
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@color@of@colormap@name |
| 668 |
\pgfkeyslet{/pgfplots/colormap name}\pgfplots@color@of@colormap@name@old |
| 669 |
}{% |
| 670 |
% let it run into an error... |
| 671 |
}% |
| 672 |
}% |
| 673 |
% |
| 674 |
\if m\pgfplots@color@of@colormap@access |
| 675 |
% colormap access=map |
| 676 |
\expandafter\pgfplotscolormapfind\expandafter[\pgfplotspointmetatransformedrange]% |
| 677 |
{\pgfplots@color@of@colormap@value}% |
| 678 |
{\pgfplots@color@of@colormap@name}% |
| 679 |
\else |
| 680 |
\if c\pgfplots@color@of@colormap@access |
| 681 |
% colormap access=piecewise constant |
| 682 |
\expandafter\pgfplotscolormapfindpiecewiseconst\expandafter[\pgfplotspointmetatransformedrange]% |
| 683 |
{\pgfplots@color@of@colormap@value}% |
| 684 |
{\pgfplots@color@of@colormap@name}% |
| 685 |
\else |
| 686 |
% colormap access=direct |
| 687 |
\pgfplotscolormapgetindex{\pgfplots@color@of@colormap@value}{\pgfplots@color@of@colormap@name}% |
| 688 |
\fi |
| 689 |
\fi |
| 690 |
}% |
| 691 |
|
| 692 |
\def\pgfplots@createcolormap@special@process@list@separator@CYCLE{\\}% |
| 693 |
\def\pgfplots@createcolormap@special@process@single@define@CYCLE{% |
| 694 |
\edef\pgfplotsretval{% |
| 695 |
/tikz/color/.define=% |
| 696 |
{.}% |
| 697 |
{\csname pgfpl@cm@\pgfkeysvalueof{/pgfplots/colormap name}@colspace\endcsname}% |
| 698 |
{\pgfmathresult},% |
| 699 |
/tikz/color=.,% |
| 700 |
}% |
| 701 |
}% |
| 702 |
\def\pgfplots@color@of@colormap#1{% |
| 703 |
\begingroup |
| 704 |
\def\pgfplots@createcolormap@special@process@single@define{% |
| 705 |
\edef\pgfplotsretval{% |
| 706 |
\noexpand\pgfutil@definecolor{.}{\csname pgfpl@cm@\pgfkeysvalueof{/pgfplots/colormap name}@colspace\endcsname}{\pgfmathresult}% |
| 707 |
}% |
| 708 |
\let\pgfplots@createcolormap@special@process@single@define=\relax |
| 709 |
}% |
| 710 |
\pgfplots@of@colormap@getresult{#1}% |
| 711 |
\global\let\pgfplots@glob@TMPa=\pgfplotsretval |
| 712 |
\endgroup |
| 713 |
\pgfplots@glob@TMPa |
| 714 |
\tikzset{color=.}% |
| 715 |
%\pgfplots@color@of@colormap@define{#1}% |
| 716 |
%\def\pgfplots@loc@TMPb{\pgfutil@definecolor{.}{\csname pgfpl@cm@\pgfplots@color@of@colormap@name @colspace\endcsname}}% |
| 717 |
%\expandafter\pgfplots@loc@TMPb\expandafter{\pgfmathresult}% |
| 718 |
%\tikzset{color=.}% |
| 719 |
} |
| 720 |
|
| 721 |
\newif\ifpgfplots@stackedmode |
| 722 |
|
| 723 |
\newif\ifpgfplotsplothandlermesh@shownormals |
| 724 |
|
| 725 |
\pgfkeys{% |
| 726 |
% <key name>/.define layer set={<layer list>}{<style definition>} |
| 727 |
/handlers/.define layer set/.code 2 args={% |
| 728 |
\pgfkeyssetvalue{\pgfkeyscurrentpath/list}{#1}% |
| 729 |
\pgfkeysdef{\pgfkeyscurrentpath}{\pgfkeysalso{#2}}% |
| 730 |
}% |
| 731 |
} |
| 732 |
|
| 733 |
\newif\ifpgfplots@LUA@fail@on@TeX@fallback |
| 734 |
\def\pgfplots@LUA@loglevel@info{4} |
| 735 |
\def\pgfplots@LUA@loglevel@debug{5} |
| 736 |
|
| 737 |
\pgfkeys{% |
| 738 |
/pgfplots/search path for tikz/.search also={/tikz,/pgfplots}, |
| 739 |
/pgfplots/.is family, |
| 740 |
/pgfplots/scale/.is family, |
| 741 |
/pgfplots/legend/.is family, |
| 742 |
/pgfplots/tick/.is family, |
| 743 |
/pgfplots/axis/.is family, |
| 744 |
/pgfplots/descriptions/.is family, |
| 745 |
/pgfplots/style commands/.is family, |
| 746 |
/pgfplots/naming commands/.is family, |
| 747 |
/pgfplots/shared with tikz/.is family, |
| 748 |
/pgfplots/error bars/.is family, |
| 749 |
% |
| 750 |
% pgfplots uses the following (implicit) layers: |
| 751 |
% context: & associated layer name: \\ |
| 752 |
% background path & axis background \\ |
| 753 |
% grid lines & axis grid \\ |
| 754 |
% tick lines & axis ticks \\ |
| 755 |
% axis lines & axis lines \\ |
| 756 |
% tick labels & axis tick labels \\ |
| 757 |
% plots & main \\ |
| 758 |
% axis descriptions & axis descriptions \\ |
| 759 |
% plot marks & (see 'mark layer')\\ |
| 760 |
% the 'axis on top' key will change that order by moving all plot- and mark-related paths upwards (they are drawn earlier). |
| 761 |
% None of these layers is mandatory; each can be omitted. |
| 762 |
% The magic layer name 'discard' can be used as /dev/null layer. |
| 763 |
% |
| 764 |
% the <layer set name> must be defined |
| 765 |
% set layers={<layer set name>} |
| 766 |
/pgfplots/set layers/.code={% |
| 767 |
\def\pgfplots@loc@TMPa{#1}% |
| 768 |
\def\pgfplots@loc@TMPb{none}% |
| 769 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 770 |
\pgfkeysalso{% |
| 771 |
/pgfplots/activate layers=false, |
| 772 |
/pgfplots/set layers*={}, |
| 773 |
}% |
| 774 |
\else |
| 775 |
\pgfkeysalso{% |
| 776 |
/pgfplots/activate layers=true, |
| 777 |
/pgfplots/set layers*={#1}, |
| 778 |
}% |
| 779 |
\pgfplotsifinaxis{% |
| 780 |
\pgfkeysalso{/pgfplots/cell picture=if necessary}% |
| 781 |
}{% |
| 782 |
% we wrote it outside of an axis. In this case, we can |
| 783 |
% assume that it prepares multiple axis - which |
| 784 |
% REQUIRES to disable cell pictures. |
| 785 |
\pgfkeysalso{/pgfplots/cell picture=false}% |
| 786 |
}% |
| 787 |
\fi |
| 788 |
}, |
| 789 |
% 'activate layers=false' is the same as 'set layers=none'. |
| 790 |
% However, 'activate layers=true' does not work unless a 'set layers' |
| 791 |
% has been installed as well. |
| 792 |
/pgfplots/activate layers/.is if=pgfplots@layered@graphics, |
| 793 |
/pgfplots/activate layers/.default=true, |
| 794 |
/pgfplots/set layers*/.code=\pgfplots@key@set@layers{#1}, |
| 795 |
/pgfplots/set layers*/.default={/pgfplots/layers/standard}, |
| 796 |
/pgfplots/@set layers arg/.initial=, |
| 797 |
/pgfplots/layers/.search also=/pgfplots, |
| 798 |
/pgfplots/layers/standard/.define layer set={axis background,axis grid,axis ticks,axis lines,axis tick labels,pre main,main,axis descriptions,axis foreground}{ |
| 799 |
grid style= {/pgfplots/on layer=axis grid}, |
| 800 |
tick style= {/pgfplots/on layer=axis ticks}, |
| 801 |
axis line style= {/pgfplots/on layer=axis lines}, |
| 802 |
label style= {/pgfplots/on layer=axis descriptions}, |
| 803 |
legend style= {/pgfplots/on layer=axis descriptions}, |
| 804 |
title style= {/pgfplots/on layer=axis descriptions}, |
| 805 |
colorbar style= {/pgfplots/on layer=axis descriptions}, |
| 806 |
ticklabel style= {/pgfplots/on layer=axis tick labels}, |
| 807 |
axis background@ style={/pgfplots/on layer=axis background}, |
| 808 |
3d box foreground style={/pgfplots/on layer=axis foreground}, |
| 809 |
}, |
| 810 |
/pgfplots/layers/axis on top/.define layer set={axis background,pre main,main,axis grid,axis ticks,axis lines,axis tick labels,axis descriptions,axis foreground}{ |
| 811 |
/pgfplots/layers/standard |
| 812 |
}, |
| 813 |
/pgfplots/on layer/.initial=, |
| 814 |
% mark layer can be 'auto', 'like plot', or a layer name. |
| 815 |
/pgfplots/mark layer/.initial=, |
| 816 |
/pgfplots/lua backend/.is if=pgfplots@LUA@backend@supported, |
| 817 |
/pgfplots/lua backend/.default=true, |
| 818 |
% |
| 819 |
/pgfplots/lua debug/.code={% |
| 820 |
\pgfqkeys{/pgfplots/lua debug}{#1}% |
| 821 |
}, |
| 822 |
/pgfplots/lua debug/false/.style={/pgfplots/lua debug/off},% |
| 823 |
/pgfplots/lua debug/off/.code={% |
| 824 |
\def\pgfplots@LUA@backend@debugmode{off}% |
| 825 |
\def\pgfplots@LUA@loglevel@debug{5}% |
| 826 |
\def\pgfplots@LUA@loglevel@info{4}% |
| 827 |
\pgfplots@LUA@fail@on@TeX@fallbackfalse |
| 828 |
}, |
| 829 |
/pgfplots/lua debug/off and silent/.code={% |
| 830 |
\def\pgfplots@LUA@backend@debugmode{off and silent}% |
| 831 |
\def\pgfplots@LUA@loglevel@debug{5}% |
| 832 |
\def\pgfplots@LUA@loglevel@info{5}% |
| 833 |
\pgfplots@LUA@fail@on@TeX@fallbackfalse |
| 834 |
}, |
| 835 |
% |
| 836 |
/pgfplots/lua debug/verbose/.code={% |
| 837 |
\def\pgfplots@LUA@backend@debugmode{verbose}% |
| 838 |
\def\pgfplots@LUA@loglevel@debug{4}% |
| 839 |
\def\pgfplots@LUA@loglevel@info{4}% |
| 840 |
\pgfplots@LUA@fail@on@TeX@fallbackfalse |
| 841 |
}, |
| 842 |
/pgfplots/lua debug/trace/.code={% |
| 843 |
\let\pgfplotsutil@directlua=\pgfplotsutil@directlua@trace |
| 844 |
},% |
| 845 |
/pgfplots/lua debug/compileerror/.code={% |
| 846 |
\def\pgfplots@LUA@backend@debugmode{compileerror}% |
| 847 |
\def\pgfplots@LUA@loglevel@debug{4}% |
| 848 |
\def\pgfplots@LUA@loglevel@info{4}% |
| 849 |
\pgfplots@LUA@fail@on@TeX@fallbacktrue |
| 850 |
}, |
| 851 |
/pgfplots/lua debug/.default=verbose, |
| 852 |
/pgfplots/lua debug=off, |
| 853 |
/pgfplots/every axis/.style={}, |
| 854 |
/pgfplots/every axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis}}, |
| 855 |
/pgfplots/every axis/.belongs to family=/pgfplots/style commands, |
| 856 |
/pgfplots/every axis post/.style={}, |
| 857 |
/pgfplots/every axis post/.belongs to family=/pgfplots/scale, |
| 858 |
/pgfplots/every semilogx axis/.style={}, |
| 859 |
/pgfplots/every semilogx axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every semilogx axis}}, |
| 860 |
/pgfplots/every semilogx axis/.belongs to family=/pgfplots/style commands, |
| 861 |
/pgfplots/every semilogy axis/.style={}, |
| 862 |
/pgfplots/every semilogy axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every semilogy axis}}, |
| 863 |
/pgfplots/every semilogy axis/.belongs to family=/pgfplots/style commands, |
| 864 |
/pgfplots/every loglog axis/.style={}, |
| 865 |
/pgfplots/every loglog axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every loglog axis}}, |
| 866 |
/pgfplots/every loglog axis/.belongs to family=/pgfplots/style commands, |
| 867 |
/pgfplots/every linear axis/.style={}, |
| 868 |
/pgfplots/every linear axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every linear axis}}, |
| 869 |
/pgfplots/every linear axis/.belongs to family=/pgfplots/style commands, |
| 870 |
/pgfplots/every axis plot/.style={}, |
| 871 |
/pgfplots/every axis plot/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis plot}}, |
| 872 |
/pgfplots/every axis plot/.belongs to family=/pgfplots/style commands, |
| 873 |
/pgfplots/every axis plot except legend/.style={}, |
| 874 |
/pgfplots/every axis plot except legend/.belongs to family=/pgfplots/style commands, |
| 875 |
/pgfplots/axis plot except legend style/.style={/pgfplots/every axis plot except legend/.append style={#1}}, |
| 876 |
/pgfplots/every axis plot post/.style={}, |
| 877 |
/pgfplots/every axis plot post/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis plot}}, |
| 878 |
/pgfplots/trig format plots/.is choice, |
| 879 |
/pgfplots/trig format plots/deg/.code={\def\pgfplots@set@trig@format@plots{\pgfkeys{/pgf/trig format=deg}}},% |
| 880 |
/pgfplots/trig format plots/rad/.code={\def\pgfplots@set@trig@format@plots{\pgfkeys{/pgf/trig format=rad}}},% |
| 881 |
/pgfplots/trig format plots/default/.code={\let\pgfplots@set@trig@format@plots=\relax},% |
| 882 |
/pgfplots/trig format plots/default, |
| 883 |
/pgfplots/no marks/.style={/pgfplots/no markers}, |
| 884 |
/pgfplots/no markers/.style={/pgfplots/every axis plot post/.append style={mark=none}}, |
| 885 |
/pgfplots/every axis label/.style={}, |
| 886 |
/pgfplots/every axis label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis label}}, |
| 887 |
/pgfplots/every axis label/.belongs to family=/pgfplots/descriptions, |
| 888 |
/pgfplots/xlabel near ticks/.style={% |
| 889 |
/pgfplots/every axis x label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},% |
| 890 |
/pgfplots/every x tick scale label/.style={at={(xticklabel cs:0.9,5pt)},anchor=near xticklabel,inner sep=0pt}, |
| 891 |
},% |
| 892 |
/pgfplots/xlabel absolute/.style={% |
| 893 |
/pgfplots/every axis x label/.style={at={(0.5,0)},below,yshift=-15pt},% |
| 894 |
/pgfplots/every x tick scale label/.style={at={(1,0)},yshift=-2em,left,inner sep=0pt}, |
| 895 |
},% |
| 896 |
/pgfplots/every axis x label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis x label}}, |
| 897 |
/pgfplots/every axis x label/.belongs to family=/pgfplots/descriptions, |
| 898 |
% |
| 899 |
/pgfplots/ylabel near ticks/.style={% |
| 900 |
/pgfplots/every axis y label/.style={at={(ticklabel cs:0.5)},rotate=90,anchor=near ticklabel},% |
| 901 |
/pgfplots/every y tick scale label/.style={at={(yticklabel* cs:1.03,-0.3em)},/pgfplots/near ticklabel align=outside,anchor=near yticklabel opposite,inner sep=0pt}, |
| 902 |
},% |
| 903 |
/pgfplots/ylabel absolute/.style={% |
| 904 |
/pgfplots/every axis y label/.style={at={(0,0.5)},xshift=-35pt,rotate=90}, |
| 905 |
/pgfplots/every y tick scale label/.style={at={(0,1)},above right,inner sep=0pt,yshift=0.3em}, |
| 906 |
},% |
| 907 |
/pgfplots/every axis y label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis y label}}, |
| 908 |
/pgfplots/every axis y label/.belongs to family=/pgfplots/descriptions, |
| 909 |
/pgfplots/every axis z label/.style={at={(ticklabel cs:0.5)},rotate=90, anchor=near ticklabel}, |
| 910 |
/pgfplots/every axis z label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis z label}}, |
| 911 |
/pgfplots/every axis z label/.belongs to family=/pgfplots/descriptions, |
| 912 |
/pgfplots/every 3d description/.style={% |
| 913 |
/pgfplots/every axis x label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},% |
| 914 |
/pgfplots/every axis y label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},% |
| 915 |
/pgfplots/every x tick scale label/.style={at={(xticklabel cs:0.95,5pt)},anchor=near xticklabel,inner sep=0pt}, |
| 916 |
/pgfplots/every y tick scale label/.style={at={(yticklabel cs:0.95,5pt)},anchor=near yticklabel,inner sep=0pt}, |
| 917 |
/pgfplots/try min ticks=3,% |
| 918 |
},% |
| 919 |
/pgfplots/every 3d view {0}{90}/.style={% |
| 920 |
/pgfplots/xlabel near ticks,% |
| 921 |
/pgfplots/ylabel near ticks,% |
| 922 |
/pgfplots/axis on top=true,% |
| 923 |
},% |
| 924 |
% will be defined in \pgfplotspoint@initialisation: |
| 925 |
%/tikz/sloped like x axis/.code={...},% |
| 926 |
/pgfplots/title shift/.code={\pgfplots@error{Sorry, there is no 'title shift' option. Consider using 'title style={yshift=...}' (or the low level 'every axis title shift' which works only together with the initial 'every axis title' style)}},% |
| 927 |
/pgfplots/every axis title shift/.initial=6pt, |
| 928 |
/pgfplots/every axis title/.style={at={(0.5,1)},above,yshift=\pgfkeysvalueof{/pgfplots/every axis title shift}}, |
| 929 |
/pgfplots/every axis title/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis title}}, |
| 930 |
/pgfplots/every axis title/.belongs to family=/pgfplots/descriptions, |
| 931 |
/pgfplots/every tick/.style={very thin,gray}, |
| 932 |
/pgfplots/every tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every tick}}, |
| 933 |
/pgfplots/every tick/.belongs to family=/pgfplots/style commands, |
| 934 |
/pgfplots/every inner x axis line/.style={}, |
| 935 |
/pgfplots/every inner y axis line/.style={}, |
| 936 |
/pgfplots/every inner z axis line/.style={}, |
| 937 |
/pgfplots/every outer x axis line/.style={}, |
| 938 |
/pgfplots/every outer y axis line/.style={}, |
| 939 |
/pgfplots/every outer z axis line/.style={}, |
| 940 |
/pgfplots/x axis line style/.style={ |
| 941 |
/pgfplots/every outer x axis line/.append style={#1}, |
| 942 |
/pgfplots/every inner x axis line/.append style={#1}, |
| 943 |
}, |
| 944 |
/pgfplots/y axis line style/.style={ |
| 945 |
/pgfplots/every outer y axis line/.append style={#1}, |
| 946 |
/pgfplots/every inner y axis line/.append style={#1}, |
| 947 |
}, |
| 948 |
/pgfplots/z axis line style/.style={ |
| 949 |
/pgfplots/every outer z axis line/.append style={#1}, |
| 950 |
/pgfplots/every inner z axis line/.append style={#1}, |
| 951 |
}, |
| 952 |
/pgfplots/outer axis line style/.style={ |
| 953 |
/pgfplots/every outer x axis line/.append style={#1}, |
| 954 |
/pgfplots/every outer y axis line/.append style={#1},% |
| 955 |
/pgfplots/every outer z axis line/.append style={#1}% |
| 956 |
}, |
| 957 |
/pgfplots/inner axis line style/.style={ |
| 958 |
/pgfplots/every inner x axis line/.append style={#1}, |
| 959 |
/pgfplots/every inner y axis line/.append style={#1},% |
| 960 |
/pgfplots/every inner z axis line/.append style={#1}% |
| 961 |
}, |
| 962 |
/pgfplots/axis line style/.style={ |
| 963 |
/pgfplots/inner axis line style={#1}, |
| 964 |
/pgfplots/outer axis line style={#1}% |
| 965 |
}, |
| 966 |
/pgfplots/separate axis lines/.is if=pgfplots@separate@axis@lines, |
| 967 |
/pgfplots/separate axis lines/.default=true, |
| 968 |
/pgfplots/every minor tick/.style={}, |
| 969 |
/pgfplots/every minor tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor tick}}, |
| 970 |
/pgfplots/every minor tick/.belongs to family=/pgfplots/style commands, |
| 971 |
/pgfplots/every major tick/.style={}, |
| 972 |
/pgfplots/every major tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major tick}}, |
| 973 |
/pgfplots/every major tick/.belongs to family=/pgfplots/style commands, |
| 974 |
/pgfplots/every x tick/.style={}, |
| 975 |
/pgfplots/every x tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every x tick}}, |
| 976 |
/pgfplots/every x tick/.belongs to family=/pgfplots/style commands, |
| 977 |
/pgfplots/every minor x tick/.style={}, |
| 978 |
/pgfplots/every minor x tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor x tick}}, |
| 979 |
/pgfplots/every minor x tick/.belongs to family=/pgfplots/style commands, |
| 980 |
/pgfplots/every major x tick/.style={}, |
| 981 |
/pgfplots/every major x tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major x tick}}, |
| 982 |
/pgfplots/every major x tick/.belongs to family=/pgfplots/style commands, |
| 983 |
/pgfplots/every y tick/.style={}, |
| 984 |
/pgfplots/every y tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every y tick}}, |
| 985 |
/pgfplots/every y tick/.belongs to family=/pgfplots/style commands, |
| 986 |
/pgfplots/every minor y tick/.style={}, |
| 987 |
/pgfplots/every minor y tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor y tick}}, |
| 988 |
/pgfplots/every minor y tick/.belongs to family=/pgfplots/style commands, |
| 989 |
/pgfplots/every major y tick/.style={}, |
| 990 |
/pgfplots/every major y tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major y tick}}, |
| 991 |
/pgfplots/every major y tick/.belongs to family=/pgfplots/style commands, |
| 992 |
/pgfplots/every z tick/.style={}, |
| 993 |
/pgfplots/every z tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every z tick}}, |
| 994 |
/pgfplots/every z tick/.belongs to family=/pgfplots/style commands, |
| 995 |
/pgfplots/every minor z tick/.style={}, |
| 996 |
/pgfplots/every minor z tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor z tick}}, |
| 997 |
/pgfplots/every minor z tick/.belongs to family=/pgfplots/style commands, |
| 998 |
/pgfplots/every major z tick/.style={}, |
| 999 |
/pgfplots/every major z tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major z tick}}, |
| 1000 |
/pgfplots/every major z tick/.belongs to family=/pgfplots/style commands, |
| 1001 |
%/pgfplots/every axis grid/.style={help lines}, |
| 1002 |
/pgfplots/every axis grid/.style={thin,black!25}, |
| 1003 |
/pgfplots/every axis grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis grid}}, |
| 1004 |
/pgfplots/every axis grid/.belongs to family=/pgfplots/style commands, |
| 1005 |
/pgfplots/every minor grid/.style={}, |
| 1006 |
/pgfplots/every minor grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor grid}}, |
| 1007 |
/pgfplots/every minor grid/.belongs to family=/pgfplots/style commands, |
| 1008 |
/pgfplots/every major grid/.style={}, |
| 1009 |
/pgfplots/every major grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major grid}}, |
| 1010 |
/pgfplots/every major grid/.belongs to family=/pgfplots/style commands, |
| 1011 |
/pgfplots/every axis x grid/.style={}, |
| 1012 |
/pgfplots/every axis x grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis x grid}}, |
| 1013 |
/pgfplots/every axis x grid/.belongs to family=/pgfplots/style commands, |
| 1014 |
/pgfplots/every minor x grid/.style={}, |
| 1015 |
/pgfplots/every minor x grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor x grid}}, |
| 1016 |
/pgfplots/every minor x grid/.belongs to family=/pgfplots/style commands, |
| 1017 |
/pgfplots/every major x grid/.style={}, |
| 1018 |
/pgfplots/every major x grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major x grid}}, |
| 1019 |
/pgfplots/every major x grid/.belongs to family=/pgfplots/style commands, |
| 1020 |
/pgfplots/every axis y grid/.style={}, |
| 1021 |
/pgfplots/every axis y grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis y grid}}, |
| 1022 |
/pgfplots/every axis y grid/.belongs to family=/pgfplots/style commands, |
| 1023 |
/pgfplots/every minor y grid/.style={}, |
| 1024 |
/pgfplots/every minor y grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor y grid}}, |
| 1025 |
/pgfplots/every minor y grid/.belongs to family=/pgfplots/style commands, |
| 1026 |
/pgfplots/every major y grid/.style={}, |
| 1027 |
/pgfplots/every major y grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major y grid}}, |
| 1028 |
/pgfplots/every major y grid/.belongs to family=/pgfplots/style commands, |
| 1029 |
/pgfplots/every axis z grid/.style={}, |
| 1030 |
/pgfplots/every axis z grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis z grid}}, |
| 1031 |
/pgfplots/every axis z grid/.belongs to family=/pgfplots/style commands, |
| 1032 |
/pgfplots/every minor z grid/.style={}, |
| 1033 |
/pgfplots/every minor z grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor z grid}}, |
| 1034 |
/pgfplots/every minor z grid/.belongs to family=/pgfplots/style commands, |
| 1035 |
/pgfplots/every major z grid/.style={}, |
| 1036 |
/pgfplots/every major z grid/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major z grid}}, |
| 1037 |
/pgfplots/every major z grid/.belongs to family=/pgfplots/style commands, |
| 1038 |
/pgfplots/every tick label/.style={}, |
| 1039 |
/pgfplots/every tick label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every tick label}}, |
| 1040 |
/pgfplots/every tick label/.belongs to family=/pgfplots/style commands, |
| 1041 |
/pgfplots/every x tick label/.style={}, |
| 1042 |
/pgfplots/every x tick label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every x tick label}}, |
| 1043 |
/pgfplots/every x tick label/.belongs to family=/pgfplots/style commands, |
| 1044 |
/pgfplots/every extra x tick/.style={ |
| 1045 |
/pgfplots/log identify minor tick positions=true, |
| 1046 |
/pgfplots/hide obscured x ticks=false, |
| 1047 |
}, |
| 1048 |
/pgfplots/every extra x tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every extra x tick}}, |
| 1049 |
/pgfplots/every extra x tick/.belongs to family=/pgfplots/style commands, |
| 1050 |
/pgfplots/extra x tick style/.belongs to family=/pgfplots/style commands, |
| 1051 |
/pgfplots/extra x tick style/.code={% |
| 1052 |
\pgfkeysalso{/pgfplots/every extra x tick/.append style={#1}}% |
| 1053 |
}, |
| 1054 |
/pgfplots/extra tick style/.code={% |
| 1055 |
\pgfkeysalso{% |
| 1056 |
/pgfplots/every extra x tick/.append style={#1},% |
| 1057 |
/pgfplots/every extra y tick/.append style={#1},% |
| 1058 |
/pgfplots/every extra z tick/.append style={#1}}% |
| 1059 |
}, |
| 1060 |
/pgfplots/every x tick scale label/.initial=,% set by compat/labels=... |
| 1061 |
/pgfplots/every x tick scale label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every x tick scale label}}, |
| 1062 |
/pgfplots/every x tick scale label/.belongs to family=/pgfplots/descriptions, |
| 1063 |
/pgfplots/every y tick label/.style={}, |
| 1064 |
/pgfplots/every y tick label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every y tick label}}, |
| 1065 |
/pgfplots/every y tick label/.belongs to family=/pgfplots/style commands, |
| 1066 |
/pgfplots/every extra y tick/.style={ |
| 1067 |
/pgfplots/log identify minor tick positions=true, |
| 1068 |
/pgfplots/hide obscured y ticks=false, |
| 1069 |
}, |
| 1070 |
/pgfplots/every extra y tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every extra y tick}}, |
| 1071 |
/pgfplots/every extra y tick/.belongs to family=/pgfplots/style commands, |
| 1072 |
/pgfplots/extra y tick style/.belongs to family=/pgfplots/style commands, |
| 1073 |
/pgfplots/extra y tick style/.code={% |
| 1074 |
\pgfkeysalso{/pgfplots/every extra y tick/.append style={#1}}% |
| 1075 |
}, |
| 1076 |
/pgfplots/every y tick scale label/.initial=,% set by compat/labels=... |
| 1077 |
/pgfplots/every y tick scale label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every y tick scale label}}, |
| 1078 |
/pgfplots/every y tick scale label/.belongs to family=/pgfplots/descriptions, |
| 1079 |
/pgfplots/every z tick label/.style={}, |
| 1080 |
/pgfplots/every z tick label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every z tick label}}, |
| 1081 |
/pgfplots/every z tick label/.belongs to family=/pgfplots/style commands, |
| 1082 |
/pgfplots/every extra z tick/.style={ |
| 1083 |
/pgfplots/log identify minor tick positions=true, |
| 1084 |
/pgfplots/hide obscured z ticks=false, |
| 1085 |
}, |
| 1086 |
/pgfplots/every extra z tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every extra z tick}}, |
| 1087 |
/pgfplots/every extra z tick/.belongs to family=/pgfplots/style commands, |
| 1088 |
/pgfplots/extra z tick style/.belongs to family=/pgfplots/style commands, |
| 1089 |
/pgfplots/extra z tick style/.code={% |
| 1090 |
\pgfkeysalso{/pgfplots/every extra z tick/.append style={#1}}% |
| 1091 |
}, |
| 1092 |
% FIXME : this is replicated in 'axis z line=box'! |
| 1093 |
/pgfplots/every z tick scale label/.style={at={(zticklabel* cs:1.2,-0.3em)},anchor=near zticklabel,inner sep=0pt}, |
| 1094 |
/pgfplots/every z tick scale label/.belongs to family=/pgfplots/descriptions, |
| 1095 |
/pgfplots/every axis legend/.style={% |
| 1096 |
cells={anchor=center}, |
| 1097 |
inner xsep=3pt,inner ysep=2pt,nodes={inner sep=2pt,text depth=0.15em}, |
| 1098 |
anchor=north east,% |
| 1099 |
shape=rectangle,% |
| 1100 |
fill=white,% |
| 1101 |
draw=black, |
| 1102 |
at={(0.98,0.98)}, |
| 1103 |
}, |
| 1104 |
/pgfplots/every axis legend/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis legend}}, |
| 1105 |
/pgfplots/every axis legend/.belongs to family=/pgfplots/style commands, |
| 1106 |
% |
| 1107 |
% axis type: |
| 1108 |
/pgfplots/axis type/.initial=rectangle, |
| 1109 |
/pgfplots/axis type/.belongs to family=/pgfplots/scale, |
| 1110 |
/pgfplots/@expected axis cs/.initial=cart, |
| 1111 |
/pgfplots/every rectangle axis/.style={}, |
| 1112 |
% |
| 1113 |
% see \pgfplotsdefinecstransform{<from>}{<to>}{<code>} |
| 1114 |
/pgfplots/data cs/.initial=cart,% the coordinate system of provided data. Will be transformed to the axis' internal coordinate system (@expected axis cs). |
| 1115 |
% |
| 1116 |
% Colorbar interface: |
| 1117 |
/pgfplots/colorbar/.is if=pgfplots@colorbar, |
| 1118 |
/pgfplots/colorbar/.default=true, |
| 1119 |
/pgfplots/colorbar to label/.style={/pgfplots/colorbar to name={#1}}, |
| 1120 |
/pgfplots/colorbar to name/.initial=, |
| 1121 |
/pgfplots/colorbar source/.code={\pgfplots@error{Sorry, you can only set `colorbar source' inside of \string\addplot\space (or a cycle list)}}, |
| 1122 |
/pgfplots/colorbar source/.default=true, |
| 1123 |
/pgfplots/colorbar pos*/.initial=,% one of 'rltb' (right, left, top, bottom). for internal use, to handle checks. |
| 1124 |
/pgfplots/every colorbar global/.style={ |
| 1125 |
data cs=cart, |
| 1126 |
axis on top, |
| 1127 |
title=, |
| 1128 |
xlabel=, |
| 1129 |
ylabel=, |
| 1130 |
zlabel=, |
| 1131 |
legend entries=, |
| 1132 |
grid=none, |
| 1133 |
enlargelimits=false, |
| 1134 |
scale only axis, |
| 1135 |
xtick=, |
| 1136 |
xticklabel=, |
| 1137 |
ytick=, |
| 1138 |
yticklabel=, |
| 1139 |
zmin=, |
| 1140 |
zmax=, |
| 1141 |
}, |
| 1142 |
/pgfplots/colorbar right/.style={% |
| 1143 |
/pgfplots/colorbar=true, |
| 1144 |
/pgfplots/colorbar pos*=r, |
| 1145 |
/pgfplots/colorbar shift/.style={xshift=0.3cm}, |
| 1146 |
/pgfplots/every colorbar/.style={% |
| 1147 |
/pgfplots/every colorbar global, |
| 1148 |
at={(parent axis.right of north east)}, |
| 1149 |
anchor=north west, |
| 1150 |
xmin=0, |
| 1151 |
xmax=1, |
| 1152 |
ymin=\pgfkeysvalueof{/pgfplots/point meta min}, |
| 1153 |
ymax=\pgfkeysvalueof{/pgfplots/point meta max}, |
| 1154 |
height=\pgfkeysvalueof{/pgfplots/parent axis height},% |
| 1155 |
width=\pgfkeysvalueof{/pgfplots/colorbar/width}, |
| 1156 |
xtick=\empty, |
| 1157 |
yticklabel pos=right,% ATTENTION: I check for this setting in 'colorbar sampled line', see below! |
| 1158 |
colorbar vertical/lowlevel, |
| 1159 |
}% |
| 1160 |
},% |
| 1161 |
/pgfplots/colorbar left/.style={% |
| 1162 |
/pgfplots/colorbar right, |
| 1163 |
/pgfplots/colorbar pos*=l, |
| 1164 |
/pgfplots/colorbar shift/.style={xshift=-0.3cm}, |
| 1165 |
/pgfplots/every colorbar/.append style={% |
| 1166 |
at={(parent axis.left of north west)}, |
| 1167 |
anchor=north east, |
| 1168 |
yticklabel pos=left,% ATTENTION: I check for this setting in 'colorbar sampled line', see below! |
| 1169 |
}% |
| 1170 |
},% |
| 1171 |
/pgfplots/colorbar horizontal/.style={% |
| 1172 |
/pgfplots/colorbar=true, |
| 1173 |
/pgfplots/colorbar pos*=b, |
| 1174 |
/pgfplots/colorbar shift/.style={yshift=-0.3cm}, |
| 1175 |
/pgfplots/every colorbar/.style={% |
| 1176 |
/pgfplots/every colorbar global, |
| 1177 |
at={(parent axis.below south west)}, |
| 1178 |
anchor=north west, |
| 1179 |
ymin=0, |
| 1180 |
ymax=1, |
| 1181 |
xmin=\pgfkeysvalueof{/pgfplots/point meta min}, |
| 1182 |
xmax=\pgfkeysvalueof{/pgfplots/point meta max}, |
| 1183 |
width=\pgfkeysvalueof{/pgfplots/parent axis width},% |
| 1184 |
height=\pgfkeysvalueof{/pgfplots/colorbar/width}, |
| 1185 |
xticklabel pos=left, |
| 1186 |
ytick=\empty, |
| 1187 |
colorbar horizontal/lowlevel, |
| 1188 |
}% |
| 1189 |
},% |
| 1190 |
% |
| 1191 |
% this here used to be the default up to (and including) pgfplots 1.13. |
| 1192 |
% But it does not support the following use cases: |
| 1193 |
% * 'colormap access=const', |
| 1194 |
% * 'colorbar style={ytick=data}}' |
| 1195 |
% * CMYK shadings |
| 1196 |
% -> deprecated. |
| 1197 |
/pgfplots/colorbar pgfshading/.style={% |
| 1198 |
/pgfplots/colorbar, |
| 1199 |
/pgfplots/colorbar/draw/.code={% |
| 1200 |
\axis[every colorbar,colorbar shift,colorbar=false] |
| 1201 |
\pgfkeysvalueof{/pgfplots/colorbar addplot}% |
| 1202 |
\endaxis |
| 1203 |
},% |
| 1204 |
% You might wonder why this special treatment with '/lowlevel' |
| 1205 |
% keys is necessary. Well, It turned out that using '##' inside of |
| 1206 |
% styles is incompatible with '.add code' -- and therefore also |
| 1207 |
% with '.append style'. This here is a work-around which works. |
| 1208 |
/pgfplots/colorbar vertical/lowlevel/.style={% |
| 1209 |
/pgfplots/colorbar addplot=\addplot graphics {};, |
| 1210 |
plot graphics/xmin=0,% |
| 1211 |
plot graphics/xmax=1, |
| 1212 |
plot graphics/ymin=\pgfkeysvalueof{/pgfplots/point meta min}, |
| 1213 |
plot graphics/ymax=\pgfkeysvalueof{/pgfplots/point meta max}, |
| 1214 |
plot graphics/lowlevel draw/.code 2 args={% |
| 1215 |
\if\pgfkeysvalueof{/pgfplots/y dir/value}n% |
| 1216 |
\pgfplotscolormaptoshadingspec{\pgfkeysvalueof{/pgfplots/colormap name}}{####2}\pgfplots@loc@TMPa |
| 1217 |
\else |
| 1218 |
\pgfplotscolormapreversedtoshadingspec{\pgfkeysvalueof{/pgfplots/colormap name}}{####2}\pgfplots@loc@TMPa |
| 1219 |
\fi |
| 1220 |
\def\pgfplots@loc@TMPb{\pgfdeclareverticalshading{tempshading}{\pgfkeysvalueof{/pgfplots/colorbar/width}}}% |
| 1221 |
\expandafter\pgfplots@loc@TMPb\expandafter{\pgfplots@loc@TMPa}% |
| 1222 |
\pgfuseshading{tempshading}% |
| 1223 |
},% |
| 1224 |
}, |
| 1225 |
/pgfplots/colorbar horizontal/lowlevel/.style={% |
| 1226 |
/pgfplots/colorbar addplot=\addplot graphics {};, |
| 1227 |
plot graphics/ymin=0,% |
| 1228 |
plot graphics/ymax=1, |
| 1229 |
plot graphics/xmin=\pgfkeysvalueof{/pgfplots/point meta min}, |
| 1230 |
plot graphics/xmax=\pgfkeysvalueof{/pgfplots/point meta max}, |
| 1231 |
plot graphics/lowlevel draw/.code 2 args={% |
| 1232 |
\if\pgfkeysvalueof{/pgfplots/x dir/value}n% |
| 1233 |
\pgfplotscolormaptoshadingspec{\pgfkeysvalueof{/pgfplots/colormap name}}{####1}\pgfplots@loc@TMPa |
| 1234 |
\else |
| 1235 |
\pgfplotscolormapreversedtoshadingspec{\pgfkeysvalueof{/pgfplots/colormap name}}{####1}\pgfplots@loc@TMPa |
| 1236 |
\fi |
| 1237 |
\def\pgfplots@loc@TMPb{\pgfdeclarehorizontalshading{tempshading}{\pgfkeysvalueof{/pgfplots/colorbar/width}}}% |
| 1238 |
\expandafter\pgfplots@loc@TMPb\expandafter{\pgfplots@loc@TMPa}% |
| 1239 |
\pgfuseshading{tempshading}% |
| 1240 |
},% |
| 1241 |
},% |
| 1242 |
}, |
| 1243 |
/pgfplots/colorbar addplot/.initial=\pgfplots@error{COLORBAR SYSTEM UNDEFINED}, |
| 1244 |
/pgfplots/colorbar/draw/.code={\pgfplots@error{COLORBAR SYSTEM UNDEFINED}}, |
| 1245 |
% --> the default is now 'colorbar sampled', see below: |
| 1246 |
% |
| 1247 |
% instantiate SOME defaults: |
| 1248 |
/pgfplots/colorbar right, |
| 1249 |
/pgfplots/colorbar=false, |
| 1250 |
% |
| 1251 |
/pgfplots/colorbar style/.style={/pgfplots/every colorbar/.append style={#1}}, |
| 1252 |
/pgfplots/colorbar/width/.initial=0.5cm, |
| 1253 |
% see \pgfplotscolorbardrawstandalone |
| 1254 |
/pgfplots/colorbar/standalone draw/.code={% |
| 1255 |
\pgfplots@colorbar@get@rid@of@at@parent@axis |
| 1256 |
\pgfplots@colorbar@draw@ |
| 1257 |
}, |
| 1258 |
/pgfplots/every colorbar sampled line/.style={help lines}, |
| 1259 |
/pgfplots/colorbar sampled line style/.style={/pgfplots/every colorbar sampled line/.append style={#1}}, |
| 1260 |
/pgfplots/colorbar sampled line/.style={% |
| 1261 |
colorbar, |
| 1262 |
/pgfplots/colorbar/draw/.code={% |
| 1263 |
\axis[ |
| 1264 |
cycle list={#1\\}, |
| 1265 |
domain=\pgfkeysvalueof{/pgfplots/point meta min}:\pgfkeysvalueof{/pgfplots/point meta max}, |
| 1266 |
every colorbar,colorbar shift,colorbar=false] |
| 1267 |
\pgfkeysvalueof{/pgfplots/colorbar addplot}% |
| 1268 |
\endaxis |
| 1269 |
},% |
| 1270 |
/pgfplots/colorbar horizontal/lowlevel/.code={% |
| 1271 |
\pgfkeysgetvalue{/pgfplots/colorbar pos*}\pgfplots@loc@TMPa |
| 1272 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 1273 |
\def\pgfplots@loc@TMPa{b}% |
| 1274 |
\fi |
| 1275 |
\if b\pgfplots@loc@TMPa |
| 1276 |
\pgfkeysalso{axis x line*=bottom}% DEFAULT. |
| 1277 |
\else |
| 1278 |
\pgfkeysalso{axis x line*=top}% |
| 1279 |
\fi |
| 1280 |
\pgfkeysalso{% |
| 1281 |
y axis line style={/pgfplots/every colorbar sampled line}, |
| 1282 |
/pgfplots/colorbar addplot={\addplot {0.5};}, |
| 1283 |
point meta=x, |
| 1284 |
}% |
| 1285 |
},% |
| 1286 |
/pgfplots/colorbar vertical/lowlevel/.code={% |
| 1287 |
\pgfkeysgetvalue{/pgfplots/colorbar pos*}\pgfplots@loc@TMPa |
| 1288 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 1289 |
\def\pgfplots@loc@TMPa{r}% |
| 1290 |
\fi |
| 1291 |
\if l\pgfplots@loc@TMPa |
| 1292 |
\pgfkeysalso{axis y line*=left}% |
| 1293 |
\else |
| 1294 |
\pgfkeysalso{axis y line*=right}% DEFAULT |
| 1295 |
\fi |
| 1296 |
\pgfkeysalso{% |
| 1297 |
x axis line style={/pgfplots/every colorbar sampled line}, |
| 1298 |
/pgfplots/colorbar addplot={\addplot (0.5,x);}, |
| 1299 |
point meta=y, |
| 1300 |
}% |
| 1301 |
},% |
| 1302 |
},% |
| 1303 |
/pgfplots/colorbar sampled line/.default={scatter,only marks}, |
| 1304 |
% |
| 1305 |
/pgfplots/colorbar as palette/.style={ |
| 1306 |
colorbar sampled={ |
| 1307 |
surf, |
| 1308 |
colormap access=direct, |
| 1309 |
shader=flat corner, |
| 1310 |
samples=\pgfplotscolormapsizeof |
| 1311 |
{\pgfkeysvalueof{/pgfplots/colormap name}}+1, |
| 1312 |
}, |
| 1313 |
colorbar style={ |
| 1314 |
point meta min=0, |
| 1315 |
point meta max=\pgfplotscolormapsizeof |
| 1316 |
{\pgfkeysvalueof{/pgfplots/colormap name}}, |
| 1317 |
}, |
| 1318 |
}, |
| 1319 |
% |
| 1320 |
% A style which display exactly 1 tick label for each distinct color. It is similar to 'colorbar as palette'. |
| 1321 |
% It is useful for non-uniform colormaps |
| 1322 |
/pgfplots/colorbar as legend/.style={ |
| 1323 |
/pgfplots/colorbar sampled={},% |
| 1324 |
/pgfplots/colorbar style={% |
| 1325 |
% FIXME: these styles could make use of some tuning ... |
| 1326 |
ticklabel style={/pgf/number format/precision=3,/pgf/number format/relative*=3}, |
| 1327 |
}, |
| 1328 |
/pgfplots/colorbar horizontal/lowlevel/.append code={% |
| 1329 |
\def\pgfplots@colorbar@as@legend@orientation{x}% |
| 1330 |
}, |
| 1331 |
/pgfplots/colorbar vertical/lowlevel/.append code={% |
| 1332 |
\def\pgfplots@colorbar@as@legend@orientation{y}% |
| 1333 |
}, |
| 1334 |
% |
| 1335 |
% ensure that our values |
| 1336 |
% \pgfplots@colorbar@as@legend@orientation are available while |
| 1337 |
% pgfplots processes the key filtering - otherwise we get |
| 1338 |
% "undefined keys" below |
| 1339 |
/pgfplots/colorbar horizontal/lowlevel/.belongs to family=/pgfplots/scale, |
| 1340 |
/pgfplots/colorbar vertical/lowlevel/.belongs to family=/pgfplots/scale, |
| 1341 |
% |
| 1342 |
/pgfplots/colorbar/draw/.add code={% |
| 1343 |
\begingroup |
| 1344 |
\pgfkeys{/pgf/fpu}% |
| 1345 |
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@CM |
| 1346 |
\begingroup |
| 1347 |
\pgfplotsset{every colorbar}% |
| 1348 |
\pgfmath@smuggleone\pgfplots@colorbar@as@legend@orientation |
| 1349 |
\endgroup |
| 1350 |
\pgfplotscolormapgetpositions[{\pgfkeysvalueof{/pgfplots/point meta min}}:{\pgfkeysvalueof{/pgfplots/point meta max}}]{\pgfplots@CM}% |
| 1351 |
\edef\pgfplots@loc@TMPa{% |
| 1352 |
\noexpand\pgfplotsarraynew\noexpand\positions{\pgfplotsretval}% |
| 1353 |
}% |
| 1354 |
\pgfplots@loc@TMPa |
| 1355 |
% |
| 1356 |
\c@pgf@countd=\pgfplotscolormaplastindexof{\pgfplots@CM}\relax |
| 1357 |
\edef\pgfplots@colorcount{\the\c@pgf@countd}% |
| 1358 |
\advance\c@pgf@countd by-1 % |
| 1359 |
% XXX : this here is tailored for use with |
| 1360 |
% * 'colormap access=const' and |
| 1361 |
% * 'sample for=const' |
| 1362 |
% where the last color is redundant and must not be |
| 1363 |
% displayed in 'colorbar as legend' --> make it more |
| 1364 |
% general! |
| 1365 |
\edef\pgfplots@colorcount@minus@one{\the\c@pgf@countd}% |
| 1366 |
% |
| 1367 |
% accumulate a list of formatted positions into this |
| 1368 |
% variable: |
| 1369 |
\def\pgfplots@loc@TMPc{}% |
| 1370 |
\pgfplotsforeachungrouped \x in {0,...,\pgfplots@colorcount} {% |
| 1371 |
\pgfplotsarrayselect{\x}\of\positions\to\pgfplotsretval |
| 1372 |
\edef\pgfplots@loc@TMPa{\noexpand\pgfmathprintnumber{\pgfplotsretval}} |
| 1373 |
\t@pgfplots@toka=\expandafter{\pgfplots@loc@TMPc}% |
| 1374 |
\t@pgfplots@tokb=\expandafter{\pgfplots@loc@TMPa}% |
| 1375 |
\edef\pgfplots@loc@TMPc{\the\t@pgfplots@toka \the\t@pgfplots@tokb,}% |
| 1376 |
}% |
| 1377 |
\t@pgfplots@tokb=\expandafter{\pgfplots@loc@TMPc}% |
| 1378 |
\xdef\pgfplots@glob@TMPa{% |
| 1379 |
\noexpand\pgfplotsset{% |
| 1380 |
% this FORGETS the colormap positions intentionally... |
| 1381 |
colormap={@temp@CM}{indices of colormap={0,...,\pgfplots@colorcount@minus@one of \pgfplots@CM}}, |
| 1382 |
% ... and normalizes the number range. |
| 1383 |
point meta min=0,point meta max=1000, |
| 1384 |
colorbar style={ |
| 1385 |
surf,shader=interp, |
| 1386 |
colormap access=const, |
| 1387 |
\pgfplots@colorbar@as@legend@orientation tick=data, |
| 1388 |
% here we add the positions back into the |
| 1389 |
% tick label: |
| 1390 |
\pgfplots@colorbar@as@legend@orientation ticklabels={\the\t@pgfplots@tokb}, |
| 1391 |
}, |
| 1392 |
}% |
| 1393 |
}% |
| 1394 |
\endgroup |
| 1395 |
\pgfplots@glob@TMPa |
| 1396 |
}{% |
| 1397 |
% no 'append' section |
| 1398 |
},% |
| 1399 |
}, |
| 1400 |
% |
| 1401 |
/pgfplots/colorbar sampled/.style={% |
| 1402 |
/pgfplots/colorbar, |
| 1403 |
/pgfplots/colorbar/draw/.code={% |
| 1404 |
\axis[ |
| 1405 |
view={0}{90}, |
| 1406 |
cycle list={#1\\}, |
| 1407 |
domain=\pgfkeysvalueof{/pgfplots/point meta min}:\pgfkeysvalueof{/pgfplots/point meta max}, |
| 1408 |
samples y=2, |
| 1409 |
domain y=0:1, |
| 1410 |
every colorbar, |
| 1411 |
zmin=0,zmax=1, |
| 1412 |
colorbar shift,colorbar=false] |
| 1413 |
\pgfkeysvalueof{/pgfplots/colorbar addplot}% |
| 1414 |
\endaxis |
| 1415 |
},% |
| 1416 |
/pgfplots/colorbar horizontal/lowlevel/.style={% |
| 1417 |
/pgfplots/colorbar addplot={\addplot3 {0};}, |
| 1418 |
point meta=x, |
| 1419 |
},% |
| 1420 |
/pgfplots/colorbar vertical/lowlevel/.style={% |
| 1421 |
/pgfplots/colorbar addplot={\addplot3 (y,x,0);}, |
| 1422 |
point meta=y, |
| 1423 |
},% |
| 1424 |
},% |
| 1425 |
/pgfplots/colorbar sampled/.default={surf,mark=none,shader=flat}, |
| 1426 |
% tick options: |
| 1427 |
/pgfplots/xticklabel/.store in= \pgfplots@xticklabel, |
| 1428 |
/pgfplots/xticklabel/.belongs to family=/pgfplots/tick, |
| 1429 |
/pgfplots/xticklabel=, |
| 1430 |
/pgfplots/xticklabels/.belongs to family=/pgfplots/tick, |
| 1431 |
/pgfplots/xticklabels/.code={% |
| 1432 |
\pgfplotslistnew\pgfplots@xticklabels{#1}% |
| 1433 |
\let\pgfplots@xticklabel=\pgfplots@user@ticklabel@list@x |
| 1434 |
}, |
| 1435 |
% #1 table name or macro |
| 1436 |
% #2 column name (or alias or create on use) |
| 1437 |
/pgfplots/xticklabels from table/.code 2 args={% |
| 1438 |
\pgfplotstablegetcolumn{#2}\of{#1}\to\pgfplots@xticklabels |
| 1439 |
\let\pgfplots@xticklabel=\pgfplots@user@ticklabel@list@x |
| 1440 |
}, |
| 1441 |
/pgfplots/xticklabels from table/.belongs to family=/pgfplots/tick, |
| 1442 |
/pgfplots/yticklabels/.belongs to family=/pgfplots/tick, |
| 1443 |
/pgfplots/yticklabels/.code={% |
| 1444 |
\pgfplotslistnew\pgfplots@yticklabels{#1}% |
| 1445 |
\let\pgfplots@yticklabel=\pgfplots@user@ticklabel@list@y |
| 1446 |
}, |
| 1447 |
% #1 table name or macro |
| 1448 |
% #2 column name (or alias or create on use) |
| 1449 |
/pgfplots/yticklabels from table/.code 2 args={% |
| 1450 |
\pgfplotstablegetcolumn{#2}\of{#1}\to\pgfplots@yticklabels |
| 1451 |
\let\pgfplots@yticklabel=\pgfplots@user@ticklabel@list@y |
| 1452 |
}, |
| 1453 |
/pgfplots/yticklabels from table/.belongs to family=/pgfplots/tick, |
| 1454 |
/pgfplots/yticklabel/.store in= \pgfplots@yticklabel, |
| 1455 |
/pgfplots/yticklabel/.belongs to family=/pgfplots/tick, |
| 1456 |
/pgfplots/yticklabel=, |
| 1457 |
/pgfplots/zticklabels/.belongs to family=/pgfplots/tick, |
| 1458 |
/pgfplots/zticklabels/.code={% |
| 1459 |
\pgfplotslistnew\pgfplots@zticklabels{#1}% |
| 1460 |
\let\pgfplots@zticklabel=\pgfplots@user@ticklabel@list@z |
| 1461 |
}, |
| 1462 |
% #1 table name or macro |
| 1463 |
% #2 column name (or alias or create on use) |
| 1464 |
/pgfplots/zticklabels from table/.code 2 args={% |
| 1465 |
\pgfplotstablegetcolumn{#2}\of{#1}\to\pgfplots@zticklabels |
| 1466 |
\let\pgfplots@zticklabel=\pgfplots@user@ticklabel@list@z |
| 1467 |
}, |
| 1468 |
/pgfplots/zticklabels from table/.belongs to family=/pgfplots/tick, |
| 1469 |
/pgfplots/zticklabel/.store in= \pgfplots@zticklabel, |
| 1470 |
/pgfplots/zticklabel/.belongs to family=/pgfplots/tick, |
| 1471 |
/pgfplots/zticklabel=, |
| 1472 |
/pgfplots/x tick label as interval/.is if=pgfplots@xticklabel@interval, |
| 1473 |
/pgfplots/x tick label as interval/.default=true, |
| 1474 |
/pgfplots/x tick label as interval/.belongs to family=/pgfplots/tick, |
| 1475 |
/pgfplots/y tick label as interval/.is if=pgfplots@yticklabel@interval, |
| 1476 |
/pgfplots/y tick label as interval/.default=true, |
| 1477 |
/pgfplots/y tick label as interval/.belongs to family=/pgfplots/tick, |
| 1478 |
/pgfplots/z tick label as interval/.is if=pgfplots@zticklabel@interval, |
| 1479 |
/pgfplots/z tick label as interval/.default=true, |
| 1480 |
/pgfplots/z tick label as interval/.belongs to family=/pgfplots/tick, |
| 1481 |
/pgfplots/extra x tick label/.store in= \pgfplots@extra@xticklabel, |
| 1482 |
/pgfplots/extra x tick label/.belongs to family=/pgfplots/tick, |
| 1483 |
/pgfplots/extra x tick label=, |
| 1484 |
/pgfplots/extra x tick labels/.belongs to family=/pgfplots/tick, |
| 1485 |
/pgfplots/extra x tick labels/.code={% |
| 1486 |
\pgfplotslistnew\pgfplots@extra@xticklabels{#1}% |
| 1487 |
\let\pgfplots@extra@xticklabel=\pgfplots@user@extra@ticklabel@list@x |
| 1488 |
}, |
| 1489 |
/pgfplots/extra y tick labels/.code={% |
| 1490 |
\pgfplotslistnew\pgfplots@extra@yticklabels{#1}% |
| 1491 |
\let\pgfplots@extra@yticklabel=\pgfplots@user@extra@ticklabel@list@y |
| 1492 |
}, |
| 1493 |
/pgfplots/extra z tick labels/.code={% |
| 1494 |
\pgfplotslistnew\pgfplots@extra@zticklabels{#1}% |
| 1495 |
\let\pgfplots@extra@zticklabel=\pgfplots@user@extra@ticklabel@list@z |
| 1496 |
}, |
| 1497 |
/pgfplots/xtick/.store in= \pgfplots@xtick, |
| 1498 |
/pgfplots/xtick/.belongs to family=/pgfplots/tick, |
| 1499 |
/pgfplots/xtick=, |
| 1500 |
/pgfplots/extra x ticks/.store in=\pgfplots@extra@xtick, |
| 1501 |
/pgfplots/extra x ticks/.belongs to family=/pgfplots/tick, |
| 1502 |
/pgfplots/extra x ticks=, |
| 1503 |
/pgfplots/xtickten/.store in= \pgfplots@xtickten, |
| 1504 |
/pgfplots/xtickten/.belongs to family=/pgfplots/tick, |
| 1505 |
/pgfplots/xtickten=, |
| 1506 |
/pgfplots/extra y tick label/.store in= \pgfplots@extra@yticklabel, |
| 1507 |
/pgfplots/extra y tick label/.belongs to family=/pgfplots/tick, |
| 1508 |
/pgfplots/extra y tick label=, |
| 1509 |
/pgfplots/ytick/.store in= \pgfplots@ytick, |
| 1510 |
/pgfplots/ytick/.belongs to family=/pgfplots/tick, |
| 1511 |
/pgfplots/ytick=, |
| 1512 |
/pgfplots/extra y ticks/.store in=\pgfplots@extra@ytick, |
| 1513 |
/pgfplots/extra y ticks/.belongs to family=/pgfplots/tick, |
| 1514 |
/pgfplots/extra y ticks=, |
| 1515 |
/pgfplots/ytickten/.store in= \pgfplots@ytickten, |
| 1516 |
/pgfplots/ytickten/.belongs to family=/pgfplots/tick, |
| 1517 |
/pgfplots/ytickten=, |
| 1518 |
/pgfplots/extra z tick label/.store in= \pgfplots@extra@zticklabel, |
| 1519 |
/pgfplots/extra z tick label/.belongs to family=/pgfplots/tick, |
| 1520 |
/pgfplots/extra z tick label=, |
| 1521 |
/pgfplots/ztick/.store in= \pgfplots@ztick, |
| 1522 |
/pgfplots/ztick/.belongs to family=/pgfplots/tick, |
| 1523 |
/pgfplots/ztick=, |
| 1524 |
/pgfplots/extra z ticks/.store in=\pgfplots@extra@ztick, |
| 1525 |
/pgfplots/extra z ticks/.belongs to family=/pgfplots/tick, |
| 1526 |
/pgfplots/extra z ticks=, |
| 1527 |
/pgfplots/ztickten/.store in= \pgfplots@ztickten, |
| 1528 |
/pgfplots/ztickten/.belongs to family=/pgfplots/tick, |
| 1529 |
/pgfplots/ztickten=, |
| 1530 |
/pgfplots/tick scale binop/.initial=\cdot, |
| 1531 |
/pgfplots/xtick scale label code/.code={$\pgfkeysvalueof{/pgfplots/tick scale binop} 10^{#1}$}, |
| 1532 |
/pgfplots/xtick scale label code/.belongs to family=/pgfplots/tick, |
| 1533 |
/pgfplots/ytick scale label code/.code={$\pgfkeysvalueof{/pgfplots/tick scale binop} 10^{#1}$}, |
| 1534 |
/pgfplots/ytick scale label code/.belongs to family=/pgfplots/tick, |
| 1535 |
/pgfplots/ztick scale label code/.code={$\pgfkeysvalueof{/pgfplots/tick scale binop} 10^{#1}$}, |
| 1536 |
/pgfplots/ztick scale label code/.belongs to family=/pgfplots/tick, |
| 1537 |
/pgfplots/tick scale label code/.style={% |
| 1538 |
/pgfplots/xtick scale label code={#1}, |
| 1539 |
/pgfplots/ytick scale label code={#1}% |
| 1540 |
/pgfplots/ztick scale label code={#1}% |
| 1541 |
},% |
| 1542 |
/pgfplots/scaled x ticks/.code={\pgfplots@scaled@ticks@setargs{x}{#1}}, |
| 1543 |
/pgfplots/scaled x ticks/false/.code= {\def\pgfplots@scaled@ticks@x@choice{0}}, |
| 1544 |
/pgfplots/scaled x ticks/true/.code= {\def\pgfplots@scaled@ticks@x@choice{1}}, |
| 1545 |
/pgfplots/scaled x ticks/base 10/.code= {\def\pgfplots@scaled@ticks@x@choice{2}\def\pgfplots@scaled@ticks@x@arg{#1}}, |
| 1546 |
/pgfplots/scaled x ticks/real/.code= {% |
| 1547 |
\def\pgfplots@scaled@ticks@x@choice{3}\def\pgfplots@scaled@ticks@x@arg{#1}% |
| 1548 |
\pgfkeys{/pgfplots/xtick scale label code/.code={$\pgfkeysvalueof{/pgfplots/tick scale binop} \pgfmathprintnumber{#1}$}}}, |
| 1549 |
/pgfplots/scaled x ticks/manual/.code 2 args= {% |
| 1550 |
\def\pgfplots@scaled@ticks@x@choice{4}\def\pgfplots@scaled@ticks@x@arg##1{#2}% |
| 1551 |
\pgfkeys{/pgfplots/xtick scale label code/.code={#1}}}, |
| 1552 |
/pgfplots/scaled x ticks/.belongs to family=/pgfplots/tick, |
| 1553 |
/pgfplots/scaled x ticks=true, |
| 1554 |
/pgfplots/scaled y ticks/.code={\pgfplots@scaled@ticks@setargs{y}{#1}}, |
| 1555 |
/pgfplots/scaled y ticks/false/.code= {\def\pgfplots@scaled@ticks@y@choice{0}}, |
| 1556 |
/pgfplots/scaled y ticks/true/.code= {\def\pgfplots@scaled@ticks@y@choice{1}}, |
| 1557 |
/pgfplots/scaled y ticks/base 10/.code= {\def\pgfplots@scaled@ticks@y@choice{2}\def\pgfplots@scaled@ticks@y@arg{#1}}, |
| 1558 |
/pgfplots/scaled y ticks/real/.code= {% |
| 1559 |
\def\pgfplots@scaled@ticks@y@choice{3}\def\pgfplots@scaled@ticks@y@arg{#1}% |
| 1560 |
\pgfkeys{/pgfplots/ytick scale label code/.code={$\pgfkeysvalueof{/pgfplots/tick scale binop} \pgfmathprintnumber{#1}$}}}, |
| 1561 |
/pgfplots/scaled y ticks/manual/.code 2 args= {% |
| 1562 |
\def\pgfplots@scaled@ticks@y@choice{4}\def\pgfplots@scaled@ticks@y@arg##1{#2}% |
| 1563 |
\pgfkeys{/pgfplots/ytick scale label code/.code={#1}}}, |
| 1564 |
/pgfplots/scaled y ticks/.belongs to family=/pgfplots/tick, |
| 1565 |
/pgfplots/scaled y ticks=true, |
| 1566 |
/pgfplots/scaled z ticks/.code={\pgfplots@scaled@ticks@setargs{z}{#1}}, |
| 1567 |
/pgfplots/scaled z ticks/false/.code= {\def\pgfplots@scaled@ticks@z@choice{0}}, |
| 1568 |
/pgfplots/scaled z ticks/true/.code= {\def\pgfplots@scaled@ticks@z@choice{1}}, |
| 1569 |
/pgfplots/scaled z ticks/base 10/.code= {\def\pgfplots@scaled@ticks@z@choice{2}\def\pgfplots@scaled@ticks@z@arg{#1}}, |
| 1570 |
/pgfplots/scaled z ticks/real/.code= {% |
| 1571 |
\def\pgfplots@scaled@ticks@z@choice{3}\def\pgfplots@scaled@ticks@z@arg{#1}% |
| 1572 |
\pgfkeys{/pgfplots/ztick scale label code/.code={$\pgfkeysvalueof{/pgfplots/tick scale binop} \pgfmathprintnumber{#1}$}}}, |
| 1573 |
/pgfplots/scaled z ticks/manual/.code 2 args= {% |
| 1574 |
\def\pgfplots@scaled@ticks@z@choice{4}\def\pgfplots@scaled@ticks@z@arg##1{#2}% |
| 1575 |
\pgfkeys{/pgfplots/ztick scale label code/.code={#1}}}, |
| 1576 |
/pgfplots/scaled z ticks/.belongs to family=/pgfplots/tick, |
| 1577 |
/pgfplots/scaled z ticks=true, |
| 1578 |
/pgfplots/scaled ticks/.style={% |
| 1579 |
/pgfplots/scaled x ticks=#1, |
| 1580 |
/pgfplots/scaled y ticks=#1, |
| 1581 |
/pgfplots/scaled z ticks=#1 |
| 1582 |
}, |
| 1583 |
/pgfplots/scale ticks above exponent/.store in= \pgfplots@scale@ticks@above@exponent, |
| 1584 |
/pgfplots/scale ticks above exponent/.belongs to family=/pgfplots/tick, |
| 1585 |
/pgfplots/scale ticks above exponent=3, |
| 1586 |
/pgfplots/scale ticks below exponent/.store in= \pgfplots@scale@ticks@below@exponent, |
| 1587 |
/pgfplots/scale ticks below exponent/.belongs to family=/pgfplots/tick, |
| 1588 |
/pgfplots/scale ticks below exponent=-1, |
| 1589 |
/pgfplots/minor x tick num/.initial=0, |
| 1590 |
/pgfplots/minor x tick num/.belongs to family=/pgfplots/tick, |
| 1591 |
/pgfplots/minor y tick num/.initial=0, |
| 1592 |
/pgfplots/minor y tick num/.belongs to family=/pgfplots/tick, |
| 1593 |
/pgfplots/minor z tick num/.initial=0, |
| 1594 |
/pgfplots/minor z tick num/.belongs to family=/pgfplots/tick, |
| 1595 |
/pgfplots/minor tick num/.style={ |
| 1596 |
/pgfplots/minor x tick num=#1, |
| 1597 |
/pgfplots/minor y tick num=#1, |
| 1598 |
/pgfplots/minor z tick num=#1, |
| 1599 |
}, |
| 1600 |
/pgfplots/minor tick num/.belongs to family=/pgfplots/tick, |
| 1601 |
/pgfplots/minor xtick/.initial=, |
| 1602 |
/pgfplots/minor xtick/.belongs to family=/pgfplots/tick, |
| 1603 |
/pgfplots/minor ytick/.initial=, |
| 1604 |
/pgfplots/minor ytick/.belongs to family=/pgfplots/tick, |
| 1605 |
/pgfplots/minor ztick/.initial=, |
| 1606 |
/pgfplots/minor ztick/.belongs to family=/pgfplots/tick, |
| 1607 |
/pgfplots/minor tick/.style={ |
| 1608 |
/pgfplots/minor xtick={#1}, |
| 1609 |
/pgfplots/minor ytick={#1}, |
| 1610 |
/pgfplots/minor ztick={#1}, |
| 1611 |
}, |
| 1612 |
/pgfplots/minor tick/.belongs to family=/pgfplots/tick, |
| 1613 |
% |
| 1614 |
/pgfplots/subtickwidth/.style= {/pgfplots/minor tick length={#1}}, |
| 1615 |
/pgfplots/tickwidth/.style= {/pgfplots/major tick length={#1}}, |
| 1616 |
/pgfplots/minor tick length/.belongs to family=/pgfplots/tick, |
| 1617 |
/pgfplots/minor tick length/.initial=0.1cm, |
| 1618 |
/pgfplots/major tick length/.belongs to family=/pgfplots/tick, |
| 1619 |
/pgfplots/major tick length/.initial=0.15cm, |
| 1620 |
% |
| 1621 |
/pgfplots/xtick distance/.initial=, |
| 1622 |
/pgfplots/ytick distance/.initial=, |
| 1623 |
/pgfplots/ztick distance/.initial=, |
| 1624 |
/pgfplots/max space between ticks/.estore in=\axisdefaulttickwidth, |
| 1625 |
/pgfplots/max space between ticks/.belongs to family=/pgfplots/tick, |
| 1626 |
/pgfplots/max space between ticks=35,% the maximum space between adjacent ticks (in pt, but don't specify the unit 'pt') |
| 1627 |
/pgfplots/try min ticks/.estore in= \axisdefaulttryminticks, |
| 1628 |
/pgfplots/try min ticks/.belongs to family=/pgfplots/tick, |
| 1629 |
/pgfplots/try min ticks=4, |
| 1630 |
/pgfplots/try min ticks log/.estore in= \pgfplots@default@try@minticks@log, |
| 1631 |
/pgfplots/try min ticks log/.belongs to family=/pgfplots/tick, |
| 1632 |
/pgfplots/try min ticks log=3, |
| 1633 |
/pgfplots/log basis x/.initial=, |
| 1634 |
/pgfplots/log basis y/.initial=, |
| 1635 |
/pgfplots/log basis z/.initial=, |
| 1636 |
/pgfplots/log base x/.style={log basis x={#1}},% |
| 1637 |
/pgfplots/log base y/.style={log basis y={#1}},% |
| 1638 |
/pgfplots/log base z/.style={log basis z={#1}},% |
| 1639 |
/pgfplots/log plot exponent style/.style={/pgf/number format/fixed,/pgf/number format/precision=2}, |
| 1640 |
/pgfplots/log plot exponent style/.belongs to family=/pgfplots/tick, |
| 1641 |
/pgfplots/log identify minor tick positions/.is if=pgfplots@identify@log@minor@tick@pos, |
| 1642 |
/pgfplots/log identify minor tick positions/.belongs to family=/pgfplots/tick, |
| 1643 |
/pgfplots/log identify minor tick positions=false, |
| 1644 |
/pgfplots/log number format code/.code={% |
| 1645 |
\begingroup |
| 1646 |
\pgfmathlogtologten@{#1}% |
| 1647 |
\ifpgfplots@identify@log@minor@tick@pos |
| 1648 |
\expandafter\pgfplots@is@log@tick@a@minor@tick@pos\pgfmathresult\relax% |
| 1649 |
\else |
| 1650 |
\pgfplots@log@tick@isminor@tick@posfalse |
| 1651 |
\fi |
| 1652 |
\ifpgfplots@log@tick@isminor@tick@pos |
| 1653 |
\pgfmathprintnumber[sci]{\pgfmathresult}% |
| 1654 |
\else |
| 1655 |
\pgfkeysalso{/pgfplots/log plot exponent style,/pgfplots/log base 10 number format code=\pgfmathresult}% |
| 1656 |
\fi |
| 1657 |
\endgroup |
| 1658 |
}, |
| 1659 |
/pgfplots/log number format code/.belongs to family=/pgfplots/tick, |
| 1660 |
/pgfplots/log base 10 number format code/.code={{\pgfplots@invoke@pgfkeyscode{/pgfplots/log number format basis/.@cmd}{{10}{#1}}}}, |
| 1661 |
/pgfplots/log base 10 number format code/.belongs to family=/pgfplots/tick, |
| 1662 |
% #1 = basis |
| 1663 |
% #2 = exponent |
| 1664 |
/pgfplots/log number format basis/.code 2 args={$#1^{\pgfmathprintnumber{#2}}$}, |
| 1665 |
% |
| 1666 |
% #1= number formatting options |
| 1667 |
/pgfplots/log ticks with fixed point/.style={ |
| 1668 |
/pgfplots/log number format basis/.code 2 args={ |
| 1669 |
\begingroup |
| 1670 |
\edef\pgfplots@exponent{##2}% |
| 1671 |
\pgfkeysalso{/pgf/fpu}% |
| 1672 |
% configure the style to avoid crap like |
| 1673 |
% 10,000.2 or 0.000999937 : |
| 1674 |
\pgfqkeys{/pgf/number format}{% |
| 1675 |
% it is rounded relative to its (individual!) order of |
| 1676 |
% magnitude: |
| 1677 |
fixed relative, |
| 1678 |
% ... and with three digits relative to its order of |
| 1679 |
% magnitude. This should avoid rounding problems |
| 1680 |
% since it is applied to each tick number |
| 1681 |
% individually. |
| 1682 |
precision=3, |
| 1683 |
}% |
| 1684 |
\ifdim##1pt=10pt |
| 1685 |
\def\pgfplots@baselog{2.30258509299405}% |
| 1686 |
\else |
| 1687 |
\pgfmathparse{ln(##1)}% |
| 1688 |
\let\pgfplots@baselog=\pgfmathresult |
| 1689 |
\fi |
| 1690 |
\pgfmathparse{exp(\pgfplots@exponent*\pgfplots@baselog)}% |
| 1691 |
\pgfmathprintnumber[#1]\pgfmathresult |
| 1692 |
\endgroup |
| 1693 |
}, |
| 1694 |
}, |
| 1695 |
% takes #1 = [xyz]: |
| 1696 |
/pgfplots/log basis ticks/.style={% |
| 1697 |
/pgfplots/every #1 tick label/.append style={% |
| 1698 |
/pgfplots/log number format code/.code={% |
| 1699 |
\begingroup |
| 1700 |
\pgfkeysalso{/pgfplots/log plot exponent style}% |
| 1701 |
\pgfplots@invoke@pgfkeyscode{/pgfplots/log number format basis/.@cmd}{{\pgfkeysvalueof{/pgfplots/log basis #1}}{####1}}% |
| 1702 |
\endgroup |
| 1703 |
}% |
| 1704 |
}% |
| 1705 |
}, |
| 1706 |
% sets \pgfplots@[xy]tickposnum to |
| 1707 |
/pgfplots/xtick pos/.is choice, |
| 1708 |
/pgfplots/xtick pos/.belongs to family=/pgfplots/tick, |
| 1709 |
/pgfplots/xtick pos/left/.code ={\def\pgfplots@xtickposnum{1}}, |
| 1710 |
/pgfplots/xtick pos/left/.belongs to family=/pgfplots/tick, |
| 1711 |
/pgfplots/xtick pos/right/.code ={\def\pgfplots@xtickposnum{3}}, |
| 1712 |
/pgfplots/xtick pos/right/.belongs to family=/pgfplots/tick, |
| 1713 |
/pgfplots/xtick pos/both/.code ={\def\pgfplots@xtickposnum{0}}, |
| 1714 |
/pgfplots/xtick pos/both/.belongs to family=/pgfplots/tick, |
| 1715 |
/pgfplots/xtick pos=both, |
| 1716 |
/pgfplots/ytick pos/.is choice, |
| 1717 |
/pgfplots/ytick pos/.belongs to family=/pgfplots/tick, |
| 1718 |
/pgfplots/ytick pos/left/.code ={\def\pgfplots@ytickposnum{1}}, |
| 1719 |
/pgfplots/ytick pos/left/.belongs to family=/pgfplots/tick, |
| 1720 |
/pgfplots/ytick pos/right/.code ={\def\pgfplots@ytickposnum{3}}, |
| 1721 |
/pgfplots/ytick pos/right/.belongs to family=/pgfplots/tick, |
| 1722 |
/pgfplots/ytick pos/both/.code ={\def\pgfplots@ytickposnum{0}}, |
| 1723 |
/pgfplots/ytick pos/both/.belongs to family=/pgfplots/tick, |
| 1724 |
/pgfplots/ytick pos=both, |
| 1725 |
/pgfplots/ztick pos/.is choice, |
| 1726 |
/pgfplots/ztick pos/.belongs to family=/pgfplots/tick, |
| 1727 |
/pgfplots/ztick pos/left/.code ={\def\pgfplots@ztickposnum{1}}, |
| 1728 |
/pgfplots/ztick pos/left/.belongs to family=/pgfplots/tick, |
| 1729 |
/pgfplots/ztick pos/right/.code ={\def\pgfplots@ztickposnum{3}}, |
| 1730 |
/pgfplots/ztick pos/right/.belongs to family=/pgfplots/tick, |
| 1731 |
/pgfplots/ztick pos/both/.code ={\def\pgfplots@ztickposnum{0}}, |
| 1732 |
/pgfplots/ztick pos/both/.belongs to family=/pgfplots/tick, |
| 1733 |
/pgfplots/ztick pos=both, |
| 1734 |
/pgfplots/tickpos/.style={ |
| 1735 |
/pgfplots/xtick pos={#1}, |
| 1736 |
/pgfplots/ytick pos={#1}, |
| 1737 |
/pgfplots/ztick pos={#1} |
| 1738 |
}, |
| 1739 |
/pgfplots/tickpos/.belongs to family=/pgfplots/tick, |
| 1740 |
/pgfplots/tick pos/.style={/pgfplots/tickpos={#1}}, |
| 1741 |
% sets the tick LABEL position, \pgfplots@[xy]ticklabel@pos |
| 1742 |
% to one of |
| 1743 |
% lower (alias left alias bottom) : l |
| 1744 |
% upper (alias right alias top) : u |
| 1745 |
% default: uses one matches 'tick pos' |
| 1746 |
/pgfplots/xticklabel pos/.code={\pgfplots@setkey@ticklabelpos{x}{#1}}, |
| 1747 |
/pgfplots/xticklabel pos/.belongs to family=/pgfplots/tick, |
| 1748 |
/pgfplots/xticklabel pos=default, |
| 1749 |
/pgfplots/yticklabel pos/.code={\pgfplots@setkey@ticklabelpos{y}{#1}}, |
| 1750 |
/pgfplots/yticklabel pos/.belongs to family=/pgfplots/tick, |
| 1751 |
/pgfplots/yticklabel pos=default, |
| 1752 |
/pgfplots/zticklabel pos/.code={\pgfplots@setkey@ticklabelpos{z}{#1}}, |
| 1753 |
/pgfplots/zticklabel pos/.belongs to family=/pgfplots/tick, |
| 1754 |
/pgfplots/zticklabel pos=default, |
| 1755 |
/pgfplots/ticklabelpos/.style={/pgfplots/ticklabel pos={#1}}, |
| 1756 |
/pgfplots/ticklabel pos/.style={ |
| 1757 |
/pgfplots/xticklabel pos={#1}, |
| 1758 |
/pgfplots/yticklabel pos={#1}, |
| 1759 |
/pgfplots/zticklabel pos={#1}, |
| 1760 |
}, |
| 1761 |
% This feature is more or less deprecated. |
| 1762 |
% The choice 'auto' should always use 'near ticklabel'. |
| 1763 |
% |
| 1764 |
% Choices are |
| 1765 |
% 'auto' (value 0), |
| 1766 |
% 'near ticklabel' (value 1), |
| 1767 |
% 'tikz' (value 2) |
| 1768 |
% with values stored in \pgfplots@ticklabel@anchor@[xyz] |
| 1769 |
/pgfplots/xticklabel anchor/.code={\pgfplots@setticklabel@anchor@for x{#1}}, |
| 1770 |
/pgfplots/xticklabel anchor/.belongs to family=/pgfplots/tick, |
| 1771 |
/pgfplots/yticklabel anchor/.code={\pgfplots@setticklabel@anchor@for y{#1}}, |
| 1772 |
/pgfplots/yticklabel anchor/.belongs to family=/pgfplots/tick, |
| 1773 |
/pgfplots/zticklabel anchor/.code={\pgfplots@setticklabel@anchor@for z{#1}}, |
| 1774 |
/pgfplots/zticklabel anchor/.belongs to family=/pgfplots/tick, |
| 1775 |
/pgfplots/ticklabel anchor/.style={ |
| 1776 |
/pgfplots/xticklabel anchor={#1}, |
| 1777 |
/pgfplots/yticklabel anchor={#1}, |
| 1778 |
/pgfplots/zticklabel anchor={#1} |
| 1779 |
}, |
| 1780 |
/pgfplots/ticklabel anchor=auto, |
| 1781 |
/pgfplots/xticklabel shift/.initial=, |
| 1782 |
/pgfplots/yticklabel shift/.initial=, |
| 1783 |
/pgfplots/zticklabel shift/.initial=, |
| 1784 |
/pgfplots/ticklabel shift/.style={ |
| 1785 |
/pgfplots/xticklabel shift={#1}, |
| 1786 |
/pgfplots/yticklabel shift={#1}, |
| 1787 |
/pgfplots/zticklabel shift={#1} |
| 1788 |
},% |
| 1789 |
% sets \pgfplots@{x,y}tickalignnum to |
| 1790 |
% inside=0 |
| 1791 |
% outside=1 |
| 1792 |
% center=2 |
| 1793 |
/pgfplots/xtick align/.is choice, |
| 1794 |
/pgfplots/xtick align/.belongs to family=/pgfplots/tick, |
| 1795 |
/pgfplots/xtick align/inside/.code ={\def\pgfplots@xtickalignnum{0}}, |
| 1796 |
/pgfplots/xtick align/inside/.belongs to family=/pgfplots/tick, |
| 1797 |
/pgfplots/xtick align/outside/.code ={\def\pgfplots@xtickalignnum{1}}, |
| 1798 |
/pgfplots/xtick align/outside/.belongs to family=/pgfplots/tick, |
| 1799 |
/pgfplots/xtick align/center/.code ={\def\pgfplots@xtickalignnum{2}}, |
| 1800 |
/pgfplots/xtick align/center/.belongs to family=/pgfplots/tick, |
| 1801 |
/pgfplots/xtick align=inside, |
| 1802 |
/pgfplots/ytick align/.is choice, |
| 1803 |
/pgfplots/ytick align/.belongs to family=/pgfplots/tick, |
| 1804 |
/pgfplots/ytick align/inside/.code ={\def\pgfplots@ytickalignnum{0}}, |
| 1805 |
/pgfplots/ytick align/inside/.belongs to family=/pgfplots/tick, |
| 1806 |
/pgfplots/ytick align/outside/.code ={\def\pgfplots@ytickalignnum{1}}, |
| 1807 |
/pgfplots/ytick align/outside/.belongs to family=/pgfplots/tick, |
| 1808 |
/pgfplots/ytick align/center/.code ={\def\pgfplots@ytickalignnum{2}}, |
| 1809 |
/pgfplots/ytick align/center/.belongs to family=/pgfplots/tick, |
| 1810 |
/pgfplots/ytick align=inside, |
| 1811 |
/pgfplots/ztick align/.is choice, |
| 1812 |
/pgfplots/ztick align/.belongs to family=/pgfplots/tick, |
| 1813 |
/pgfplots/ztick align/inside/.code ={\def\pgfplots@ztickalignnum{0}}, |
| 1814 |
/pgfplots/ztick align/inside/.belongs to family=/pgfplots/tick, |
| 1815 |
/pgfplots/ztick align/outside/.code ={\def\pgfplots@ztickalignnum{1}}, |
| 1816 |
/pgfplots/ztick align/outside/.belongs to family=/pgfplots/tick, |
| 1817 |
/pgfplots/ztick align/center/.code ={\def\pgfplots@ztickalignnum{2}}, |
| 1818 |
/pgfplots/ztick align/center/.belongs to family=/pgfplots/tick, |
| 1819 |
/pgfplots/ztick align=inside, |
| 1820 |
/pgfplots/tick align/.belongs to family=/pgfplots/tick, |
| 1821 |
/pgfplots/tick align/.style={% |
| 1822 |
/pgfplots/xtick align=#1, |
| 1823 |
/pgfplots/ytick align=#1, |
| 1824 |
/pgfplots/ztick align=#1, |
| 1825 |
},% |
| 1826 |
% 'axis' options: |
| 1827 |
/pgfplots/anchor/.belongs to family=/pgfplots, |
| 1828 |
/pgfplots/anchor/.store in= \pgfplots@anchorname, |
| 1829 |
/pgfplots/anchor=south west, |
| 1830 |
% |
| 1831 |
% will be evaluated for *every* 'near ticklabel' anchor: |
| 1832 |
/pgfplots/near ticklabel align/.is choice, |
| 1833 |
/pgfplots/near ticklabel align/inside/.code= \def\pgfplots@borderanchor@align{0}, |
| 1834 |
/pgfplots/near ticklabel align/center/.code= \def\pgfplots@borderanchor@align{1}, |
| 1835 |
/pgfplots/near ticklabel align/outside/.code=\def\pgfplots@borderanchor@align{2}, |
| 1836 |
/pgfplots/near ticklabel align/center, |
| 1837 |
% |
| 1838 |
/tikz/near ticklabel at/.style={/pgfplots/near ticklabel at=#1}, |
| 1839 |
/pgfplots/near ticklabel at/.initial=, |
| 1840 |
% |
| 1841 |
/pgfplots/cell picture/.is choice, |
| 1842 |
/pgfplots/cell picture/false/.code=\def\pgfplots@cell@picture@mode{0}, |
| 1843 |
/pgfplots/cell picture/true/.code=\def\pgfplots@cell@picture@mode{1}, |
| 1844 |
/pgfplots/cell picture/if necessary/.code=\def\pgfplots@cell@picture@mode{2}, |
| 1845 |
/pgfplots/cell picture/true, % backwards compatibility |
| 1846 |
/pgfplots/log origin x/.is choice, |
| 1847 |
/pgfplots/log origin x/infty/.code={\def\pgfplots@log@origin@choice@x{0}}, |
| 1848 |
/pgfplots/log origin x/0/.code={\def\pgfplots@log@origin@choice@x{1}}, |
| 1849 |
/pgfplots/log origin y/.is choice, |
| 1850 |
/pgfplots/log origin y/infty/.code={\def\pgfplots@log@origin@choice@y{0}}, |
| 1851 |
/pgfplots/log origin y/0/.code={\def\pgfplots@log@origin@choice@y{1}}, |
| 1852 |
/pgfplots/log origin z/.is choice, |
| 1853 |
/pgfplots/log origin z/infty/.code={\def\pgfplots@log@origin@choice@z{0}}, |
| 1854 |
/pgfplots/log origin z/0/.code={\def\pgfplots@log@origin@choice@z{1}}, |
| 1855 |
/pgfplots/log origin/.style={% |
| 1856 |
/pgfplots/log origin x={#1}, |
| 1857 |
/pgfplots/log origin y={#1}, |
| 1858 |
/pgfplots/log origin z={#1}, |
| 1859 |
}, |
| 1860 |
/pgfplots/log origin=0, |
| 1861 |
% tick options: |
| 1862 |
/pgfplots/ticks/.is choice, |
| 1863 |
/pgfplots/ticks/.belongs to family=/pgfplots/tick, |
| 1864 |
/pgfplots/ticks/none/.belongs to family=/pgfplots/tick, |
| 1865 |
/pgfplots/ticks/none/.code={% |
| 1866 |
\pgfplots@xminorticksfalse |
| 1867 |
\pgfplots@yminorticksfalse |
| 1868 |
\pgfplots@zminorticksfalse |
| 1869 |
\pgfplots@xmajorticksfalse |
| 1870 |
\pgfplots@ymajorticksfalse |
| 1871 |
\pgfplots@zmajorticksfalse |
| 1872 |
}, |
| 1873 |
/pgfplots/ticks/major/.belongs to family=/pgfplots/tick, |
| 1874 |
/pgfplots/ticks/major/.code={% |
| 1875 |
\pgfplots@xminorticksfalse |
| 1876 |
\pgfplots@yminorticksfalse |
| 1877 |
\pgfplots@zminorticksfalse |
| 1878 |
\pgfplots@xmajortickstrue |
| 1879 |
\pgfplots@ymajortickstrue |
| 1880 |
\pgfplots@zmajortickstrue |
| 1881 |
}, |
| 1882 |
/pgfplots/ticks/minor/.belongs to family=/pgfplots/tick, |
| 1883 |
/pgfplots/ticks/minor/.code={% |
| 1884 |
\pgfplots@xminortickstrue |
| 1885 |
\pgfplots@yminortickstrue |
| 1886 |
\pgfplots@zminortickstrue |
| 1887 |
\pgfplots@xmajorticksfalse |
| 1888 |
\pgfplots@ymajorticksfalse |
| 1889 |
\pgfplots@zmajorticksfalse |
| 1890 |
}, |
| 1891 |
/pgfplots/ticks/both/.belongs to family=/pgfplots/tick, |
| 1892 |
/pgfplots/ticks/both/.code={% |
| 1893 |
\pgfplots@xminortickstrue |
| 1894 |
\pgfplots@yminortickstrue |
| 1895 |
\pgfplots@zminortickstrue |
| 1896 |
\pgfplots@xmajortickstrue |
| 1897 |
\pgfplots@ymajortickstrue |
| 1898 |
\pgfplots@zmajortickstrue |
| 1899 |
}, |
| 1900 |
/pgfplots/ticks=both, |
| 1901 |
/pgfplots/grid/.is choice, |
| 1902 |
/pgfplots/grid/.belongs to family=/pgfplots/tick, |
| 1903 |
/pgfplots/grid/none/.belongs to family=/pgfplots/tick, |
| 1904 |
/pgfplots/grid/none/.code={% |
| 1905 |
\pgfplots@xminorgridsfalse |
| 1906 |
\pgfplots@yminorgridsfalse |
| 1907 |
\pgfplots@zminorgridsfalse |
| 1908 |
\pgfplots@xmajorgridsfalse |
| 1909 |
\pgfplots@ymajorgridsfalse |
| 1910 |
\pgfplots@zmajorgridsfalse |
| 1911 |
}, |
| 1912 |
/pgfplots/grid/major/.belongs to family=/pgfplots/tick, |
| 1913 |
/pgfplots/grid/major/.code={% |
| 1914 |
\pgfplots@xminorgridsfalse |
| 1915 |
\pgfplots@yminorgridsfalse |
| 1916 |
\pgfplots@zminorgridsfalse |
| 1917 |
\pgfplots@xmajorgridstrue |
| 1918 |
\pgfplots@ymajorgridstrue |
| 1919 |
\pgfplots@zmajorgridstrue |
| 1920 |
}, |
| 1921 |
/pgfplots/grid/minor/.belongs to family=/pgfplots/tick, |
| 1922 |
/pgfplots/grid/minor/.code={% |
| 1923 |
\pgfplots@xminorgridstrue |
| 1924 |
\pgfplots@yminorgridstrue |
| 1925 |
\pgfplots@zminorgridstrue |
| 1926 |
\pgfplots@xmajorgridsfalse |
| 1927 |
\pgfplots@ymajorgridsfalse |
| 1928 |
\pgfplots@zmajorgridsfalse |
| 1929 |
}, |
| 1930 |
/pgfplots/grid/both/.belongs to family=/pgfplots/tick, |
| 1931 |
/pgfplots/grid/both/.code={% |
| 1932 |
\pgfplots@xminorgridstrue |
| 1933 |
\pgfplots@yminorgridstrue |
| 1934 |
\pgfplots@zminorgridstrue |
| 1935 |
\pgfplots@xmajorgridstrue |
| 1936 |
\pgfplots@ymajorgridstrue |
| 1937 |
\pgfplots@zmajorgridstrue |
| 1938 |
}, |
| 1939 |
/pgfplots/grid=none, |
| 1940 |
/pgfplots/grid/.default=major, |
| 1941 |
/pgfplots/xminorticks/.is if=pgfplots@xminorticks, |
| 1942 |
/pgfplots/xminorticks/.default=true, |
| 1943 |
/pgfplots/xminorticks/.belongs to family=/pgfplots/tick, |
| 1944 |
/pgfplots/xmajorticks/.is if=pgfplots@xmajorticks, |
| 1945 |
/pgfplots/xmajorticks/.default=true, |
| 1946 |
/pgfplots/xmajorticks/.belongs to family=/pgfplots/tick, |
| 1947 |
/pgfplots/yminorticks/.is if=pgfplots@yminorticks, |
| 1948 |
/pgfplots/yminorticks/.default=true, |
| 1949 |
/pgfplots/yminorticks/.belongs to family=/pgfplots/tick, |
| 1950 |
/pgfplots/ymajorticks/.is if=pgfplots@ymajorticks, |
| 1951 |
/pgfplots/ymajorticks/.default=true, |
| 1952 |
/pgfplots/ymajorticks/.belongs to family=/pgfplots/tick, |
| 1953 |
/pgfplots/zminorticks/.is if=pgfplots@zminorticks, |
| 1954 |
/pgfplots/zminorticks/.default=true, |
| 1955 |
/pgfplots/zminorticks/.belongs to family=/pgfplots/tick, |
| 1956 |
/pgfplots/zmajorticks/.is if=pgfplots@zmajorticks, |
| 1957 |
/pgfplots/zmajorticks/.default=true, |
| 1958 |
/pgfplots/zmajorticks/.belongs to family=/pgfplots/tick, |
| 1959 |
/pgfplots/xminorgrids/.is if=pgfplots@xminorgrids, |
| 1960 |
/pgfplots/xminorgrids/.default=true, |
| 1961 |
/pgfplots/xminorgrids/.belongs to family=/pgfplots/tick, |
| 1962 |
/pgfplots/xmajorgrids/.is if=pgfplots@xmajorgrids, |
| 1963 |
/pgfplots/xmajorgrids/.default=true, |
| 1964 |
/pgfplots/xmajorgrids/.belongs to family=/pgfplots/tick, |
| 1965 |
/pgfplots/yminorgrids/.is if=pgfplots@yminorgrids, |
| 1966 |
/pgfplots/yminorgrids/.default=true, |
| 1967 |
/pgfplots/yminorgrids/.belongs to family=/pgfplots/tick, |
| 1968 |
/pgfplots/ymajorgrids/.is if=pgfplots@ymajorgrids, |
| 1969 |
/pgfplots/ymajorgrids/.default=true, |
| 1970 |
/pgfplots/ymajorgrids/.belongs to family=/pgfplots/tick, |
| 1971 |
/pgfplots/zminorgrids/.is if=pgfplots@zminorgrids, |
| 1972 |
/pgfplots/zminorgrids/.default=true, |
| 1973 |
/pgfplots/zminorgrids/.belongs to family=/pgfplots/tick, |
| 1974 |
/pgfplots/zmajorgrids/.is if=pgfplots@zmajorgrids, |
| 1975 |
/pgfplots/zmajorgrids/.default=true, |
| 1976 |
/pgfplots/zmajorgrids/.belongs to family=/pgfplots/tick, |
| 1977 |
% legend options: |
| 1978 |
/pgfplots/legend entries/.initial={}, |
| 1979 |
/pgfplots/legend entries/.belongs to family=/pgfplots/legend, |
| 1980 |
/pgfplots/legend to label/.style={/pgfplots/legend to name={#1}}, |
| 1981 |
/pgfplots/legend to name/.initial=,% |
| 1982 |
/pgfplots/legend pos/.is choice, |
| 1983 |
/pgfplots/legend pos/south west/.style={/pgfplots/legend style={at={(0.03,0.03)},anchor=south west}}, |
| 1984 |
/pgfplots/legend pos/south east/.style={/pgfplots/legend style={at={(0.97,0.03)},anchor=south east}}, |
| 1985 |
/pgfplots/legend pos/north west/.style={/pgfplots/legend style={at={(0.03,0.97)},anchor=north west}}, |
| 1986 |
/pgfplots/legend pos/north east/.style={/pgfplots/legend style={at={(0.97,0.97)},anchor=north east}}, |
| 1987 |
/pgfplots/legend pos/outer north east/.style={/pgfplots/legend style={at={(1.03,1)},anchor=north west}}, |
| 1988 |
/pgfplots/legend cell align/.is choice, |
| 1989 |
/pgfplots/legend cell align/left/.style= {/pgfplots/legend style={cells={anchor=west}}}, |
| 1990 |
/pgfplots/legend cell align/right/.style= {/pgfplots/legend style={cells={anchor=east}}}, |
| 1991 |
/pgfplots/legend cell align/center/.style= {/pgfplots/legend style={cells={anchor=center}}}, |
| 1992 |
/pgfplots/legend columns/.store in=\pgfplots@legend@columns, |
| 1993 |
/pgfplots/legend columns/.belongs to family=/pgfplots/legend, |
| 1994 |
/pgfplots/legend columns=1, |
| 1995 |
/pgfplots/legend plot pos/.is choice, |
| 1996 |
/pgfplots/legend plot pos/.belongs to family=/pgfplots/legend, |
| 1997 |
/pgfplots/legend plot pos/left/.code= {\def\pgfplots@legend@plot@pos{0}}, |
| 1998 |
/pgfplots/legend plot pos/left/.belongs to family=/pgfplots/legend, |
| 1999 |
/pgfplots/legend plot pos/right/.code= {\def\pgfplots@legend@plot@pos{1}}, |
| 2000 |
/pgfplots/legend plot pos/right/.belongs to family=/pgfplots/legend, |
| 2001 |
/pgfplots/legend plot pos/none/.code= {\def\pgfplots@legend@plot@pos{2}}, |
| 2002 |
/pgfplots/legend plot pos/none/.belongs to family=/pgfplots/legend, |
| 2003 |
/pgfplots/legend plot pos=left, |
| 2004 |
/pgfplots/every legend image post/.code={},% |
| 2005 |
/pgfplots/legend image post style/.style={/pgfplots/every legend image post/.append style={#1}}, |
| 2006 |
/pgfplots/empty legend/.style={/pgfplots/legend image code/.code=}, |
| 2007 |
/pgfplots/line legend/.style={% |
| 2008 |
/pgfplots/legend image code/.code={% |
| 2009 |
\draw[% |
| 2010 |
/pgfplots/mesh=false,% |
| 2011 |
% reset bar options. This is to address the strange |
| 2012 |
% backwards compatibility handling implemented by |
| 2013 |
% \pgfplots@install@local@bar@handlers (see its docs). |
| 2014 |
% This should not hurt at all since 'line legend' is |
| 2015 |
% unsuitable for bar plots anyway. |
| 2016 |
bar width=3pt,% |
| 2017 |
bar shift=0pt,% |
| 2018 |
% |
| 2019 |
mark repeat=2,% |
| 2020 |
mark phase=2,##1] |
| 2021 |
plot coordinates { |
| 2022 |
(0cm,0cm) |
| 2023 |
(0.3cm,0cm) |
| 2024 |
(0.6cm,0cm)% |
| 2025 |
};% |
| 2026 |
}% |
| 2027 |
}, |
| 2028 |
/pgfplots/line legend/.style/.code={\pgfplots@error{This style is supposed to be constant.}},% |
| 2029 |
/pgfplots/line legend/.append style/.code={\pgfplots@error{This style is supposed to be constant.}},% |
| 2030 |
/pgfplots/line legend, |
| 2031 |
/pgfplots/legend image code/.belongs to family=/pgfplots/legend, |
| 2032 |
/pgfplots/reverse legend/.is if=pgfplots@reverse@legend, |
| 2033 |
/pgfplots/reverse legend/.default=true, |
| 2034 |
/pgfplots/transpose legend/.is if=pgfplots@transpose@legend, |
| 2035 |
/pgfplots/transpose legend/.default=true, |
| 2036 |
/pgfplots/legend transposed/.style={transpose legend=#1}, |
| 2037 |
/pgfplots/legend reversed/.style={reverse legend=#1}, |
| 2038 |
% axis description options: |
| 2039 |
/pgfplots/title/.initial=, |
| 2040 |
/pgfplots/xlabel/.initial=, |
| 2041 |
/pgfplots/ylabel/.initial=, |
| 2042 |
/pgfplots/zlabel/.initial=, |
| 2043 |
/pgfplots/xlabel shift/.initial=0pt, |
| 2044 |
/pgfplots/ylabel shift/.initial=0pt, |
| 2045 |
/pgfplots/zlabel shift/.initial=0pt, |
| 2046 |
/pgfplots/label shift/.style={% |
| 2047 |
/pgfplots/xlabel shift={#1}, |
| 2048 |
/pgfplots/ylabel shift={#1}, |
| 2049 |
/pgfplots/zlabel shift={#1}, |
| 2050 |
},% |
| 2051 |
/pgfplots/extra description/.code=, |
| 2052 |
% axis options: |
| 2053 |
/pgfplots/at/.code={% |
| 2054 |
\pgfplots@assert@tikzinternal@exists{tikz@scan@one@point}% |
| 2055 |
\tikz@scan@one@point\pgfplots@set@at#1}, |
| 2056 |
/pgfplots/at/.belongs to family=/pgfplots, |
| 2057 |
/pgfplots/trim axis left/.code={% |
| 2058 |
\pgfutil@ifundefined{pgfsettrimleft}{% |
| 2059 |
\pgfplots@error{Sorry, the 'trim axis left' requires a more recent PGF version.}% |
| 2060 |
}{% |
| 2061 |
\pgfkeysalso{/tikz/trim left=(current axis.south west)}% |
| 2062 |
}% |
| 2063 |
},% |
| 2064 |
/tikz/trim axis left/.style={/pgfplots/trim axis left}, |
| 2065 |
/pgfplots/trim axis right/.code={% |
| 2066 |
\pgfutil@ifundefined{pgfsettrimleft}{% |
| 2067 |
\pgfplots@error{Sorry, the 'trim axis right' requires a more recent PGF version.}% |
| 2068 |
}{% |
| 2069 |
\pgfkeysalso{/tikz/trim right=(current axis.south east)}% |
| 2070 |
}% |
| 2071 |
},% |
| 2072 |
/tikz/trim axis right/.style={/pgfplots/trim axis right}, |
| 2073 |
/pgfplots/clip limits compat/.is if=pgfplots@clip@limits@compatmode, |
| 2074 |
/pgfplots/clip limits if compat/.code={ |
| 2075 |
\ifpgfplots@clip@limits@compatmode |
| 2076 |
\else |
| 2077 |
\pgfkeysalso{#1}% |
| 2078 |
\fi |
| 2079 |
}, |
| 2080 |
/pgfplots/clip xlimits/.is if=pgfplots@clip@limits@x, |
| 2081 |
/pgfplots/clip xlimits/.default=true, |
| 2082 |
/pgfplots/clip ylimits/.is if=pgfplots@clip@limits@y, |
| 2083 |
/pgfplots/clip ylimits/.default=true, |
| 2084 |
/pgfplots/clip zlimits/.is if=pgfplots@clip@limits@z, |
| 2085 |
/pgfplots/clip zlimits/.default=true, |
| 2086 |
/pgfplots/clip limits/.style={ |
| 2087 |
/pgfplots/clip xlimits={#1},% |
| 2088 |
/pgfplots/clip ylimits={#1},% |
| 2089 |
/pgfplots/clip zlimits={#1},% |
| 2090 |
}, |
| 2091 |
/pgfplots/clip limits=true, |
| 2092 |
%/pgfplots/clip limits/.belongs to family=/pgfplots, |
| 2093 |
/pgfplots/clip/.is if=pgfplots@clip, |
| 2094 |
/pgfplots/clip/.default=true, |
| 2095 |
/pgfplots/clip=true, |
| 2096 |
/pgfplots/clip mode/.is choice, |
| 2097 |
/pgfplots/clip mode/global/.code= \def\pgfplots@clipmode{1}, |
| 2098 |
% this choice is implemented partially only (only for plots, not for |
| 2099 |
% graphical elements): |
| 2100 |
/pgfplots/clip mode/individual/.code= \def\pgfplots@clipmode{2}, |
| 2101 |
/pgfplots/clip mode=global, |
| 2102 |
/pgfplots/clip bounding box/.is choice, |
| 2103 |
/pgfplots/clip bounding box/default tikz/.code=\def\pgfplots@clip@BB@mode{0}, |
| 2104 |
/pgfplots/clip bounding box/upper bound/.code=\def\pgfplots@clip@BB@mode{1}, |
| 2105 |
/pgfplots/clip bounding box=default tikz, % the compat stuff. this is for backw. compat. |
| 2106 |
% will be used if it exists: |
| 2107 |
/pgfplots/axis background/.style={}, |
| 2108 |
/pgfplots/axis background style/.style={/pgfplots/axis background/.append style={#1}}, |
| 2109 |
% |
| 2110 |
% the 'axis background@' style is an optimization: it will only be |
| 2111 |
% used if 'axis background' is non-empty. |
| 2112 |
% The motivation is that once 'axis background' is non-empty, a |
| 2113 |
% background path will be generated whereas the 'axis background@' |
| 2114 |
% style can be changed at will. |
| 2115 |
/pgfplots/axis background@/.style={}, |
| 2116 |
/pgfplots/axis background@ style/.style={/pgfplots/axis background@/.append style={#1}}, |
| 2117 |
% |
| 2118 |
% 2d: 'unit vector ratio=2 1 is relative to y axis (x is twice as large as y) |
| 2119 |
% 3d: 'unit vector ratio=2 2 1 is relative to z axis (x and y are both twice as large as z) |
| 2120 |
% missing values are assumed to be 1. |
| 2121 |
/pgfplots/unit vector ratio/.initial=,% empty means 'disable rescale'. |
| 2122 |
/pgfplots/unit vector ratio axis/.initial=,% DEBUG. This is the reference axis which won't be scaled down. This key might vanish. |
| 2123 |
/pgfplots/unit vector ratio*/.style={% |
| 2124 |
/pgfplots/unit vector ratio={#1}, |
| 2125 |
/pgfplots/unit rescale keep size=false, |
| 2126 |
}, |
| 2127 |
/pgfplots/unit rescale keep size/.is choice, |
| 2128 |
/pgfplots/unit rescale keep size/true/.code={\def\pgfplots@unit@vector@rescale@keep@size{1}}, |
| 2129 |
/pgfplots/unit rescale keep size/false/.code={\def\pgfplots@unit@vector@rescale@keep@size{0}}, |
| 2130 |
/pgfplots/unit rescale keep size/unless limits declared/.code={\def\pgfplots@unit@vector@rescale@keep@size{2}}, |
| 2131 |
/pgfplots/unit rescale keep size/.default=true, |
| 2132 |
/pgfplots/unit rescale keep size=unless limits declared, |
| 2133 |
/pgfplots/axis equal/.is choice, |
| 2134 |
/pgfplots/axis equal/true/.style={ |
| 2135 |
/pgfplots/unit vector ratio=1 1 1, |
| 2136 |
/pgfplots/unit rescale keep size=true |
| 2137 |
}, |
| 2138 |
/pgfplots/axis equal/false/.style={ |
| 2139 |
/pgfplots/unit vector ratio=, |
| 2140 |
}, |
| 2141 |
/pgfplots/axis equal/.default=true, |
| 2142 |
/pgfplots/axis equal image/.is choice, |
| 2143 |
/pgfplots/axis equal image/true/.style={% |
| 2144 |
/pgfplots/unit vector ratio=1 1 1, |
| 2145 |
/pgfplots/unit rescale keep size=false |
| 2146 |
}, |
| 2147 |
/pgfplots/axis equal image/false/.style={% |
| 2148 |
/pgfplots/unit vector ratio=, |
| 2149 |
}, |
| 2150 |
/pgfplots/axis equal image/.default=true, |
| 2151 |
/pgfplots/xmin/.initial=, |
| 2152 |
/pgfplots/xmax/.initial=, |
| 2153 |
/pgfplots/ymin/.initial=, |
| 2154 |
/pgfplots/ymax/.initial=, |
| 2155 |
/pgfplots/zmin/.initial=, |
| 2156 |
/pgfplots/zmax/.initial=, |
| 2157 |
/pgfplots/min/.style={xmin={#1},ymin={#1},zmin={#1}}, |
| 2158 |
/pgfplots/max/.style={xmax={#1},ymax={#1},zmax={#1}}, |
| 2159 |
/pgfplots/xtickmin/.initial=, |
| 2160 |
/pgfplots/xtickmax/.initial=, |
| 2161 |
/pgfplots/ytickmin/.initial=, |
| 2162 |
/pgfplots/ytickmax/.initial=, |
| 2163 |
/pgfplots/ztickmin/.initial=, |
| 2164 |
/pgfplots/ztickmax/.initial=, |
| 2165 |
/pgfplots/stack plots/.is choice, |
| 2166 |
/pgfplots/stack plots/.belongs to family=/pgfplots, |
| 2167 |
/pgfplots/stack plots/x/.code={\def\pgfplots@stacked@dir{x}\pgfplots@stackedmodetrue}, |
| 2168 |
/pgfplots/stack plots/x/.belongs to family=/pgfplots, |
| 2169 |
/pgfplots/stack plots/y/.code={\def\pgfplots@stacked@dir{y}\pgfplots@stackedmodetrue}, |
| 2170 |
/pgfplots/stack plots/y/.belongs to family=/pgfplots, |
| 2171 |
/pgfplots/stack plots/z/.code={\def\pgfplots@stacked@dir{z}\pgfplots@stackedmodetrue}, |
| 2172 |
/pgfplots/stack plots/z/.belongs to family=/pgfplots, |
| 2173 |
/pgfplots/stack plots/false/.code={\pgfplots@stackedmodefalse}, |
| 2174 |
/pgfplots/stack plots/false/.belongs to family=/pgfplots, |
| 2175 |
/pgfplots/stack plots=false, |
| 2176 |
/pgfplots/stack negative/.is choice, |
| 2177 |
/pgfplots/stack negative/on previous/.code={\def\pgfplots@stacked@negative@mode{P}}, |
| 2178 |
/pgfplots/stack negative/separate/.code={\def\pgfplots@stacked@negative@mode{S}}, |
| 2179 |
/pgfplots/stack negative/on previous, |
| 2180 |
/pgfplots/reverse stacked plots/.is if=pgfplots@stacked@reverse, |
| 2181 |
/pgfplots/reverse stacked plots/.belongs to family=/pgfplots, |
| 2182 |
/pgfplots/reverse stacked plots/.default=true, |
| 2183 |
/pgfplots/reverse stacked plots=true, |
| 2184 |
/pgfplots/stack dir/.is choice, |
| 2185 |
/pgfplots/stack dir/.belongs to family=/pgfplots, |
| 2186 |
/pgfplots/stack dir/plus/.code={\pgfplots@stacked@plustrue}, |
| 2187 |
/pgfplots/stack dir/plus/.belongs to family=/pgfplots, |
| 2188 |
/pgfplots/stack dir/minus/.code={\pgfplots@stacked@plusfalse}, |
| 2189 |
/pgfplots/stack dir/minus/.belongs to family=/pgfplots, |
| 2190 |
/pgfplots/stack dir=plus, |
| 2191 |
/pgfplots/stacked ignores zero/.is if=pgfplots@stacked@ignores@zero, |
| 2192 |
/pgfplots/stacked ignores zero/.default=true, |
| 2193 |
% |
| 2194 |
% The purpose of the following key is to control the case 'stacked ignores zero=true' |
| 2195 |
% (it has no effect if 'stacked ignores zero=false'). |
| 2196 |
% The feature "stacked ignores zero" is active *if and only if* |
| 2197 |
% 1. stacked ignores zero=true and |
| 2198 |
% 2. stacked ignores zero/<phasename>=true |
| 2199 |
% Valid <phasename>s are 'default', 'markers', 'errorbars'. |
| 2200 |
/pgfplots/stacked ignores zero/\pgfplotsaxis@visphase@name@default/.initial=true, |
| 2201 |
/pgfplots/stacked ignores zero/\pgfplotsaxis@visphase@name@markers/.initial=true, |
| 2202 |
/pgfplots/stacked ignores zero/\pgfplotsaxis@visphase@name@errorbars/.initial=false, |
| 2203 |
/pgfplots/filter discard warning/.is if=pgfplots@warn@for@filter@discards, |
| 2204 |
/pgfplots/filter discard warning=true, |
| 2205 |
/pgfplots/pre filter/.code={}, |
| 2206 |
/pgfplots/x filter/.code={}, |
| 2207 |
/pgfplots/x filter/.belongs to family=/pgfplots, |
| 2208 |
/pgfplots/y filter/.code={}, |
| 2209 |
/pgfplots/y filter/.belongs to family=/pgfplots, |
| 2210 |
/pgfplots/z filter/.code={}, |
| 2211 |
/pgfplots/z filter/.belongs to family=/pgfplots, |
| 2212 |
/pgfplots/filter point/.code=, |
| 2213 |
/pgfplots/x filter/.expression/.code=\pgfplots@install@filter@expression{x filter}{#1}, |
| 2214 |
/pgfplots/y filter/.expression/.code=\pgfplots@install@filter@expression{y filter}{#1}, |
| 2215 |
/pgfplots/z filter/.expression/.code=\pgfplots@install@filter@expression{z filter}{#1}, |
| 2216 |
/pgfplots/x filter/.append expression/.code=\pgfplots@install@filter@expression@append{x filter}{#1}, |
| 2217 |
/pgfplots/y filter/.append expression/.code=\pgfplots@install@filter@expression@append{y filter}{#1}, |
| 2218 |
/pgfplots/z filter/.append expression/.code=\pgfplots@install@filter@expression@append{z filter}{#1}, |
| 2219 |
/pgfplots/restrict x to domain/.style={/pgfplots/@restrict to domain={x}{}{#1}{0}},% |
| 2220 |
/pgfplots/restrict y to domain/.style={/pgfplots/@restrict to domain={y}{}{#1}{0}},% |
| 2221 |
/pgfplots/restrict z to domain/.style={/pgfplots/@restrict to domain={z}{}{#1}{0}},% |
| 2222 |
/pgfplots/restrict expr to domain/.style 2 args={/pgfplots/@restrict to domain={x}{#1}{#2}{0}},% |
| 2223 |
/pgfplots/restrict x to domain*/.style={/pgfplots/@restrict to domain={x}{}{#1}{1}},% |
| 2224 |
/pgfplots/restrict y to domain*/.style={/pgfplots/@restrict to domain={y}{}{#1}{1}},% |
| 2225 |
/pgfplots/restrict z to domain*/.style={/pgfplots/@restrict to domain={z}{}{#1}{1}},% |
| 2226 |
/pgfplots/restrict expr to domain*/.style 2 args={/pgfplots/@restrict to domain={x}{#1}{#2}{1}},% |
| 2227 |
% '#1': the filter to install (like 'x', 'y', or even 'hist/data') |
| 2228 |
% '#2': a mathematical expression (or empty) |
| 2229 |
% '#3': the interval. must be numeric currently, and of the form min:max |
| 2230 |
% '#4': bAssignLimits=0|1. if #4=1, any coordinate outside of the |
| 2231 |
% allowed domain will take the domain boundary as value. If #4=0, |
| 2232 |
% any coordinate outside of the allowed domain will get 'inf' or |
| 2233 |
% '-inf'. |
| 2234 |
/pgfplots/@restrict to domain/.code args={#1#2#3#4}{% |
| 2235 |
\if0#4% |
| 2236 |
\pgfkeysalso{/pgfplots/unbounded coords=jump}% |
| 2237 |
\fi |
| 2238 |
% when invoked, ##1 and ##2 will be floats: |
| 2239 |
\def\pgfplots@loc@TMPb##1:##2\relax{% |
| 2240 |
\pgfkeysalso{% |
| 2241 |
/pgfplots/#1 filter/.append code={% |
| 2242 |
\pgfplots@warn@if@log@basis@unset{#1}{domain restriction}% |
| 2243 |
\let\pgfplots@restrict@to@domain@orig=\pgfmathresult |
| 2244 |
\ifx\pgfmathresult\pgfutil@empty |
| 2245 |
% the input value is empty... skip it! |
| 2246 |
\else |
| 2247 |
\def\pgfplots@restrict@to@domain@tmp{#2}% |
| 2248 |
\ifx\pgfplots@restrict@to@domain@tmp\pgfutil@empty |
| 2249 |
% we don't have an expression. |
| 2250 |
\else |
| 2251 |
% evaluate the expression! |
| 2252 |
\pgfmathparse{#2}% |
| 2253 |
\fi |
| 2254 |
\pgfplotscoordmath{default}{parsenumber}{\pgfmathresult}% |
| 2255 |
\let\pgfplots@restrict@to@domain@tmp=\pgfmathresult |
| 2256 |
% |
| 2257 |
\pgfplotscoordmath{default}{if less than} |
| 2258 |
{\pgfplots@restrict@to@domain@tmp}{##1}% ##1 is the lower argument |
| 2259 |
{% |
| 2260 |
\edef\pgfmathresult{\if0#4inf\else ##1\fi}% |
| 2261 |
}{% |
| 2262 |
\pgfplotscoordmath{default}{if less than} |
| 2263 |
{##2}{\pgfplots@restrict@to@domain@tmp} |
| 2264 |
{\edef\pgfmathresult{\if0#4-inf\else ##2\fi}} |
| 2265 |
{\let\pgfmathresult=\pgfplots@restrict@to@domain@orig}% |
| 2266 |
}% |
| 2267 |
\fi |
| 2268 |
}% |
| 2269 |
}% |
| 2270 |
}% |
| 2271 |
% when invoked, ##1 and ##2 will be the user-supplied args. |
| 2272 |
\def\pgfplots@loc@TMPc##1:##2\relax{% |
| 2273 |
% XXX : it would be great to use 'parse' here... but the entire key is evaluated in a context where 'key filtering' is in effect, and that essentially hinders the activation of the floating point math parser (i.e. the key /pgf/fpu)! |
| 2274 |
\pgfplotscoordmath{default}{parsenumber}{##1}% |
| 2275 |
\let\pgfplots@rangea=\pgfmathresult |
| 2276 |
\pgfplotscoordmath{default}{parsenumber}{##2}% |
| 2277 |
\edef\pgfplots@loc@TMPc{\pgfplots@rangea:\pgfmathresult}% |
| 2278 |
\expandafter\pgfplots@loc@TMPb\pgfplots@loc@TMPc\relax |
| 2279 |
}% |
| 2280 |
\edef\pgfplots@loc@TMPa{#3}% |
| 2281 |
\expandafter\pgfplots@loc@TMPc\pgfplots@loc@TMPa\relax |
| 2282 |
},% |
| 2283 |
% -> keeps only the nth point, all other ones will get ''. |
| 2284 |
/pgfplots/each nth point/.style={/pgfplots/each nth point*={x}{#1}},% |
| 2285 |
% #1: the filter name: x, y, z, or something exotic like hist/data |
| 2286 |
% #2: the N of 'each nth' |
| 2287 |
/pgfplots/each nth point*/.style 2 args={% |
| 2288 |
/pgfplots/#1 filter/.append code={% |
| 2289 |
\ifnum\coordindex=0 |
| 2290 |
\def\c@pgfplots@eachnthpoint@xfilter{0}% |
| 2291 |
\edef\c@pgfplots@eachnthpoint@xfilter@cmp{#2}% |
| 2292 |
\else |
| 2293 |
\pgfplotsutil@advancestringcounter\c@pgfplots@eachnthpoint@xfilter |
| 2294 |
\ifx\c@pgfplots@eachnthpoint@xfilter@cmp\c@pgfplots@eachnthpoint@xfilter |
| 2295 |
\def\c@pgfplots@eachnthpoint@xfilter{0}% |
| 2296 |
\else |
| 2297 |
\let\pgfmathresult\pgfutil@empty |
| 2298 |
\fi |
| 2299 |
\fi |
| 2300 |
}% |
| 2301 |
}, |
| 2302 |
/pgfplots/skip coords between index/.style 2 args={/pgfplots/skip coords between index*={x}{#1}{#2}},% |
| 2303 |
% #1: the filter name |
| 2304 |
% #2,#3: from 'skip coords between index' |
| 2305 |
/pgfplots/skip coords between index*/.style n args={3}{% |
| 2306 |
/pgfplots/#1 filter/.append code={% |
| 2307 |
\ifnum\coordindex<#2\relax |
| 2308 |
\else |
| 2309 |
\ifnum\coordindex<#3\relax |
| 2310 |
\let\pgfmathresult=\pgfutil@empty |
| 2311 |
\fi |
| 2312 |
\fi} |
| 2313 |
}, |
| 2314 |
/pgfplots/translate gnuplot/.is if=pgfplots@translategnuplot, |
| 2315 |
/pgfplots/gnuplot writes logscale/.is choice, |
| 2316 |
/pgfplots/gnuplot writes logscale/true/.code={\gdef\pgfplots@gnuplot@logscale@writes@log{1}},% |
| 2317 |
/pgfplots/gnuplot writes logscale/false/.code={\gdef\pgfplots@gnuplot@logscale@writes@log{0}},% |
| 2318 |
/pgfplots/parametric/var 2d/.initial={\u,\v}, |
| 2319 |
/pgfplots/parametric/var 1d/.initial=\t, |
| 2320 |
/pgfplots/xfilter/.initial=,% DEPRECATED |
| 2321 |
/pgfplots/yfilter/.initial=,% DEPRECATED |
| 2322 |
/pgfplots/zfilter/.initial=,% DEPRECATED |
| 2323 |
% interpretation: |
| 2324 |
% if 'samples at'==empty && 'domain' == empty |
| 2325 |
% use tikz option processing! |
| 2326 |
% else if 'samples at' == empty |
| 2327 |
% use 'domain' |
| 2328 |
% else |
| 2329 |
% use 'samples at' |
| 2330 |
/pgfplots/domain/.initial=,% empty -> use value of /tikz/domain! see \pgfplots@validate@plot@domain@arguments |
| 2331 |
/pgfplots/y domain/.initial=,% means: use the same as 'domain' |
| 2332 |
/pgfplots/domain y/.style={/pgfplots/y domain={#1}}, |
| 2333 |
/pgfplots/samples at/.initial=,% empty -> use value of /tikz/samples at! |
| 2334 |
/pgfplots/samples/.initial=,% empty -> use /tikz/samples! |
| 2335 |
/pgfplots/samples y/.initial=,% empty -> use the same as 'samples'. For use in mesh plots. |
| 2336 |
/pgfplots/samples at colormap pos/.code={% |
| 2337 |
\pgfplots@colorbar@positions@to@samplesat |
| 2338 |
}, |
| 2339 |
/pgfplots/variable/.code={\pgfkeysalso{/tikz/variable={#1}}}, |
| 2340 |
/pgfplots/variable y/.initial=\y,% |
| 2341 |
/pgfplots/sample dim/.initial=auto, |
| 2342 |
% and provide aliases in the '/pgfplots/' tree to avoid |
| 2343 |
% search path problems just for the following options: |
| 2344 |
/pgfplots/name/.code={\pgfkeysalso{/tikz/name={#1}}}, |
| 2345 |
/pgfplots/overlay/.code={\pgfkeysalso{/tikz/overlay={#1}}}, |
| 2346 |
/pgfplots/alias/.code={\pgfkeysalso{/tikz/alias={#1}}}, |
| 2347 |
/pgfplots/id/.code={\pgfkeysalso{/tikz/id={#1}}}, |
| 2348 |
/pgfplots/prefix/.code={\pgfkeysalso{/tikz/prefix={#1}}}, |
| 2349 |
/pgfplots/raw gnuplot/.code={\pgfkeysalso{/tikz/raw gnuplot={#1}}}, |
| 2350 |
/pgfplots/parametric/.code={\pgfkeysalso{/tikz/parametric={#1}}},% |
| 2351 |
% |
| 2352 |
/pgfplots/width/.initial=,% |
| 2353 |
/pgfplots/width/.belongs to family=/pgfplots, |
| 2354 |
/pgfplots/height/.initial=,% |
| 2355 |
/pgfplots/height/.belongs to family=/pgfplots, |
| 2356 |
/pgfplots/execute at begin plot/.initial=, |
| 2357 |
/pgfplots/execute at begin plot visualization/.initial=, |
| 2358 |
/pgfplots/execute at begin plot@@/.initial=,% an internal variant |
| 2359 |
/pgfplots/execute at end plot/.initial=, |
| 2360 |
/pgfplots/execute at end plot visualization/.initial=, |
| 2361 |
/pgfplots/execute at end plot@@/.initial=,% an internal variant |
| 2362 |
/pgfplots/execute at end survey/.initial=,% |
| 2363 |
/pgfplots/execute at begin axis/.initial=, |
| 2364 |
/pgfplots/execute at begin axis@@/.initial=,% an internal variant |
| 2365 |
/pgfplots/execute at end axis/.initial=, |
| 2366 |
/pgfplots/execute at end axis@@/.initial=,% an internal variant |
| 2367 |
/pgfplots/execute for finished point/.initial=, |
| 2368 |
/pgfplots/before end axis/.code=, |
| 2369 |
/pgfplots/after end axis/.code=, |
| 2370 |
/pgfplots/enlarge x limits/.initial=auto, |
| 2371 |
/pgfplots/enlarge x limits/.default=true, |
| 2372 |
/pgfplots/enlarge y limits/.initial=auto, |
| 2373 |
/pgfplots/enlarge y limits/.default=true, |
| 2374 |
/pgfplots/enlarge z limits/.initial=auto, |
| 2375 |
/pgfplots/enlarge z limits/.default=true, |
| 2376 |
/pgfplots/enlargelimits/.style={% |
| 2377 |
/pgfplots/enlarge x limits={#1},% |
| 2378 |
/pgfplots/enlarge y limits={#1},% |
| 2379 |
/pgfplots/enlarge z limits={#1},% |
| 2380 |
},% |
| 2381 |
/pgfplots/enlargelimits/.default=true, |
| 2382 |
/pgfplots/enlargelimits respects figure size/.is if=pgfplots@enlargelimits@respect@figure@size, |
| 2383 |
/pgfplots/update limits/.is if=pgfplots@bb@isactive, |
| 2384 |
/pgfplots/x/.initial=,% is implicitly set by 'width' and/or '\axisdefaultwidth' |
| 2385 |
/pgfplots/x/.belongs to family=/pgfplots, |
| 2386 |
/pgfplots/y/.initial=,% is implicitly set by 'width' and/or '\axisdefaultwidth' |
| 2387 |
/pgfplots/y/.belongs to family=/pgfplots, |
| 2388 |
/pgfplots/z/.initial=, |
| 2389 |
/pgfplots/z/.belongs to family=/pgfplots, |
| 2390 |
/pgfplots/view dir/.initial=,% DEBUG |
| 2391 |
/pgfplots/x dir/.code={\pgfplots@setkey@axisdir@for x{#1}},% |
| 2392 |
/pgfplots/y dir/.code={\pgfplots@setkey@axisdir@for y{#1}},% |
| 2393 |
/pgfplots/z dir/.code={\pgfplots@setkey@axisdir@for z{#1}},% |
| 2394 |
/pgfplots/x dir=normal,% |
| 2395 |
/pgfplots/y dir=normal,% |
| 2396 |
/pgfplots/z dir=normal,% |
| 2397 |
/pgfplots/x post scale/.initial=, |
| 2398 |
/pgfplots/y post scale/.initial=, |
| 2399 |
/pgfplots/z post scale/.initial=, |
| 2400 |
/pgfplots/scale/.style={% |
| 2401 |
/pgfplots/x post scale={#1},% |
| 2402 |
/pgfplots/y post scale={#1},% |
| 2403 |
/pgfplots/z post scale={#1},% |
| 2404 |
}, |
| 2405 |
/pgfplots/scale mode/.is choice, |
| 2406 |
/pgfplots/scale mode/auto/.code={\def\pgfplots@scale@mode@choice{0}}, |
| 2407 |
/pgfplots/scale mode/none/.code={\def\pgfplots@scale@mode@choice{1}}, |
| 2408 |
/pgfplots/scale mode/stretch to fill/.code={\def\pgfplots@scale@mode@choice{2}}, |
| 2409 |
/pgfplots/scale mode/scale uniformly/.code={\def\pgfplots@scale@mode@choice{3}}, |
| 2410 |
/pgfplots/scale mode/auto, |
| 2411 |
/pgfplots/scale uniformly strategy/.is choice, |
| 2412 |
% chooses one of the other choices depending on the target |
| 2413 |
% width/height: |
| 2414 |
/pgfplots/scale uniformly strategy/auto/.code= {\def\pgfplots@scaleuniformly@choice{0}}, |
| 2415 |
% scales units only, but does not compensate limits: |
| 2416 |
/pgfplots/scale uniformly strategy/units only/.code= {\def\pgfplots@scaleuniformly@choice{1}}, |
| 2417 |
% changes only vertical limits, no horizontal limits: |
| 2418 |
/pgfplots/scale uniformly strategy/change vertical limits/.code= {\def\pgfplots@scaleuniformly@choice{2}}, |
| 2419 |
% changes X and Y limits, but not Z limits - adjusts scale accordingly: |
| 2420 |
/pgfplots/scale uniformly strategy/change horizontal limits/.code= {\def\pgfplots@scaleuniformly@choice{3}}, |
| 2421 |
/pgfplots/scale uniformly strategy/auto, |
| 2422 |
/pgfplots/scale uniformly warning/.is if=pgfplots@scaleuniformly@warning, |
| 2423 |
/pgfplots/scale uniformly warning=false, |
| 2424 |
% number of iterations for the nonlinear method involved |
| 2425 |
/pgfplots/scale uniformly strategy iter/.initial=9, |
| 2426 |
/pgfplots/allow reversal of rel axis cs/.is if=pgfplots@allow@reversal@of@rel@axis@cs,% |
| 2427 |
/pgfplots/allow reversal of rel axis cs/.default=true,% |
| 2428 |
/pgfplots/allow reversal of rel axis cs=true,% |
| 2429 |
/pgfplots/plot box ratio/.initial=1 1 1,% |
| 2430 |
/pgfplots/view/az/.initial=25,% |
| 2431 |
/pgfplots/view/h/.code={\pgfkeyssetvalue{/pgfplots/view/az}{#1}},% |
| 2432 |
/pgfplots/view/el/.initial=30,% |
| 2433 |
/pgfplots/view/v/.code={\pgfkeyssetvalue{/pgfplots/view/el}{#1}},% |
| 2434 |
/pgfplots/view/.style 2 args={% |
| 2435 |
/pgfplots/view/az={#1},% |
| 2436 |
/pgfplots/view/el={#2}% |
| 2437 |
},% |
| 2438 |
/pgfplots/cycle list/.define/.code 2 args={% |
| 2439 |
\pgfplotscreateplotcyclelist{#1}{#2}% |
| 2440 |
}, |
| 2441 |
/pgfplots/cycle list/.style={% |
| 2442 |
/pgfplots/cycle list/.define={@internal@}{#1},% |
| 2443 |
/pgfplots/cycle list name={@internal@}% |
| 2444 |
}, |
| 2445 |
/pgfplots/cycle list/.belongs to family=/pgfplots, |
| 2446 |
/pgfplots/cycle list name/.code={% |
| 2447 |
\pgfplotsifcyclelistexists{#1}{% |
| 2448 |
\expandafter\let\expandafter\autoplotspeclist\csname pgfp@cyclist@\string#1@\endcsname |
| 2449 |
\expandafter\let\csname pgfp@cyclist@auto@\endcsname=\autoplotspeclist |
| 2450 |
\pgfkeyssetvalue{/pgfplots/cycle multi list/@dim}{0}% de-activate. |
| 2451 |
}{% |
| 2452 |
\pgfplots@error{Sorry, there is no such cycle list named \string#1. Maybe you misspelled it?}% |
| 2453 |
}% |
| 2454 |
}, |
| 2455 |
/pgfplots/cycle list name/.belongs to family=/pgfplots, |
| 2456 |
/pgfplots/cycle list name=color, |
| 2457 |
/pgfplots/cycle list shift/.initial=, |
| 2458 |
/pgfplots/mark list fill/.initial=.!80!black, |
| 2459 |
% accepts arguments of the form |
| 2460 |
% <first list spec>\nextlist <second list spec>\nextlist .... |
| 2461 |
% where each list spec is EITHER a cycle list name OR a cycle list |
| 2462 |
% argument. |
| 2463 |
/pgfplots/cycle multi list/.code={% |
| 2464 |
\def\pgfplots@cycle@multi@list@sequence{L}% [L]exicographical |
| 2465 |
\pgfplots@cycle@multi@list{#1}% |
| 2466 |
}, |
| 2467 |
/pgfplots/cycle multi list/.belongs to family=/pgfplots, |
| 2468 |
/pgfplots/cycle multiindex list/.code={% |
| 2469 |
\def\pgfplots@cycle@multi@list@sequence{M}% [M]ultiindex |
| 2470 |
\def\pgfplots@cycle@multi@list@repeat{A}% [A]ll |
| 2471 |
\pgfplots@cycle@multi@list{#1}% |
| 2472 |
}, |
| 2473 |
/pgfplots/cycle multiindex list/.belongs to family=/pgfplots, |
| 2474 |
/pgfplots/cycle multiindex* list/.code={% |
| 2475 |
\def\pgfplots@cycle@multi@list@sequence{M}% [M]ultiindex |
| 2476 |
\def\pgfplots@cycle@multi@list@repeat{S}% [S]ingle |
| 2477 |
\pgfplots@cycle@multi@list{#1}% |
| 2478 |
}, |
| 2479 |
/pgfplots/cycle multiindex* list/.belongs to family=/pgfplots, |
| 2480 |
% #1: list index |
| 2481 |
% #2: maximum number of elements to use |
| 2482 |
/pgfplots/cycle multi list/partial sublist/.code 2 args={% |
| 2483 |
\ifnum#1<\pgfkeysvalueof{/pgfplots/cycle multi list/@dim} |
| 2484 |
\ifnum#2<\pgfkeysvalueof{/pgfplots/cycle multi list/@totalN#1} |
| 2485 |
\pgfkeyssetvalue{/pgfplots/cycle multi list/@N#1}{#2}% |
| 2486 |
\fi |
| 2487 |
\else |
| 2488 |
\pgfplots@error{Sorry, the first argument of `cycle multi list/partial sublist=<list index><num elems>' is no valid list index (should be less than \pgfkeysvalueof{/pgfplots/cycle multi list/@dim}).}% |
| 2489 |
\fi |
| 2490 |
},% |
| 2491 |
/pgfplots/cycle multi list/@dim/.initial=0, |
| 2492 |
%/pgfplots/cycle multi list/@maxlen/.initial=0, |
| 2493 |
%/pgfplots/cycle multi list/@list0/.style={}, |
| 2494 |
%/pgfplots/cycle multi list/@N0/.initial=0,% |
| 2495 |
%/pgfplots/cycle multi list/@totalN0/.initial=0,% |
| 2496 |
/pgfplots/legend style/.belongs to family=/pgfplots/style commands, |
| 2497 |
/pgfplots/legend style/.code={% |
| 2498 |
\pgfkeysalso{/pgfplots/every axis legend/.append style={#1}}% |
| 2499 |
}, |
| 2500 |
/pgfplots/every forget plot/.code={},% |
| 2501 |
/pgfplots/forget plot style/.style={/pgfplots/every forget plot/.append style={#1}}, |
| 2502 |
/pgfplots/label style/.belongs to family=/pgfplots/style commands, |
| 2503 |
/pgfplots/label style/.style={% |
| 2504 |
/pgfplots/every axis x label/.append style={#1},% |
| 2505 |
/pgfplots/every axis y label/.append style={#1},% |
| 2506 |
/pgfplots/every axis z label/.append style={#1}% |
| 2507 |
},% |
| 2508 |
/pgfplots/x label style/.belongs to family=/pgfplots/style commands, |
| 2509 |
/pgfplots/x label style/.code={% |
| 2510 |
\pgfkeysalso{/pgfplots/every axis x label/.append style={#1}}% |
| 2511 |
}, |
| 2512 |
/pgfplots/y label style/.belongs to family=/pgfplots/style commands, |
| 2513 |
/pgfplots/y label style/.code={% |
| 2514 |
\pgfkeysalso{/pgfplots/every axis y label/.append style={#1}}% |
| 2515 |
}, |
| 2516 |
/pgfplots/z label style/.belongs to family=/pgfplots/style commands, |
| 2517 |
/pgfplots/z label style/.code={% |
| 2518 |
\pgfkeysalso{/pgfplots/every axis z label/.append style={#1}}% |
| 2519 |
}, |
| 2520 |
/pgfplots/title style/.belongs to family=/pgfplots/style commands, |
| 2521 |
/pgfplots/title style/.code={% |
| 2522 |
\pgfkeysalso{/pgfplots/every axis title/.append style={#1}}% |
| 2523 |
}, |
| 2524 |
/pgfplots/tick label style/.belongs to family=/pgfplots/style commands, |
| 2525 |
/pgfplots/tick label style/.code={% |
| 2526 |
\pgfkeysalso{/pgfplots/every tick label/.append style={#1}}% |
| 2527 |
}, |
| 2528 |
/pgfplots/x tick label style/.belongs to family=/pgfplots/style commands, |
| 2529 |
/pgfplots/x tick label style/.code={% |
| 2530 |
\pgfkeysalso{/pgfplots/every x tick label/.append style={#1}}% |
| 2531 |
}, |
| 2532 |
/pgfplots/y tick label style/.belongs to family=/pgfplots/style commands, |
| 2533 |
/pgfplots/y tick label style/.code={% |
| 2534 |
\pgfkeysalso{/pgfplots/every y tick label/.append style={#1}}% |
| 2535 |
}, |
| 2536 |
/pgfplots/z tick label style/.belongs to family=/pgfplots/style commands, |
| 2537 |
/pgfplots/z tick label style/.code={% |
| 2538 |
\pgfkeysalso{/pgfplots/every z tick label/.append style={#1}}% |
| 2539 |
}, |
| 2540 |
/pgfplots/x tick scale label style/.belongs to family=/pgfplots/style commands, |
| 2541 |
/pgfplots/x tick scale label style/.code={% |
| 2542 |
\pgfkeysalso{/pgfplots/every x tick scale label/.append style={#1}}% |
| 2543 |
}, |
| 2544 |
/pgfplots/y tick scale label style/.belongs to family=/pgfplots/style commands, |
| 2545 |
/pgfplots/y tick scale label style/.code={% |
| 2546 |
\pgfkeysalso{/pgfplots/every y tick scale label/.append style={#1}}% |
| 2547 |
}, |
| 2548 |
/pgfplots/z tick scale label style/.belongs to family=/pgfplots/style commands, |
| 2549 |
/pgfplots/z tick scale label style/.code={% |
| 2550 |
\pgfkeysalso{/pgfplots/every z tick scale label/.append style={#1}}% |
| 2551 |
}, |
| 2552 |
/pgfplots/tick style/.belongs to family=/pgfplots/style commands, |
| 2553 |
/pgfplots/tick style/.code={% |
| 2554 |
\pgfkeysalso{/pgfplots/every tick/.append style={#1}}% |
| 2555 |
}, |
| 2556 |
/pgfplots/minor tick style/.belongs to family=/pgfplots/style commands, |
| 2557 |
/pgfplots/minor tick style/.code={% |
| 2558 |
\pgfkeysalso{/pgfplots/every minor tick/.append style={#1}}% |
| 2559 |
}, |
| 2560 |
/pgfplots/major tick style/.belongs to family=/pgfplots/style commands, |
| 2561 |
/pgfplots/major tick style/.code={% |
| 2562 |
\pgfkeysalso{/pgfplots/every major tick/.append style={#1}}% |
| 2563 |
}, |
| 2564 |
/pgfplots/x tick style/.belongs to family=/pgfplots/style commands, |
| 2565 |
/pgfplots/x tick style/.code={% |
| 2566 |
\pgfkeysalso{/pgfplots/every x tick/.append style={#1}}% |
| 2567 |
}, |
| 2568 |
/pgfplots/minor x tick style/.belongs to family=/pgfplots/style commands, |
| 2569 |
/pgfplots/minor x tick style/.code={% |
| 2570 |
\pgfkeysalso{/pgfplots/every minor x tick/.append style={#1}}% |
| 2571 |
}, |
| 2572 |
/pgfplots/major x tick style/.belongs to family=/pgfplots/style commands, |
| 2573 |
/pgfplots/major x tick style/.code={% |
| 2574 |
\pgfkeysalso{/pgfplots/every major x tick/.append style={#1}}% |
| 2575 |
}, |
| 2576 |
/pgfplots/y tick style/.belongs to family=/pgfplots/style commands, |
| 2577 |
/pgfplots/y tick style/.code={% |
| 2578 |
\pgfkeysalso{/pgfplots/every y tick/.append style={#1}}% |
| 2579 |
}, |
| 2580 |
/pgfplots/minor y tick style/.belongs to family=/pgfplots/style commands, |
| 2581 |
/pgfplots/minor y tick style/.code={% |
| 2582 |
\pgfkeysalso{/pgfplots/every minor y tick/.append style={#1}}% |
| 2583 |
}, |
| 2584 |
/pgfplots/major y tick style/.belongs to family=/pgfplots/style commands, |
| 2585 |
/pgfplots/major y tick style/.code={% |
| 2586 |
\pgfkeysalso{/pgfplots/every major y tick/.append style={#1}}% |
| 2587 |
}, |
| 2588 |
/pgfplots/z tick style/.belongs to family=/pgfplots/style commands, |
| 2589 |
/pgfplots/z tick style/.code={% |
| 2590 |
\pgfkeysalso{/pgfplots/every z tick/.append style={#1}}% |
| 2591 |
}, |
| 2592 |
/pgfplots/minor z tick style/.belongs to family=/pgfplots/style commands, |
| 2593 |
/pgfplots/minor z tick style/.code={% |
| 2594 |
\pgfkeysalso{/pgfplots/every minor z tick/.append style={#1}}% |
| 2595 |
}, |
| 2596 |
/pgfplots/major z tick style/.belongs to family=/pgfplots/style commands, |
| 2597 |
/pgfplots/major z tick style/.code={% |
| 2598 |
\pgfkeysalso{/pgfplots/every major z tick/.append style={#1}}% |
| 2599 |
}, |
| 2600 |
/pgfplots/grid style/.belongs to family=/pgfplots/style commands, |
| 2601 |
/pgfplots/grid style/.code={% |
| 2602 |
\pgfkeysalso{/pgfplots/every axis grid/.append style={#1}}% |
| 2603 |
}, |
| 2604 |
/pgfplots/minor grid style/.belongs to family=/pgfplots/style commands, |
| 2605 |
/pgfplots/minor grid style/.code={% |
| 2606 |
\pgfkeysalso{/pgfplots/every minor grid/.append style={#1}}% |
| 2607 |
}, |
| 2608 |
/pgfplots/major grid style/.belongs to family=/pgfplots/style commands, |
| 2609 |
/pgfplots/major grid style/.code={% |
| 2610 |
\pgfkeysalso{/pgfplots/every major grid/.append style={#1}}% |
| 2611 |
}, |
| 2612 |
/pgfplots/x grid style/.belongs to family=/pgfplots/style commands, |
| 2613 |
/pgfplots/x grid style/.code={% |
| 2614 |
\pgfkeysalso{/pgfplots/every axis x grid/.append style={#1}}% |
| 2615 |
}, |
| 2616 |
/pgfplots/minor x grid style/.belongs to family=/pgfplots/style commands, |
| 2617 |
/pgfplots/minor x grid style/.code={% |
| 2618 |
\pgfkeysalso{/pgfplots/every minor x grid/.append style={#1}}% |
| 2619 |
}, |
| 2620 |
/pgfplots/major x grid style/.belongs to family=/pgfplots/style commands, |
| 2621 |
/pgfplots/major x grid style/.code={% |
| 2622 |
\pgfkeysalso{/pgfplots/every major x grid/.append style={#1}}% |
| 2623 |
}, |
| 2624 |
/pgfplots/y grid style/.belongs to family=/pgfplots/style commands, |
| 2625 |
/pgfplots/y grid style/.code={% |
| 2626 |
\pgfkeysalso{/pgfplots/every axis y grid/.append style={#1}}% |
| 2627 |
}, |
| 2628 |
/pgfplots/minor y grid style/.belongs to family=/pgfplots/style commands, |
| 2629 |
/pgfplots/minor y grid style/.code={% |
| 2630 |
\pgfkeysalso{/pgfplots/every minor y grid/.append style={#1}}% |
| 2631 |
}, |
| 2632 |
/pgfplots/major y grid style/.belongs to family=/pgfplots/style commands, |
| 2633 |
/pgfplots/major y grid style/.code={% |
| 2634 |
\pgfkeysalso{/pgfplots/every major y grid/.append style={#1}}% |
| 2635 |
}, |
| 2636 |
/pgfplots/z grid style/.belongs to family=/pgfplots/style commands, |
| 2637 |
/pgfplots/z grid style/.code={% |
| 2638 |
\pgfkeysalso{/pgfplots/every axis z grid/.append style={#1}}% |
| 2639 |
}, |
| 2640 |
/pgfplots/minor z grid style/.belongs to family=/pgfplots/style commands, |
| 2641 |
/pgfplots/minor z grid style/.code={% |
| 2642 |
\pgfkeysalso{/pgfplots/every minor z grid/.append style={#1}}% |
| 2643 |
}, |
| 2644 |
/pgfplots/major z grid style/.belongs to family=/pgfplots/style commands, |
| 2645 |
/pgfplots/major z grid style/.code={% |
| 2646 |
\pgfkeysalso{/pgfplots/every major z grid/.append style={#1}}% |
| 2647 |
}, |
| 2648 |
/pgfplots/disablelogfilter x/.is if=pgfplots@disablelogfilter@x, |
| 2649 |
/pgfplots/disablelogfilter x/.default=true, |
| 2650 |
/pgfplots/disablelogfilter y/.is if=pgfplots@disablelogfilter@y, |
| 2651 |
/pgfplots/disablelogfilter y/.default=true, |
| 2652 |
/pgfplots/disablelogfilter z/.is if=pgfplots@disablelogfilter@z, |
| 2653 |
/pgfplots/disablelogfilter z/.default=true, |
| 2654 |
/pgfplots/disablelogfilter/.style={ |
| 2655 |
/pgfplots/disablelogfilter x=#1, |
| 2656 |
/pgfplots/disablelogfilter y=#1, |
| 2657 |
/pgfplots/disablelogfilter z=#1, |
| 2658 |
}, |
| 2659 |
/pgfplots/disabledatascaling/.is if=pgfplots@disabledatascaling, |
| 2660 |
/pgfplots/disabledatascaling/.default=true, |
| 2661 |
/pgfplots/disabledatascaling/.belongs to family=/pgfplots, |
| 2662 |
/pgfplots/disabledatascaling=false, |
| 2663 |
/pgfplots/hide x axis/.is if=pgfplots@hide@x, |
| 2664 |
/pgfplots/hide x axis/.default=true, |
| 2665 |
/pgfplots/hide x axis=false, |
| 2666 |
/pgfplots/hide y axis/.is if=pgfplots@hide@y, |
| 2667 |
/pgfplots/hide y axis/.default=true, |
| 2668 |
/pgfplots/hide y axis=false, |
| 2669 |
/pgfplots/hide z axis/.is if=pgfplots@hide@z, |
| 2670 |
/pgfplots/hide z axis/.default=true, |
| 2671 |
/pgfplots/hide z axis=false, |
| 2672 |
/pgfplots/hide axis/.style={% |
| 2673 |
/pgfplots/hide x axis=#1, |
| 2674 |
/pgfplots/hide y axis=#1, |
| 2675 |
/pgfplots/hide z axis=#1, |
| 2676 |
}, |
| 2677 |
/pgfplots/hide axis/.default=true, |
| 2678 |
/pgfplots/every non boxed x axis/.style={% |
| 2679 |
xtick align=center, |
| 2680 |
enlarge x limits=false, |
| 2681 |
x axis line style={-stealth} |
| 2682 |
}, |
| 2683 |
/pgfplots/every non boxed y axis/.style={% |
| 2684 |
ytick align=center, |
| 2685 |
enlarge y limits=false, |
| 2686 |
y axis line style={-stealth} |
| 2687 |
}, |
| 2688 |
/pgfplots/every non boxed z axis/.style={% |
| 2689 |
ztick align=center, |
| 2690 |
enlarge z limits=false, |
| 2691 |
z axis line style={-stealth} |
| 2692 |
}, |
| 2693 |
/pgfplots/every boxed x axis/.style={}, |
| 2694 |
/pgfplots/every boxed y axis/.style={}, |
| 2695 |
/pgfplots/every boxed z axis/.style={}, |
| 2696 |
% /pgfplots/hide axis/.belongs to family=/pgfplots, |
| 2697 |
% |
| 2698 |
/pgfplots/axis x line shift/.initial=, |
| 2699 |
/pgfplots/axis y line shift/.initial=, |
| 2700 |
/pgfplots/axis z line shift/.initial=, |
| 2701 |
/pgfplots/axis line shift/.style={% |
| 2702 |
/pgfplots/axis x line shift={#1},% |
| 2703 |
/pgfplots/axis y line shift={#1},% |
| 2704 |
/pgfplots/axis z line shift={#1},% |
| 2705 |
},% |
| 2706 |
% |
| 2707 |
% sets \pgfplots@xaxislinesnum to |
| 2708 |
% box=0 |
| 2709 |
% bottom=1 |
| 2710 |
% middle=2 ( aliased with center ) |
| 2711 |
% top=3 |
| 2712 |
/pgfplots/axis x line*/.is choice, |
| 2713 |
/pgfplots/axis x line*/box/.code ={\def\pgfplots@xaxislinesnum{0}\def\pgfplots@xtickposnum{0}}, |
| 2714 |
/pgfplots/axis x line*/bottom/.code ={\def\pgfplots@xaxislinesnum{1}\def\pgfplots@xtickposnum{1}\let\pgfplots@xticklabel@pos\pgfutil@empty}, |
| 2715 |
/pgfplots/axis x line*/left/.style={/pgfplots/axis x line*/bottom}, |
| 2716 |
/pgfplots/axis x line*/middle/.code ={\def\pgfplots@xaxislinesnum{2}\def\pgfplots@xtickposnum{2}\let\pgfplots@xticklabel@pos\pgfutil@empty}, |
| 2717 |
/pgfplots/axis x line*/center/.style ={/pgfplots/axis x line*/middle}, |
| 2718 |
/pgfplots/axis x line*/top/.code ={\def\pgfplots@xaxislinesnum{3}\def\pgfplots@xtickposnum{3}\let\pgfplots@xticklabel@pos\pgfutil@empty}, |
| 2719 |
/pgfplots/axis x line*/right/.style={/pgfplots/axis x line*/top}, |
| 2720 |
/pgfplots/axis x line*/none/.code ={\def\pgfplots@xaxislinesnum{4}\def\pgfplots@xtickposnum{4}\let\pgfplots@xticklabel@pos\pgfutil@empty}, |
| 2721 |
/pgfplots/axis x line*=box, |
| 2722 |
% |
| 2723 |
% sets \pgfplots@yaxislinesnum to |
| 2724 |
% box=0 |
| 2725 |
% left=1 |
| 2726 |
% center=2 ( aliased with middle ) |
| 2727 |
% right=3 |
| 2728 |
/pgfplots/axis y line*/.is choice, |
| 2729 |
/pgfplots/axis y line*/box/.code ={\def\pgfplots@yaxislinesnum{0}\def\pgfplots@ytickposnum{0}}, |
| 2730 |
/pgfplots/axis y line*/left/.code ={\def\pgfplots@yaxislinesnum{1}\def\pgfplots@ytickposnum{1}\let\pgfplots@yticklabel@pos\pgfutil@empty}, |
| 2731 |
/pgfplots/axis y line*/center/.code ={\def\pgfplots@yaxislinesnum{2}\def\pgfplots@ytickposnum{2}\let\pgfplots@yticklabel@pos\pgfutil@empty}, |
| 2732 |
/pgfplots/axis y line*/middle/.style ={/pgfplots/axis y line*/center}, |
| 2733 |
/pgfplots/axis y line*/right/.code ={\def\pgfplots@yaxislinesnum{3}\def\pgfplots@ytickposnum{3}\let\pgfplots@yticklabel@pos\pgfutil@empty}, |
| 2734 |
/pgfplots/axis y line*/none/.code ={\def\pgfplots@yaxislinesnum{4}\def\pgfplots@ytickposnum{4}\let\pgfplots@yticklabel@pos\pgfutil@empty}, |
| 2735 |
/pgfplots/axis y line*=box, |
| 2736 |
% |
| 2737 |
% |
| 2738 |
% sets \pgfplots@zaxislinesnum to |
| 2739 |
% box=0 |
| 2740 |
% left=1 |
| 2741 |
% center=2 ( aliased with middle ) |
| 2742 |
% right=3 |
| 2743 |
/pgfplots/axis z line*/.is choice, |
| 2744 |
/pgfplots/axis z line*/box/.code ={\def\pgfplots@zaxislinesnum{0}\def\pgfplots@ztickposnum{0}}, |
| 2745 |
/pgfplots/axis z line*/left/.code ={\def\pgfplots@zaxislinesnum{1}\def\pgfplots@ztickposnum{1}\let\pgfplots@zticklabel@pos\pgfutil@empty}, |
| 2746 |
/pgfplots/axis z line*/center/.code ={\def\pgfplots@zaxislinesnum{2}\def\pgfplots@ztickposnum{2}\let\pgfplots@zticklabel@pos\pgfutil@empty}, |
| 2747 |
/pgfplots/axis z line*/middle/.style ={/pgfplots/axis z line*/center}, |
| 2748 |
/pgfplots/axis z line*/right/.code ={\def\pgfplots@zaxislinesnum{3}\def\pgfplots@ztickposnum{3}\let\pgfplots@zticklabel@pos\pgfutil@empty}, |
| 2749 |
/pgfplots/axis z line*/none/.code ={\def\pgfplots@zaxislinesnum{4}\def\pgfplots@ztickposnum{4}\let\pgfplots@zticklabel@pos\pgfutil@empty}, |
| 2750 |
/pgfplots/axis z line*=box, |
| 2751 |
% |
| 2752 |
/pgfplots/axis x line/.is choice, |
| 2753 |
/pgfplots/axis y line/.is choice, |
| 2754 |
/pgfplots/axis z line/.is choice, |
| 2755 |
/pgfplots/axis lines/.style={% |
| 2756 |
axis x line=#1,% |
| 2757 |
axis y line=#1,% |
| 2758 |
axis z line=#1% |
| 2759 |
}, |
| 2760 |
/pgfplots/axis lines*/.style={% |
| 2761 |
axis x line*=#1,% |
| 2762 |
axis y line*=#1,% |
| 2763 |
axis z line*=#1% |
| 2764 |
}, |
| 2765 |
/pgfplots/compat/axis line style pre 1.8/.style={% |
| 2766 |
% ALL INSIDE OF THIS STYLE IS DEPRECATED. |
| 2767 |
/pgfplots/axis x line/box/.style ={ |
| 2768 |
/pgfplots/axis x line*/box, |
| 2769 |
/pgfplots/every boxed x axis |
| 2770 |
}, |
| 2771 |
/pgfplots/axis x line/bottom/.style ={ |
| 2772 |
/pgfplots/axis x line*/bottom, |
| 2773 |
/pgfplots/every non boxed x axis |
| 2774 |
}, |
| 2775 |
/pgfplots/axis x line/left/.style={/pgfplots/axis x line/bottom},% |
| 2776 |
/pgfplots/axis x line/middle/.code ={% |
| 2777 |
\ifnum\pgfplots@yaxislinesnum=3 % if 'axis y line==right' then |
| 2778 |
\pgfkeysalso{/pgfplots/every axis x label/.style={at={(current axis.left of origin)},anchor=south west}}% |
| 2779 |
\else |
| 2780 |
\pgfkeysalso{/pgfplots/every axis x label/.style={at={(current axis.right of origin)},anchor=south east}}% |
| 2781 |
\fi |
| 2782 |
\pgfkeysalso{/pgfplots/every axis x label/.append code={\pgfplots@label@upgrade@warning}}% |
| 2783 |
\pgfkeysalso{/pgfplots/axis x line*/middle, |
| 2784 |
/pgfplots/every non boxed x axis}% |
| 2785 |
}, |
| 2786 |
/pgfplots/axis x line/center/.style ={/pgfplots/axis x line/middle}, |
| 2787 |
/pgfplots/axis x line/right/.style={/pgfplots/axis x line/top},% |
| 2788 |
/pgfplots/axis x line/top/.code ={ |
| 2789 |
\ifnum\pgfplots@yaxislinesnum=2 % if 'axis y line==center' then |
| 2790 |
\pgfkeysalso{ |
| 2791 |
/pgfplots/every axis y label/.style={at={(current axis.below origin)},anchor=south west}}% |
| 2792 |
\fi |
| 2793 |
\pgfkeysalso{% |
| 2794 |
/pgfplots/axis x line*/top, |
| 2795 |
/pgfplots/every axis x label/.style={at={(0.5,1)},anchor=south,yshift=15pt}, |
| 2796 |
/pgfplots/every non boxed x axis}% |
| 2797 |
}, |
| 2798 |
/pgfplots/axis x line/none/.style ={axis x line*/none,hide x axis}, |
| 2799 |
% |
| 2800 |
% Y : |
| 2801 |
/pgfplots/axis y line/box/.style ={ |
| 2802 |
/pgfplots/axis y line*/box, |
| 2803 |
/pgfplots/every boxed y axis |
| 2804 |
}, |
| 2805 |
/pgfplots/axis y line/left/.style ={ |
| 2806 |
/pgfplots/axis y line*/left, |
| 2807 |
/pgfplots/every non boxed y axis |
| 2808 |
}, |
| 2809 |
/pgfplots/axis y line/center/.code ={ |
| 2810 |
\ifnum\pgfplots@xaxislinesnum=3 % if 'axis x line==top' then |
| 2811 |
\pgfkeysalso{% |
| 2812 |
/pgfplots/every axis y label/.style={at={(current axis.below origin)},anchor=south west}}% |
| 2813 |
\else |
| 2814 |
\pgfkeysalso{% |
| 2815 |
/pgfplots/every axis y label/.style={at={(current axis.above origin)},anchor=north west}}% |
| 2816 |
\fi |
| 2817 |
\pgfkeysalso{/pgfplots/every axis y label/.append code={\pgfplots@label@upgrade@warning}}% |
| 2818 |
\pgfkeysalso{% |
| 2819 |
/pgfplots/axis y line*/center, |
| 2820 |
/pgfplots/every non boxed y axis}% |
| 2821 |
}, |
| 2822 |
/pgfplots/axis y line/middle/.style ={/pgfplots/axis y line/center}, |
| 2823 |
/pgfplots/axis y line/right/.code ={% |
| 2824 |
\ifnum\pgfplots@xaxislinesnum=2 |
| 2825 |
\pgfkeysalso{every axis x label/.style={at={(current axis.left of origin)},anchor=south west}}% |
| 2826 |
\fi |
| 2827 |
\pgfkeysalso{ |
| 2828 |
axis y line*/right, |
| 2829 |
%every axis y label/.style={at={(1,1)},anchor=north west,xshift=15pt}, |
| 2830 |
% FIXME : DEPRECATED !? USE 'near tick' things .... |
| 2831 |
every axis y label/.style={at={(1,0.5)},xshift=33pt,rotate=90}, |
| 2832 |
/pgfplots/every non boxed y axis |
| 2833 |
}% |
| 2834 |
},% |
| 2835 |
/pgfplots/axis y line/none/.style ={axis y line*/none,hide y axis}, |
| 2836 |
% |
| 2837 |
% |
| 2838 |
% Z : |
| 2839 |
% |
| 2840 |
/pgfplots/axis z line/box/.style ={ |
| 2841 |
/pgfplots/axis z line*/box, |
| 2842 |
/pgfplots/every boxed z axis |
| 2843 |
}, |
| 2844 |
/pgfplots/axis z line/left/.style ={ |
| 2845 |
/pgfplots/axis z line*/left, |
| 2846 |
/pgfplots/every non boxed z axis |
| 2847 |
}, |
| 2848 |
/pgfplots/axis z line/center/.code ={ |
| 2849 |
% \ifnum\pgfplots@xaxislinesnum=3 % if 'axis x line==top' then |
| 2850 |
% \pgfkeysalso{% |
| 2851 |
% /pgfplots/every axis z label/.style={at={(current axis.below origin)},anchor=south west}}% |
| 2852 |
% \else |
| 2853 |
\pgfkeysalso{% |
| 2854 |
/pgfplots/every axis z label/.style={at={(current axis.above origin)},anchor=north west}}% |
| 2855 |
% \fi |
| 2856 |
\pgfkeysalso{/pgfplots/every axis z label/.append code={\pgfplots@label@upgrade@warning}}% |
| 2857 |
\pgfkeysalso{% |
| 2858 |
/pgfplots/axis z line*/center, |
| 2859 |
/pgfplots/every non boxed z axis}% |
| 2860 |
}, |
| 2861 |
/pgfplots/axis z line/middle/.style ={/pgfplots/axis z line/center}, |
| 2862 |
/pgfplots/axis z line/right/.code ={% |
| 2863 |
\ifnum\pgfplots@xaxislinesnum=2 |
| 2864 |
\pgfkeysalso{every axis x label/.style={at={(current axis.left of origin)},anchor=south west}}% |
| 2865 |
\fi |
| 2866 |
\pgfkeysalso{ |
| 2867 |
axis z line*/right, |
| 2868 |
%every axis y label/.style={at={(1,1)},anchor=north west,xshift=15pt}, |
| 2869 |
every axis z label/.style={at={(1,0.5)},xshift=33pt,rotate=90}, |
| 2870 |
/pgfplots/every non boxed z axis |
| 2871 |
}% |
| 2872 |
},% |
| 2873 |
/pgfplots/axis z line/none/.style ={axis z line*/none,hide z axis}, |
| 2874 |
}, |
| 2875 |
/pgfplots/compat/axis line style post 1.8/.style={% |
| 2876 |
/pgfplots/axis x line/box/.style ={ |
| 2877 |
/pgfplots/axis x line*/box, |
| 2878 |
/pgfplots/xlabel near ticks, |
| 2879 |
/pgfplots/every boxed x axis |
| 2880 |
}, |
| 2881 |
/pgfplots/axis x line/bottom/.style ={ |
| 2882 |
/pgfplots/axis x line*/bottom, |
| 2883 |
/pgfplots/every non boxed x axis |
| 2884 |
}, |
| 2885 |
/pgfplots/axis x line/left/.style={/pgfplots/axis x line/bottom},% |
| 2886 |
/pgfplots/axis x line/middle/.code ={% |
| 2887 |
\ifnum\pgfplots@yaxislinesnum=3 % if 'axis y line==right' then |
| 2888 |
\pgfkeysalso{/pgfplots/every axis x label/.style={ |
| 2889 |
/pgfplots/near ticklabel align=inside,at={(ticklabel* cs:0)},anchor=near ticklabel opposite}}% |
| 2890 |
\else |
| 2891 |
\pgfkeysalso{/pgfplots/every axis x label/.style={ |
| 2892 |
/pgfplots/near ticklabel align=inside,at={(ticklabel* cs:1)},anchor=near ticklabel opposite}}% |
| 2893 |
\fi |
| 2894 |
\pgfkeysalso{/pgfplots/axis x line*/middle, |
| 2895 |
/pgfplots/every x tick scale label/.code={% |
| 2896 |
\ifpgfplotsthreedim |
| 2897 |
\pgfkeysalso{at={(xticklabel* cs:1.03)},/pgfplots/near ticklabel align=outside,anchor=near xticklabel}% |
| 2898 |
\else |
| 2899 |
\pgfkeysalso{at={(xticklabel cs:0.9,5pt)},anchor=near xticklabel,inner sep=0pt}% |
| 2900 |
\fi |
| 2901 |
},% |
| 2902 |
/pgfplots/every non boxed x axis}% |
| 2903 |
}, |
| 2904 |
/pgfplots/axis x line/center/.style ={/pgfplots/axis x line/middle}, |
| 2905 |
/pgfplots/axis x line/right/.style={/pgfplots/axis x line/top},% |
| 2906 |
/pgfplots/axis x line/top/.code ={ |
| 2907 |
\ifnum\pgfplots@yaxislinesnum=2 % if 'axis y line==center' then |
| 2908 |
\pgfkeysalso{/pgfplots/every axis y label/.style={ |
| 2909 |
/pgfplots/near ticklabel align=inside,at={(ticklabel* cs:0)},anchor=near ticklabel opposite}}% |
| 2910 |
\fi |
| 2911 |
\pgfkeysalso{% |
| 2912 |
/pgfplots/axis x line*/top, |
| 2913 |
/pgfplots/every axis x label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},% |
| 2914 |
/pgfplots/every y tick scale label/.style={at={(yticklabel cs:0)},anchor=near yticklabel}, |
| 2915 |
/pgfplots/every non boxed x axis}% |
| 2916 |
}, |
| 2917 |
/pgfplots/axis x line/none/.style ={axis x line*/none,hide x axis}, |
| 2918 |
% |
| 2919 |
% Y : |
| 2920 |
/pgfplots/axis y line/box/.style ={ |
| 2921 |
/pgfplots/axis y line*/box, |
| 2922 |
/pgfplots/ylabel near ticks, |
| 2923 |
/pgfplots/every boxed y axis |
| 2924 |
}, |
| 2925 |
/pgfplots/axis y line/left/.style ={ |
| 2926 |
/pgfplots/axis y line*/left, |
| 2927 |
/pgfplots/every non boxed y axis |
| 2928 |
}, |
| 2929 |
/pgfplots/axis y line/center/.code ={ |
| 2930 |
\ifnum\pgfplots@xaxislinesnum=3 % if 'axis x line==top' then |
| 2931 |
\pgfkeysalso{% |
| 2932 |
/pgfplots/every axis y label/.style={ |
| 2933 |
/pgfplots/near ticklabel align=outside,at={(ticklabel* cs:0)},anchor=near ticklabel opposite}}% |
| 2934 |
\else |
| 2935 |
\pgfkeysalso{% |
| 2936 |
/pgfplots/every axis y label/.style={ |
| 2937 |
/pgfplots/near ticklabel align=inside,at={(ticklabel* cs:1)},anchor=near ticklabel opposite}}% |
| 2938 |
\fi |
| 2939 |
\pgfkeysalso{% |
| 2940 |
/pgfplots/axis y line*/center, |
| 2941 |
/pgfplots/every y tick scale label/.code={% |
| 2942 |
\ifpgfplotsthreedim |
| 2943 |
\pgfkeysalso{at={(yticklabel* cs:1.03)},/pgfplots/near ticklabel align=outside,anchor=near yticklabel}% |
| 2944 |
\else |
| 2945 |
\pgfkeysalso{at={(yticklabel* cs:1.03,-0.3em)},/pgfplots/near ticklabel align=outside,anchor=near yticklabel opposite,inner sep=0pt}% |
| 2946 |
\fi |
| 2947 |
},% |
| 2948 |
/pgfplots/every non boxed y axis}% |
| 2949 |
}, |
| 2950 |
/pgfplots/axis y line/middle/.style ={/pgfplots/axis y line/center}, |
| 2951 |
/pgfplots/axis y line/right/.code ={% |
| 2952 |
\ifnum\pgfplots@xaxislinesnum=2 |
| 2953 |
\pgfkeysalso{ |
| 2954 |
/pgfplots/every axis x label/.style={ |
| 2955 |
/pgfplots/near ticklabel align=outside,at={(ticklabel* cs:0)},anchor=near ticklabel opposite}}% |
| 2956 |
\fi |
| 2957 |
\pgfkeysalso{ |
| 2958 |
axis y line*/right, |
| 2959 |
/pgfplots/every axis y label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel, |
| 2960 |
/utils/exec={% |
| 2961 |
\ifpgfplotsthreedim\else \pgfkeysalso{rotate=90}\fi |
| 2962 |
},% |
| 2963 |
}, |
| 2964 |
/pgfplots/every y tick scale label/.code={ |
| 2965 |
\ifpgfplotsthreedim |
| 2966 |
\pgfkeysalso{at={(yticklabel cs:0)},anchor=near yticklabel}% |
| 2967 |
\else |
| 2968 |
\pgfkeysalso{at={(yticklabel cs:1)},anchor=near yticklabel}% |
| 2969 |
\fi |
| 2970 |
},% |
| 2971 |
/pgfplots/every non boxed y axis |
| 2972 |
}% |
| 2973 |
},% |
| 2974 |
/pgfplots/axis y line/none/.style ={axis y line*/none,hide y axis}, |
| 2975 |
% |
| 2976 |
% |
| 2977 |
% Z : |
| 2978 |
% |
| 2979 |
/pgfplots/axis z line/box/.style ={ |
| 2980 |
/pgfplots/axis z line*/box, |
| 2981 |
/pgfplots/every axis z label/.style={at={(ticklabel cs:0.5)},rotate=90, anchor=near ticklabel}, |
| 2982 |
/pgfplots/every z tick scale label/.style={at={(zticklabel* cs:1.2,-0.3em)},anchor=near zticklabel,inner sep=0pt}, |
| 2983 |
/pgfplots/every boxed z axis |
| 2984 |
}, |
| 2985 |
/pgfplots/axis z line/left/.style ={ |
| 2986 |
/pgfplots/axis z line*/left, |
| 2987 |
/pgfplots/every non boxed z axis |
| 2988 |
}, |
| 2989 |
/pgfplots/axis z line/center/.code ={ |
| 2990 |
\pgfkeysalso{% |
| 2991 |
/pgfplots/every axis z label/.style={ |
| 2992 |
/pgfplots/near ticklabel align=inside,at={(ticklabel* cs:1)},anchor=near ticklabel opposite}}% |
| 2993 |
\pgfkeysalso{% |
| 2994 |
/pgfplots/axis z line*/center, |
| 2995 |
/pgfplots/every non boxed z axis}% |
| 2996 |
}, |
| 2997 |
/pgfplots/axis z line/middle/.style ={/pgfplots/axis z line/center}, |
| 2998 |
/pgfplots/axis z line/right/.code ={% |
| 2999 |
\ifnum\pgfplots@xaxislinesnum=2 |
| 3000 |
\pgfkeysalso{ |
| 3001 |
/pgfplots/every axis z label/.style={ |
| 3002 |
/pgfplots/near ticklabel align=outside,at={(ticklabel* cs:0)},anchor=near ticklabel opposite}}% |
| 3003 |
\fi |
| 3004 |
\pgfkeysalso{ |
| 3005 |
axis z line*/right, |
| 3006 |
every axis z label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel,rotate=90}, |
| 3007 |
/pgfplots/every z tick scale label/.style={at={(zticklabel cs:0)},anchor=near zticklabel}, |
| 3008 |
/pgfplots/every non boxed z axis |
| 3009 |
}% |
| 3010 |
},% |
| 3011 |
/pgfplots/axis z line/none/.style ={axis z line*/none,hide z axis}, |
| 3012 |
}, |
| 3013 |
% |
| 3014 |
/pgfplots/hide obscured x ticks/.is if=pgfplots@hide@obscured@xtick, |
| 3015 |
/pgfplots/hide obscured y ticks/.is if=pgfplots@hide@obscured@ytick, |
| 3016 |
/pgfplots/hide obscured z ticks/.is if=pgfplots@hide@obscured@ztick, |
| 3017 |
/pgfplots/hide obscured x ticks=true, |
| 3018 |
/pgfplots/hide obscured y ticks=true, |
| 3019 |
/pgfplots/hide obscured z ticks=true, |
| 3020 |
% |
| 3021 |
/pgfplots/3d box/.is choice, |
| 3022 |
/pgfplots/3d box/background/.code ={\def\pgfplots@threedimbox@choice{0}},% |
| 3023 |
/pgfplots/3d box/complete/.code ={\def\pgfplots@threedimbox@choice{1}},% |
| 3024 |
/pgfplots/3d box/complete*/.code ={\def\pgfplots@threedimbox@choice{2}},% |
| 3025 |
/pgfplots/3d box/.default=complete,% |
| 3026 |
/pgfplots/3d box/background,% |
| 3027 |
/pgfplots/every 3d box foreground/.style={}, |
| 3028 |
/pgfplots/3d box foreground style/.style={% |
| 3029 |
/pgfplots/every 3d box foreground/.append style={#1}% |
| 3030 |
}, |
| 3031 |
% set \pgfplots@xaxisdiscontnum |
| 3032 |
% none = 0 |
| 3033 |
% crunch = 1 |
| 3034 |
% open = 2 |
| 3035 |
/pgfplots/axis x discontinuity/.is choice, |
| 3036 |
/pgfplots/axis x discontinuity/none/.code ={\def\pgfplots@xaxisdiscontnum{0}}, |
| 3037 |
/pgfplots/axis x discontinuity/crunch/.code ={\def\pgfplots@xaxisdiscontnum{1}}, |
| 3038 |
/pgfplots/axis x discontinuity/parallel/.code ={\def\pgfplots@xaxisdiscontnum{2}}, |
| 3039 |
/pgfplots/axis x discontinuity=none, |
| 3040 |
% set \pgfplots@yaxisdiscontnum |
| 3041 |
% none = 0 |
| 3042 |
% crunch = 1 |
| 3043 |
% open = 2 |
| 3044 |
/pgfplots/axis y discontinuity/.is choice, |
| 3045 |
/pgfplots/axis y discontinuity/none/.code ={\def\pgfplots@yaxisdiscontnum{0}}, |
| 3046 |
/pgfplots/axis y discontinuity/crunch/.code ={\def\pgfplots@yaxisdiscontnum{1}}, |
| 3047 |
/pgfplots/axis y discontinuity/parallel/.code ={\def\pgfplots@yaxisdiscontnum{2}}, |
| 3048 |
/pgfplots/axis y discontinuity=none, |
| 3049 |
% set \pgfplots@yaxisdiscontnum |
| 3050 |
% none = 0 |
| 3051 |
% crunch = 1 |
| 3052 |
% open = 2 |
| 3053 |
/pgfplots/axis z discontinuity/.is choice, |
| 3054 |
/pgfplots/axis z discontinuity/none/.code ={\def\pgfplots@zaxisdiscontnum{0}}, |
| 3055 |
/pgfplots/axis z discontinuity/crunch/.code ={\def\pgfplots@zaxisdiscontnum{1}}, |
| 3056 |
/pgfplots/axis z discontinuity/parallel/.code ={\def\pgfplots@zaxisdiscontnum{2}}, |
| 3057 |
/pgfplots/axis z discontinuity=none, |
| 3058 |
/pgfplots/scale only axis/.is if=pgfplots@scale@only@axis, |
| 3059 |
/pgfplots/scale only axis/.default=true, |
| 3060 |
/pgfplots/scale only axis=false, |
| 3061 |
% sets \pgfplots@xislinear to |
| 3062 |
% normal=true |
| 3063 |
% log=false |
| 3064 |
/pgfplots/xmode/.is choice, |
| 3065 |
/pgfplots/xmode/.belongs to family=/pgfplots/scale, |
| 3066 |
/pgfplots/xmode/normal/.code={\pgfplots@xislineartrue}, |
| 3067 |
/pgfplots/xmode/normal/.belongs to family=/pgfplots/scale, |
| 3068 |
/pgfplots/xmode/linear/.code={\pgfplots@xislineartrue}, |
| 3069 |
/pgfplots/xmode/linear/.belongs to family=/pgfplots/scale, |
| 3070 |
/pgfplots/xmode/log/.code={\pgfplots@xislinearfalse}, |
| 3071 |
/pgfplots/xmode/log/.belongs to family=/pgfplots/scale, |
| 3072 |
/pgfplots/xmode=linear, |
| 3073 |
/pgfplots/ymode/.is choice, |
| 3074 |
/pgfplots/ymode/.belongs to family=/pgfplots/scale, |
| 3075 |
/pgfplots/ymode/normal/.code={\pgfplots@yislineartrue}, |
| 3076 |
/pgfplots/ymode/normal/.belongs to family=/pgfplots/scale, |
| 3077 |
/pgfplots/ymode/linear/.code={\pgfplots@yislineartrue}, |
| 3078 |
/pgfplots/ymode/linear/.belongs to family=/pgfplots/scale, |
| 3079 |
/pgfplots/ymode/log/.code={\pgfplots@yislinearfalse}, |
| 3080 |
/pgfplots/ymode/log/.belongs to family=/pgfplots/scale, |
| 3081 |
/pgfplots/ymode=linear, |
| 3082 |
/pgfplots/zmode/.is choice, |
| 3083 |
/pgfplots/zmode/.belongs to family=/pgfplots/scale, |
| 3084 |
/pgfplots/zmode/normal/.code={\pgfplots@zislineartrue}, |
| 3085 |
/pgfplots/zmode/normal/.belongs to family=/pgfplots/scale, |
| 3086 |
/pgfplots/zmode/linear/.code={\pgfplots@zislineartrue}, |
| 3087 |
/pgfplots/zmode/linear/.belongs to family=/pgfplots/scale, |
| 3088 |
/pgfplots/zmode/log/.code={\pgfplots@zislinearfalse}, |
| 3089 |
/pgfplots/zmode/log/.belongs to family=/pgfplots/scale, |
| 3090 |
/pgfplots/zmode=linear, |
| 3091 |
/pgfplots/error bars/x fixed/.code= \def\pgfplots@errorbars@xfixed{#1}\def\pgfplots@errorbars@xmode{0}, |
| 3092 |
/pgfplots/error bars/x fixed relative/.code= \def\pgfplots@errorbars@xrel{#1}\def\pgfplots@errorbars@xmode{1}, |
| 3093 |
/pgfplots/error bars/x explicit/.code= \def\pgfplots@errorbars@xmode{2}, |
| 3094 |
/pgfplots/error bars/x explicit relative/.code= \def\pgfplots@errorbars@xmode{3}, |
| 3095 |
/pgfplots/error bars/x fixed relative=0, |
| 3096 |
/pgfplots/error bars/x fixed=0, |
| 3097 |
/pgfplots/error bars/y fixed/.code= \def\pgfplots@errorbars@yfixed{#1}\def\pgfplots@errorbars@ymode{0}, |
| 3098 |
/pgfplots/error bars/y fixed relative/.code= \def\pgfplots@errorbars@yrel{#1}\def\pgfplots@errorbars@ymode{1}, |
| 3099 |
/pgfplots/error bars/y explicit/.code= \def\pgfplots@errorbars@ymode{2}, |
| 3100 |
/pgfplots/error bars/y explicit relative/.code= \def\pgfplots@errorbars@ymode{3}, |
| 3101 |
/pgfplots/error bars/y fixed relative=0, |
| 3102 |
/pgfplots/error bars/y fixed=0, |
| 3103 |
/pgfplots/error bars/z fixed/.code= \def\pgfplots@errorbars@zfixed{#1}\def\pgfplots@errorbars@zmode{0}, |
| 3104 |
/pgfplots/error bars/z fixed relative/.code= \def\pgfplots@errorbars@zrel{#1}\def\pgfplots@errorbars@zmode{1}, |
| 3105 |
/pgfplots/error bars/z explicit/.code= \def\pgfplots@errorbars@zmode{2}, |
| 3106 |
/pgfplots/error bars/z explicit relative/.code= \def\pgfplots@errorbars@zmode{3}, |
| 3107 |
/pgfplots/error bars/z fixed relative=0, |
| 3108 |
/pgfplots/error bars/z fixed=0, |
| 3109 |
/pgfplots/error bars/x dir/.is choice, |
| 3110 |
/pgfplots/error bars/x dir/none/.code={% |
| 3111 |
\def\pgfplots@errorbars@xdirection{0}% |
| 3112 |
\ifnum\pgfplots@errorbars@ydirection=0 |
| 3113 |
\ifnum\pgfplots@errorbars@zdirection=0 |
| 3114 |
\pgfplots@errorbars@enabledfalse |
| 3115 |
\fi |
| 3116 |
\fi |
| 3117 |
}, |
| 3118 |
/pgfplots/error bars/x dir/plus/.code= \def\pgfplots@errorbars@xdirection{1}\pgfplots@errorbars@enabledtrue, |
| 3119 |
/pgfplots/error bars/x dir/minus/.code= \def\pgfplots@errorbars@xdirection{2}\pgfplots@errorbars@enabledtrue, |
| 3120 |
/pgfplots/error bars/x dir/both/.code= \def\pgfplots@errorbars@xdirection{3}\pgfplots@errorbars@enabledtrue, |
| 3121 |
/pgfplots/error bars/x dir=none, |
| 3122 |
/pgfplots/error bars/y dir/.is choice, |
| 3123 |
/pgfplots/error bars/y dir/none/.code={% |
| 3124 |
\def\pgfplots@errorbars@ydirection{0}% |
| 3125 |
\ifnum\pgfplots@errorbars@xdirection=0 |
| 3126 |
\ifnum\pgfplots@errorbars@zdirection=0 |
| 3127 |
\pgfplots@errorbars@enabledfalse |
| 3128 |
\fi |
| 3129 |
\fi |
| 3130 |
}, |
| 3131 |
/pgfplots/error bars/y dir/plus/.code= \def\pgfplots@errorbars@ydirection{1}\pgfplots@errorbars@enabledtrue, |
| 3132 |
/pgfplots/error bars/y dir/minus/.code= \def\pgfplots@errorbars@ydirection{2}\pgfplots@errorbars@enabledtrue, |
| 3133 |
/pgfplots/error bars/y dir/both/.code= \def\pgfplots@errorbars@ydirection{3}\pgfplots@errorbars@enabledtrue, |
| 3134 |
/pgfplots/error bars/y dir=none, |
| 3135 |
/pgfplots/error bars/z dir/.is choice, |
| 3136 |
/pgfplots/error bars/z dir/none/.code={% |
| 3137 |
\def\pgfplots@errorbars@zdirection{0}% |
| 3138 |
\ifnum\pgfplots@errorbars@xdirection=0 |
| 3139 |
\ifnum\pgfplots@errorbars@ydirection=0 |
| 3140 |
\pgfplots@errorbars@enabledfalse |
| 3141 |
\fi |
| 3142 |
\fi |
| 3143 |
}, |
| 3144 |
/pgfplots/error bars/z dir/plus/.code= \def\pgfplots@errorbars@zdirection{1}\pgfplots@errorbars@enabledtrue, |
| 3145 |
/pgfplots/error bars/z dir/minus/.code= \def\pgfplots@errorbars@zdirection{2}\pgfplots@errorbars@enabledtrue, |
| 3146 |
/pgfplots/error bars/z dir/both/.code= \def\pgfplots@errorbars@zdirection{3}\pgfplots@errorbars@enabledtrue, |
| 3147 |
/pgfplots/error bars/z dir=none, |
| 3148 |
/pgfplots/error bars/error mark/.initial={-}, |
| 3149 |
/pgfplots/error bars/error mark options/.initial={rotate=90}, |
| 3150 |
/pgfplots/error bars/error bar style/.code={% |
| 3151 |
\pgfkeysalso{/pgfplots/every error bar/.append style={#1}}% |
| 3152 |
}, |
| 3153 |
/pgfplots/every error bar/.style={thin}, |
| 3154 |
/pgfplots/every error bar/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every error bar}}, |
| 3155 |
/pgfplots/error bars/allow name path/.is if=pgfplots@error@bars@allow@name@path, |
| 3156 |
/pgfplots/error bars/draw error bar/.code 2 args={% |
| 3157 |
%\message{/pgfplots/error bars/draw error bar: working with '#1' -- '#2'.}% |
| 3158 |
\pgfkeysgetvalue{/pgfplots/error bars/error mark}{\pgfplotserrorbarsmark}% |
| 3159 |
\pgfkeysgetvalue{/pgfplots/error bars/error mark options}{\pgfplotserrorbarsmarkopts}% |
| 3160 |
\draw #1 -- #2 node[pos=1,sloped,allow upside down] {% |
| 3161 |
\expandafter\tikz\expandafter[\pgfplotserrorbarsmarkopts]{% |
| 3162 |
\expandafter\pgfuseplotmark\expandafter{\pgfplotserrorbarsmark}% |
| 3163 |
\pgfusepath{stroke}}% |
| 3164 |
}; |
| 3165 |
}, |
| 3166 |
/pgfplots/every node near coord/.style={}, |
| 3167 |
/pgfplots/nodes near coords style/.style={/pgfplots/every node near coord/.append style={#1}}, |
| 3168 |
/pgfplots/node near coords style/.style={/pgfplots/every node near coord/.append style={#1}}, |
| 3169 |
/pgfplots/node near coord style/.style={/pgfplots/every node near coord/.append style={#1}}, |
| 3170 |
% |
| 3171 |
% Replaces the 'nodes near coords' CONFIGURATION by its default |
| 3172 |
% settings. It does NOT activate 'nodes near coords'. |
| 3173 |
/pgfplots/nodes near coords defaults/.style={ |
| 3174 |
% values: 'horizontal', 'vertical' or any tikz alignment command |
| 3175 |
% like 'left' or 'anchor=south west' or so. |
| 3176 |
/pgfplots/nodes near coords align/.initial=auto,% |
| 3177 |
% |
| 3178 |
% 'nodes near coords=<content of node>'. |
| 3179 |
% The content is by default \pgfmathprintnumber\pgfplotspointmeta. |
| 3180 |
% |
| 3181 |
% Use 'point meta=y' after 'nodes near coords' to typeset the y coordinates |
| 3182 |
% Use 'point meta=x' to typeset the x coordinates |
| 3183 |
/pgfplots/nodes near coords/.style={% |
| 3184 |
/pgfplots/scatter/@pre marker code/.code={},% |
| 3185 |
/pgfplots/scatter/@post marker code/.code={},% |
| 3186 |
/pgfplots/nodes near coords*={##1},% |
| 3187 |
},% |
| 3188 |
/pgfplots/nodes near coords*/.style={% |
| 3189 |
/pgfplots/scatter/true*,% |
| 3190 |
/pgfplots/set point meta if empty=f(x),% |
| 3191 |
scatter/@post marker code/.append code={% |
| 3192 |
% ok, place the node. |
| 3193 |
\t@pgfplots@tokb=\expandafter{\pgfplots@current@point@coordinatestyle}% see 'coordinate style'% |
| 3194 |
\edef\pgfplots@loc@TMPa{% |
| 3195 |
/pgfplots/nodes near coords/@@eval alignment,% |
| 3196 |
\the\t@pgfplots@tokb,% |
| 3197 |
/pgfplots/every node near coord% |
| 3198 |
}% |
| 3199 |
\expandafter\node\expandafter[\pgfplots@loc@TMPa]% |
| 3200 |
{% |
| 3201 |
\if1\csname pgfpmeta@\pgfplotspointmetainputhandler @issymbolic\endcsname% |
| 3202 |
% point meta=explicit symbolic |
| 3203 |
% do not try to invoke \pgfmathprintnumber on |
| 3204 |
% symbolic data... this check should keep the user |
| 3205 |
% interface simpler. |
| 3206 |
\def\pgfplots@loc@TMPa{\pgfmathprintnumber\pgfplotspointmeta}% |
| 3207 |
\def\pgfplots@loc@TMPb{##1}% |
| 3208 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 3209 |
\pgfplotspointmeta |
| 3210 |
\else |
| 3211 |
##1% |
| 3212 |
\fi |
| 3213 |
\else |
| 3214 |
##1% |
| 3215 |
\fi |
| 3216 |
}; |
| 3217 |
},% |
| 3218 |
},% |
| 3219 |
/pgfplots/nodes near coords*/.default={\pgfmathprintnumber\pgfplotspointmeta}, |
| 3220 |
}, |
| 3221 |
/pgfplots/nodes near coords defaults, |
| 3222 |
% |
| 3223 |
% |
| 3224 |
/pgfplots/nodes near coords bar offset/.initial=0.5, |
| 3225 |
% |
| 3226 |
% Replaces the 'nodes near coords' CONFIGURATION by one suitable |
| 3227 |
% for xbar stacked |
| 3228 |
/pgfplots/nodes near coords xbar stacked configuration/.style={ |
| 3229 |
/pgfplots/nodes near coords defaults, |
| 3230 |
/pgfplots/nodes near coords*/.add code={% |
| 3231 |
\pgfkeysalso{ |
| 3232 |
/pgfplots/set point meta if empty=rawx,% |
| 3233 |
}% |
| 3234 |
}{% |
| 3235 |
\pgfkeysalso{% |
| 3236 |
/pgfplots/scatter/position/absolute, |
| 3237 |
/pgfplots/scatter/@post marker code/.add code={ |
| 3238 |
\pgfplotspointgetnormalizedcoordinates |
| 3239 |
\pgfplotspointgetnormalizedzerolevelcoordinates |
| 3240 |
\pgfkeysgetvalue{/pgfplots/nodes near coords bar offset}\pgfplots@nodes@near@coords@bar@offset |
| 3241 |
\tikzset{ |
| 3242 |
every node/.append style={% |
| 3243 |
at={(normalized axis cs:% |
| 3244 |
{ (\pgfplots@nodes@near@coords@bar@offset) *\pgfkeysvalueof{/data point/x} |
| 3245 |
+(1-\pgfplots@nodes@near@coords@bar@offset)*\pgfkeysvalueof{/data point/zero/x}},% |
| 3246 |
\pgfkeysvalueof{/data point/y})% |
| 3247 |
}% |
| 3248 |
} |
| 3249 |
}% |
| 3250 |
}{},% |
| 3251 |
}% |
| 3252 |
}, |
| 3253 |
/pgfplots/nodes near coords align={% |
| 3254 |
anchor=center, |
| 3255 |
}, |
| 3256 |
% |
| 3257 |
% ... just in case someone uses xbar stacked together with |
| 3258 |
% 'bar shift': |
| 3259 |
/pgfplots/every node near coord/.append style={% |
| 3260 |
/pgfplots/every node near coord bar shift=y, |
| 3261 |
/pgfplots/every node near coord bar shift/.code=, |
| 3262 |
},% |
| 3263 |
}, |
| 3264 |
% |
| 3265 |
/pgfplots/every node near coord bar shift/.style={#1shift={\pgfplotbarshift}},% |
| 3266 |
% |
| 3267 |
% Replaces the 'nodes near coords' CONFIGURATION by one suitable |
| 3268 |
% for ybar stacked |
| 3269 |
/pgfplots/nodes near coords ybar stacked configuration/.style={ |
| 3270 |
/pgfplots/nodes near coords defaults, |
| 3271 |
/pgfplots/nodes near coords*/.add code={% |
| 3272 |
\pgfkeysalso{ |
| 3273 |
/pgfplots/set point meta if empty=rawy,% |
| 3274 |
}% |
| 3275 |
}{% |
| 3276 |
\pgfkeysalso{% |
| 3277 |
/pgfplots/scatter/position/absolute, |
| 3278 |
/pgfplots/scatter/@post marker code/.add code={ |
| 3279 |
\pgfplotspointgetnormalizedcoordinates |
| 3280 |
\pgfplotspointgetnormalizedzerolevelcoordinates |
| 3281 |
\pgfkeysgetvalue{/pgfplots/nodes near coords bar offset}\pgfplots@nodes@near@coords@bar@offset |
| 3282 |
\tikzset{ |
| 3283 |
every node/.append style={% |
| 3284 |
at={(normalized axis cs:% |
| 3285 |
\pgfkeysvalueof{/data point/x},% |
| 3286 |
{ (\pgfplots@nodes@near@coords@bar@offset) *\pgfkeysvalueof{/data point/y} |
| 3287 |
+(1-\pgfplots@nodes@near@coords@bar@offset)*\pgfkeysvalueof{/data point/zero/y}})% |
| 3288 |
}% |
| 3289 |
} |
| 3290 |
}% |
| 3291 |
}{},% |
| 3292 |
}% |
| 3293 |
}, |
| 3294 |
/pgfplots/nodes near coords align={% |
| 3295 |
anchor=center, |
| 3296 |
}, |
| 3297 |
% |
| 3298 |
% ... just in case someone uses ybar stacked together with |
| 3299 |
% 'bar shift': |
| 3300 |
/pgfplots/every node near coord/.append style={% |
| 3301 |
/pgfplots/every node near coord bar shift=x, |
| 3302 |
/pgfplots/every node near coord bar shift/.code=, |
| 3303 |
},% |
| 3304 |
}, |
| 3305 |
% |
| 3306 |
% |
| 3307 |
% |
| 3308 |
/pgfplots/scatter explicit color/.style 2 args={% |
| 3309 |
/pgfplots/scatter/@pre marker code/.code=,% |
| 3310 |
/pgfplots/scatter/@post marker code/.code=,% |
| 3311 |
/pgfplots/scatter explicit color*={#1}{#2},% |
| 3312 |
},% |
| 3313 |
/pgfplots/scatter explicit color*/.style 2 args={% |
| 3314 |
/pgfplots/point meta=explicit symbolic, |
| 3315 |
/pgfplots/scatter/true*,% |
| 3316 |
/pgfplots/scatter/@pre marker code/.append code={% |
| 3317 |
\edef\pgfplots@loc@TMPa{\noexpand\pgfutil@definecolor{mapped color}{#1}{\pgfplotspointmeta}}% |
| 3318 |
\pgfplots@loc@TMPa |
| 3319 |
\pgfplots@scope@with@coord@styles[#2]% |
| 3320 |
},% |
| 3321 |
/pgfplots/scatter/@post marker code/.prefix code={% |
| 3322 |
\endscope |
| 3323 |
},% |
| 3324 |
}, |
| 3325 |
/pgfplots/scatter rgb/.style={% |
| 3326 |
/pgfplots/scatter/@pre marker code/.code=,% |
| 3327 |
/pgfplots/scatter/@post marker code/.code=,% |
| 3328 |
/pgfplots/scatter rgb*={#1},% |
| 3329 |
}, |
| 3330 |
/pgfplots/scatter rgb*/.style={/pgfplots/scatter explicit color*={rgb}{#1}}, |
| 3331 |
/pgfplots/scatter rgb*/.default={draw=mapped color!80!black,fill=mapped color}, |
| 3332 |
% |
| 3333 |
/pgfplots/scatter cmyk/.style={% |
| 3334 |
/pgfplots/scatter/@pre marker code/.code=,% |
| 3335 |
/pgfplots/scatter/@post marker code/.code=,% |
| 3336 |
/pgfplots/scatter cmyk*={#1},% |
| 3337 |
}, |
| 3338 |
/pgfplots/scatter cmyk*/.style={/pgfplots/scatter explicit color*={cmyk}{#1}}, |
| 3339 |
/pgfplots/scatter cmyk*/.default={draw=mapped color!80!black,fill=mapped color}, |
| 3340 |
% |
| 3341 |
% |
| 3342 |
% allows to specify something like |
| 3343 |
% coordinate style/.condition={x==4}{color=red}, |
| 3344 |
% coordinate style/.condition={x > 5}{color=black, mark=*}, |
| 3345 |
% it is only evaluated in specific plot handlers. |
| 3346 |
% Each conditionession is added to the available list. |
| 3347 |
/pgfplots/coordinate style/.condition/.code 2 args={% |
| 3348 |
\pgfplotsapplistXpushback{E}{#1}{#2},\to\pgfplots@coordinate@style@list |
| 3349 |
\def\b@has@pgfplots@colordinate@style{1}% |
| 3350 |
}, |
| 3351 |
% example: |
| 3352 |
% coordinate style/.from={\thisrow{row with styles}}, |
| 3353 |
/pgfplots/coordinate style/.from/.code={% |
| 3354 |
\pgfplotsapplistXpushback{V}{#1}{},\to\pgfplots@coordinate@style@list |
| 3355 |
\def\b@has@pgfplots@colordinate@style{1}% |
| 3356 |
}, |
| 3357 |
% clears all such styles. |
| 3358 |
/pgfplots/coordinate style/.clear/.code={% |
| 3359 |
\pgfplotsapplistXnewempty{\pgfplots@coordinate@style@list}% |
| 3360 |
\def\b@has@pgfplots@colordinate@style{0}% |
| 3361 |
}, |
| 3362 |
/pgfplots/coordinate style/.clear,% |
| 3363 |
% |
| 3364 |
% |
| 3365 |
% |
| 3366 |
/pgfplots/visualization depends on/list/.initial=,% |
| 3367 |
/pgfplots/visualization depends on/.style={% |
| 3368 |
/pgfplots/visualization depends on/list/.add={}{,{#1}}% |
| 3369 |
}, |
| 3370 |
/pgfplots/bar cycle list/.style={/pgfplots/cycle list={% |
| 3371 |
{blue,fill=blue!30!white,mark=none},% |
| 3372 |
{red,fill=red!30!white,mark=none},% |
| 3373 |
{brown!60!black,fill=brown!30!white,mark=none},% |
| 3374 |
{black,fill=gray,mark=none},% |
| 3375 |
{violet!80!black,fill=violet,mark=none},% |
| 3376 |
{green,fill=green!80!black,mark=none}% |
| 3377 |
} |
| 3378 |
}, |
| 3379 |
/pgfplots/area cycle list/.style={bar cycle list}, |
| 3380 |
/pgfplots/area legend/.style={% |
| 3381 |
/pgfplots/legend image code/.code={% |
| 3382 |
\draw[##1] (0cm,-0.1cm) rectangle (0.6cm,0.1cm); |
| 3383 |
}% |
| 3384 |
}, |
| 3385 |
/pgfplots/area style/.style={% |
| 3386 |
area cycle list, |
| 3387 |
area legend, |
| 3388 |
axis on top, |
| 3389 |
}, |
| 3390 |
/pgfplots/ybar legend/.style={ |
| 3391 |
/pgfplots/legend image code/.code={\draw[##1,/tikz/.cd,bar width=3pt,yshift=-0.2em,bar shift=0pt] plot coordinates {(0cm,0.8em) (2*\pgfplotbarwidth,0.6em)};}, |
| 3392 |
}, |
| 3393 |
/pgfplots/single ybar legend/.style={ |
| 3394 |
/pgfplots/legend image code/.code={\draw[##1,/tikz/.cd,bar width=6pt,yshift=-0.2em,bar shift=0pt] plot coordinates {(0pt,0.8em)};}, |
| 3395 |
}, |
| 3396 |
% |
| 3397 |
% A style which shifts bars automatically such that they are |
| 3398 |
% adjacent to each other. It applies to bars of the same type |
| 3399 |
% only. |
| 3400 |
% #1: the space between adjacent bars |
| 3401 |
/pgfplots/bar shift auto/.style={% |
| 3402 |
/pgf/bar shift={% |
| 3403 |
% total width = n*w + (n-1)*skip |
| 3404 |
% -> subtract half for centering |
| 3405 |
-0.5*(\numplotsofactualtype*\pgfplotbarwidth + (\numplotsofactualtype-1)*(#1)) + |
| 3406 |
% the '0.5*w' is for centering |
| 3407 |
(.5+\plotnumofactualtype)*\pgfplotbarwidth + \plotnumofactualtype*(#1)},% |
| 3408 |
}, |
| 3409 |
/pgfplots/bar shift auto/.default={2pt},% |
| 3410 |
% |
| 3411 |
% |
| 3412 |
% FIXME : never tested so far |
| 3413 |
% #1: width |
| 3414 |
% #2: separation space |
| 3415 |
/pgfplots/plot yshift auto/.style 2 args={/pgfplots/plot shift auto={y}{#1}{#2}},% |
| 3416 |
/pgfplots/plot xshift auto/.style 2 args={/pgfplots/plot shift auto={x}{#1}{#2}},% |
| 3417 |
/pgfplots/plot shift auto/.style args={#1#2#3}{% |
| 3418 |
/pgfplots/axis plot except legend style={% |
| 3419 |
#1shift={% |
| 3420 |
% total width = n*w + (n-1)*skip |
| 3421 |
% -> subtract half for centering |
| 3422 |
-0.5*(\numplotsofactualtype*(#1) + (\numplotsofactualtype-1)*(#2)) + |
| 3423 |
% the '0.5*w' is for centering |
| 3424 |
(.5+\plotnumofactualtype)*(#1) + \plotnumofactualtype*(#2)% |
| 3425 |
},% |
| 3426 |
}, |
| 3427 |
}, |
| 3428 |
/pgfplots/ybar/.style={ |
| 3429 |
bar direction=y, |
| 3430 |
bar cycle list, |
| 3431 |
xtick align=outside, |
| 3432 |
ybar legend, |
| 3433 |
clip limits if compat={clip ylimits=false}, |
| 3434 |
/pgfplots/set point meta if empty=f(x),% |
| 3435 |
/pgfplots/bar shift auto={#1}, |
| 3436 |
/pgfplots/error bars/draw error bar/.code 2 args={% |
| 3437 |
% FIXME: simplify this code! It is just a replication of the default error stuff together with an xshift! |
| 3438 |
\pgfkeysgetvalue{/pgfplots/error bars/error mark}{\pgfplotserrorbarsmark}% |
| 3439 |
\pgfkeysgetvalue{/pgfplots/error bars/error mark options}{\pgfplotserrorbarsmarkopts}% |
| 3440 |
\draw[xshift={\pgfplotbarshift}] |
| 3441 |
##1 -- ##2 node[pos=1,sloped,allow upside down] {% |
| 3442 |
\expandafter\tikz\expandafter[\pgfplotserrorbarsmarkopts]{% |
| 3443 |
\expandafter\pgfuseplotmark\expandafter{\pgfplotserrorbarsmark}% |
| 3444 |
\pgfusepath{stroke}}% |
| 3445 |
}; |
| 3446 |
},% |
| 3447 |
/pgfplots/every node near coord/.append style={% |
| 3448 |
/pgfplots/every node near coord bar shift=x, |
| 3449 |
/pgfplots/every node near coord bar shift/.code=, |
| 3450 |
},% |
| 3451 |
/tikz/ybar, |
| 3452 |
}, |
| 3453 |
/pgfplots/ybar/.default=2pt, |
| 3454 |
/pgfplots/xbar legend/.style={ |
| 3455 |
/pgfplots/legend image code/.code={\draw[##1,/tikz/.cd,bar width=3pt,yshift=-0.2em,bar shift=0pt] plot coordinates {(0.8em,0cm) (0.6em,2*\pgfplotbarwidth)};}, |
| 3456 |
}, |
| 3457 |
/pgfplots/single xbar legend/.style={ |
| 3458 |
/pgfplots/legend image code/.code={\draw[##1,/tikz/.cd,bar width=6pt,yshift=0.2ex,bar shift=0pt] plot coordinates {(0.8em,0pt)};}, |
| 3459 |
}, |
| 3460 |
/pgfplots/bar direction/.is choice, |
| 3461 |
/pgfplots/bar direction/auto/.code=\def\pgfplots@bar@direction@choice{a},% |
| 3462 |
/pgfplots/bar direction/x/.code=\def\pgfplots@bar@direction@choice{x},% |
| 3463 |
/pgfplots/bar direction/y/.code=\def\pgfplots@bar@direction@choice{y},% |
| 3464 |
/pgfplots/bar direction=auto, |
| 3465 |
% |
| 3466 |
/pgfplots/xbar/.style={ |
| 3467 |
bar direction=x, |
| 3468 |
bar cycle list, |
| 3469 |
ytick align=outside, |
| 3470 |
clip limits if compat={clip xlimits=false}, |
| 3471 |
/pgfplots/xbar legend, |
| 3472 |
/pgfplots/set point meta if empty=x,% |
| 3473 |
/pgfplots/bar shift auto={#1}, |
| 3474 |
/pgfplots/error bars/draw error bar/.code 2 args={% |
| 3475 |
% FIXME: simplify this code! It is just a replication of the default error stuff together with an xshift! |
| 3476 |
\pgfkeysgetvalue{/pgfplots/error bars/error mark}{\pgfplotserrorbarsmark}% |
| 3477 |
\pgfkeysgetvalue{/pgfplots/error bars/error mark options}{\pgfplotserrorbarsmarkopts}% |
| 3478 |
\draw[yshift={\pgfplotbarshift}] |
| 3479 |
##1 -- ##2 node[pos=1,sloped,allow upside down] {% |
| 3480 |
\expandafter\tikz\expandafter[\pgfplotserrorbarsmarkopts]{% |
| 3481 |
\expandafter\pgfuseplotmark\expandafter{\pgfplotserrorbarsmark}% |
| 3482 |
\pgfusepath{stroke}}% |
| 3483 |
}; |
| 3484 |
},% |
| 3485 |
/pgfplots/every node near coord/.append style={% |
| 3486 |
/pgfplots/every node near coord bar shift=y, |
| 3487 |
/pgfplots/every node near coord bar shift/.code=, |
| 3488 |
},% |
| 3489 |
/tikz/xbar, |
| 3490 |
}, |
| 3491 |
/pgfplots/xbar/.default=2pt, |
| 3492 |
/pgfplots/ybar interval legend/.style={ |
| 3493 |
/pgfplots/legend image code/.code={\draw[##1,/tikz/.cd,yshift=-0.2em,bar interval width=0.7,bar interval shift=0.5] plot coordinates {(0cm,0.8em) (5pt,0.6em) (10pt,0.6em)};}, |
| 3494 |
}, |
| 3495 |
/pgfplots/ybar interval/.style={% |
| 3496 |
bar direction=y, |
| 3497 |
/pgfplots/set point meta if empty=f(x),% |
| 3498 |
bar cycle list, |
| 3499 |
x tick label as interval, |
| 3500 |
xmajorgrids, |
| 3501 |
clip limits if compat={clip ylimits=false}, |
| 3502 |
xtick align=outside, |
| 3503 |
xtick=data, |
| 3504 |
ybar interval legend, |
| 3505 |
bar interval width={#1/\numplotsofactualtype}, |
| 3506 |
bar interval shift={(\plotnumofactualtype+0.5)/\numplotsofactualtype}, |
| 3507 |
/tikz/ybar interval, |
| 3508 |
}, |
| 3509 |
/pgfplots/ybar interval/.default=1, |
| 3510 |
/pgfplots/xbar interval legend/.style={% |
| 3511 |
/pgfplots/legend image code/.code={\draw[##1,/tikz/.cd,yshift=-0.2em,bar interval width=0.7,bar interval shift=0.5] plot coordinates {(0cm,0.8em) (5pt,0.6em) (10pt,0.6em)};}, |
| 3512 |
}, |
| 3513 |
/pgfplots/xbar interval/.style={% |
| 3514 |
bar direction=x, |
| 3515 |
/pgfplots/set point meta if empty=x,% |
| 3516 |
bar cycle list, |
| 3517 |
y tick label as interval, |
| 3518 |
ytick=data, |
| 3519 |
ymajorgrids, |
| 3520 |
ytick align=outside, |
| 3521 |
xbar interval legend, |
| 3522 |
clip limits if compat={clip xlimits=false}, |
| 3523 |
bar interval width={#1/\numplotsofactualtype}, |
| 3524 |
bar interval shift={(\plotnumofactualtype+0.5)/\numplotsofactualtype}, |
| 3525 |
/tikz/xbar interval, |
| 3526 |
}, |
| 3527 |
/pgfplots/xbar interval/.default=1, |
| 3528 |
/pgfplots/stacked since 1.9/.code={}, |
| 3529 |
/pgfplots/stacked since 1.13/.code=, |
| 3530 |
/pgfplots/xbar stacked/.style={ |
| 3531 |
bar direction=x, |
| 3532 |
bar cycle list, |
| 3533 |
single xbar legend, |
| 3534 |
clip limits if compat={clip xlimits=false}, |
| 3535 |
stack plots=x, |
| 3536 |
stack dir=#1, |
| 3537 |
/tikz/xbar, |
| 3538 |
stacked since 1.9, |
| 3539 |
activate nodes near coords xbar stacked, |
| 3540 |
stacked since 1.13, |
| 3541 |
}, |
| 3542 |
/pgfplots/xbar stacked/.default=plus, |
| 3543 |
/pgfplots/ybar stacked/.style={ |
| 3544 |
bar direction=y, |
| 3545 |
bar cycle list, |
| 3546 |
single ybar legend, |
| 3547 |
clip limits if compat={clip ylimits=false}, |
| 3548 |
stack plots=y, |
| 3549 |
stack dir=#1, |
| 3550 |
/tikz/ybar, |
| 3551 |
stacked since 1.9, |
| 3552 |
activate nodes near coords ybar stacked, |
| 3553 |
stacked since 1.13, |
| 3554 |
}, |
| 3555 |
/pgfplots/ybar stacked/.default=plus, |
| 3556 |
/pgfplots/xbar interval stacked/.style={ |
| 3557 |
bar direction=x, |
| 3558 |
/pgfplots/set point meta if empty=x,% |
| 3559 |
bar cycle list, |
| 3560 |
clip limits if compat={clip xlimits=false}, |
| 3561 |
single xbar legend, |
| 3562 |
stack plots=x, |
| 3563 |
stack dir=#1, |
| 3564 |
/tikz/xbar interval, |
| 3565 |
stacked since 1.13, |
| 3566 |
}, |
| 3567 |
/pgfplots/xbar interval stacked/.default=plus, |
| 3568 |
/pgfplots/ybar interval stacked/.style={ |
| 3569 |
bar direction=y, |
| 3570 |
/pgfplots/set point meta if empty=f(x),% |
| 3571 |
bar cycle list, |
| 3572 |
single ybar legend, |
| 3573 |
clip limits if compat={clip ylimits=false}, |
| 3574 |
stack plots=y, |
| 3575 |
stack dir=#1, |
| 3576 |
/tikz/ybar interval, |
| 3577 |
stacked since 1.13, |
| 3578 |
}, |
| 3579 |
/pgfplots/ybar interval stacked/.default=plus, |
| 3580 |
/pgfplots/yticklabel interval boundaries/.style={% |
| 3581 |
y tick label as interval, |
| 3582 |
yticklabel={$\pgfmathprintnumber{\tick}$ -- $\pgfmathprintnumber{\nexttick}$} |
| 3583 |
}, |
| 3584 |
/pgfplots/xticklabel interval boundaries/.style={% |
| 3585 |
x tick label as interval, |
| 3586 |
xticklabel={$\pgfmathprintnumber{\tick}$ -- $\pgfmathprintnumber{\nexttick}$} |
| 3587 |
}, |
| 3588 |
/pgfplots/plot file/skip first/.is if=pgfplots@plot@file@skipfirst, |
| 3589 |
/pgfplots/plot file/skip first/.default=true, |
| 3590 |
/pgfplots/plot file/ignore first/.style={/pgfplots/plot file/skip first={#1}}, |
| 3591 |
/pgfplots/plot file/.search also=/pgfplots,% |
| 3592 |
/pgfplots/plot coordinates/math parser/.is if=pgfplots@plot@coords@mathparser, |
| 3593 |
/pgfplots/plot graphics/.code={\let\tikz@plot@handler=\pgfplotsplothandlergraphics},% |
| 3594 |
/pgfplots/plot graphics/src/.initial=, |
| 3595 |
/pgfplots/plot graphics/includegraphics/.initial=, |
| 3596 |
/pgfplots/plot graphics/includegraphics cmd/.initial=\includegraphics, |
| 3597 |
/pgfplots/plot graphics/xmin/.initial=, |
| 3598 |
/pgfplots/plot graphics/xmax/.initial=, |
| 3599 |
/pgfplots/plot graphics/ymin/.initial=, |
| 3600 |
/pgfplots/plot graphics/ymax/.initial=, |
| 3601 |
/pgfplots/plot graphics/zmin/.initial=, |
| 3602 |
/pgfplots/plot graphics/zmax/.initial=, |
| 3603 |
% |
| 3604 |
% a) to provide a bounding box: points={(0,1) (0,2)} |
| 3605 |
% or b) to squeeze the graphics into internal image coordinates: |
| 3606 |
% points={(0,1,0) => (0,4) (0,0,1) => (40,600)} |
| 3607 |
% or c) both of them. |
| 3608 |
/pgfplots/plot graphics/points/.initial=, |
| 3609 |
/pgfplots/plot graphics/auto adjust axis/.is if=pgfplots@plot@graphics@autoadjustaxis, |
| 3610 |
/pgfplots/plot graphics/auto adjust axis=true, |
| 3611 |
/pgfplots/plot graphics/snap z/.initial=0.02, |
| 3612 |
% possible values: debug=<empty>|false|true|visual |
| 3613 |
/pgfplots/plot graphics/debug/.initial=, |
| 3614 |
/pgfplots/plot graphics/debug/.default=true, |
| 3615 |
/pgfplots/plot graphics/squeeze tol/.initial=2pt, |
| 3616 |
% |
| 3617 |
% this command key should defined \pgfmathresult to be |
| 3618 |
% \pgfmathresult -> {{<wd>}{<ht>}} |
| 3619 |
% where <wd> is the natural width of the input image and |
| 3620 |
% <ht> is the natural height. |
| 3621 |
% The input image file name is available as 'plot graphics/src'. |
| 3622 |
% The default implementation invoked 'lowlevel draw={}{}' and |
| 3623 |
% measures the resulting dimensions. |
| 3624 |
/pgfplots/plot graphics/lowlevel get natural size/.code={% |
| 3625 |
\pgfplots@plot@handler@graphics@getnaturalsize |
| 3626 |
}, |
| 3627 |
/pgfplots/plot graphics/lowlevel draw/.code 2 args={% |
| 3628 |
\pgfplots@plot@handler@graphics@DRAW{#1}{#2}% |
| 3629 |
},% |
| 3630 |
/pgfplots/plot graphics/node/.style={ |
| 3631 |
transform shape, |
| 3632 |
inner sep=0pt, |
| 3633 |
outer sep=0pt, |
| 3634 |
every node/.style={}, |
| 3635 |
anchor=south west, |
| 3636 |
at={(0pt,0pt)}, |
| 3637 |
rectangle |
| 3638 |
}, |
| 3639 |
/tikz/pos segment/.initial=, |
| 3640 |
% empty line=none|auto|scanline|nan|jump |
| 3641 |
% nan and jump is the same. |
| 3642 |
/pgfplots/empty line/.initial=auto, |
| 3643 |
% 'mesh' plots. |
| 3644 |
% The macro \pgfplots@meshmode is |
| 3645 |
% n if meshmode == false, |
| 3646 |
% m if meshmode == 'mesh', |
| 3647 |
% s if meshmode == 'surf'. |
| 3648 |
% |
| 3649 |
% The type of surface plot can be configured with 'shader'. |
| 3650 |
/pgfplots/mesh/.is choice, |
| 3651 |
/pgfplots/mesh/true/.code={% |
| 3652 |
\def\pgfplots@meshmode{m}% |
| 3653 |
\let\tikz@plot@handler=\pgfplotsplothandlermesh |
| 3654 |
\pgfplots@perpointmeta@expandtrue |
| 3655 |
\pgfkeysalso{/pgfplots/set point meta if empty=f(x),/pgfplots/every mesh,/pgfplots/mesh legend,/tikz/color=mapped color}% |
| 3656 |
}, |
| 3657 |
/pgfplots/mesh/false/.code={ |
| 3658 |
\def\pgfplots@meshmode{n}% |
| 3659 |
\ifx\tikz@plot@handler\pgfplotsplothandlermesh |
| 3660 |
\let\tikz@plot@handler=\pgfplothandlerlineto |
| 3661 |
\fi}, |
| 3662 |
/pgfplots/mesh/.default=true, |
| 3663 |
/pgfplots/surf/.code={% |
| 3664 |
\pgfkeysalso{/pgfplots/mesh=#1}% |
| 3665 |
\def\pgfplots@meshmode{s}% |
| 3666 |
},% |
| 3667 |
/pgfplots/patch/.code={% |
| 3668 |
\pgfkeysalso{/pgfplots/surf=#1,/pgfplots/mesh input=patches,/pgfplots/every patch}% |
| 3669 |
},% |
| 3670 |
% |
| 3671 |
/pgfplots/mesh/color input/.is choice, |
| 3672 |
/pgfplots/mesh/color input/colormap/.code=\def\pgfplotsplothandlermesh@colorinput{0},% |
| 3673 |
/pgfplots/mesh/color input/explicit/.code={% |
| 3674 |
\def\pgfplotsplothandlermesh@colorinput{1}% |
| 3675 |
\def\pgfplotsplothandlermesh@colorinput@mathparse{0}% |
| 3676 |
% |
| 3677 |
\pgfplotsaxisifhaspointmeta{% |
| 3678 |
\if1\csname pgfpmeta@\pgfplotspointmetainputhandler @issymbolic\endcsname |
| 3679 |
% ok. |
| 3680 |
\else |
| 3681 |
% oh. the point meta is numeric, i.e. it will be |
| 3682 |
% mapped. Change to symbolic for explicit color input: |
| 3683 |
\pgfkeysalso{/pgfplots/point meta/explicit symbolic}% |
| 3684 |
\fi |
| 3685 |
}{% |
| 3686 |
% there is no point meta. Set it to "reasonable" defaults: |
| 3687 |
\pgfkeysalso{/pgfplots/point meta/explicit symbolic}% |
| 3688 |
}% |
| 3689 |
\pgfplots@perpointmeta@expandtrue |
| 3690 |
},% |
| 3691 |
/pgfplots/mesh/color input/explicit mathparse/.code={% |
| 3692 |
\pgfkeysalso{/pgfplots/mesh/color input/explicit}% |
| 3693 |
\def\pgfplotsplothandlermesh@colorinput@mathparse{1}% |
| 3694 |
\pgfplots@perpointmeta@expandtrue |
| 3695 |
},% |
| 3696 |
/pgfplots/mesh/color input=colormap, |
| 3697 |
% |
| 3698 |
/pgfplots/mesh/colorspace explicit color output/.initial=rgb, |
| 3699 |
/pgfplots/mesh/colorspace explicit color input/.initial=rgb, |
| 3700 |
% |
| 3701 |
/pgfplots/every patch/.style={miter limit=1}, |
| 3702 |
/pgfplots/patch table/value/.initial=, |
| 3703 |
/pgfplots/patch table/.code={ |
| 3704 |
\pgfkeyssetvalue{/pgfplots/patch table/value}{#1}% |
| 3705 |
\pgfplotsplothandlermesh@patchtable@hascdatafalse |
| 3706 |
}, |
| 3707 |
/pgfplots/patch table with point meta/.code={% |
| 3708 |
\pgfkeyssetvalue{/pgfplots/patch table/value}{#1}% |
| 3709 |
\pgfplotsplothandlermesh@patchtable@hascdatatrue |
| 3710 |
\pgfplotsplothandlermesh@patchtable@cdata@individualfalse |
| 3711 |
\pgfkeysalso{/pgfplots/point meta/explicit}% |
| 3712 |
}, |
| 3713 |
/pgfplots/patch table with individual point meta/.code={% |
| 3714 |
\pgfkeyssetvalue{/pgfplots/patch table/value}{#1}% |
| 3715 |
\pgfplotsplothandlermesh@patchtable@hascdatatrue |
| 3716 |
\pgfplotsplothandlermesh@patchtable@cdata@individualtrue |
| 3717 |
\pgfkeysalso{/pgfplots/point meta/explicit}% |
| 3718 |
}, |
| 3719 |
/pgfplots/patch type/.initial=, |
| 3720 |
/pgfplots/patch type sampling/.is if=pgfplotsplothandlermesh@patch@type@sampling, |
| 3721 |
/pgfplots/patch internal depth/.is if=pgfplotsplothandlermesh@internaldepth, |
| 3722 |
/pgfplots/patch internal depth=true, |
| 3723 |
/pgfplots/patch to triangles/.is choice, |
| 3724 |
/pgfplots/patch to triangles/false/.code= {\def\pgfplotsplothandlermesh@triangulate{0}}, |
| 3725 |
/pgfplots/patch to triangles/true/.code= {\def\pgfplotsplothandlermesh@triangulate{1}}, |
| 3726 |
/pgfplots/patch to triangles/true with edges/.code= {\def\pgfplotsplothandlermesh@triangulate{2}}, |
| 3727 |
/pgfplots/patch to triangles=false, |
| 3728 |
/pgfplots/patch to triangles/.default=true, |
| 3729 |
/pgfplots/mesh input/.is choice, |
| 3730 |
/pgfplots/mesh input/lattice/.code= {\def\pgfplotsplothandlermesh@matrixinput{1}}, |
| 3731 |
/pgfplots/mesh input/patches/.code= {\def\pgfplotsplothandlermesh@matrixinput{0}}, |
| 3732 |
/pgfplots/mesh input/image/.code= {\def\pgfplotsplothandlermesh@matrixinput{2}}, |
| 3733 |
/pgfplots/mesh input/lattice, |
| 3734 |
/pgfplots/patch refines/.initial=0, |
| 3735 |
/pgfplots/hide refined edges/.is if=pgfplotsplothandlermesh@hide@refined@edges, |
| 3736 |
/pgfplots/hide refined edges/.default=true, |
| 3737 |
/pgfplots/mesh/refines/.style={/pgfplots/patch refines={#1}}, |
| 3738 |
/pgfplots/mesh/rows/.initial=, |
| 3739 |
/pgfplots/mesh/cols/.initial=, |
| 3740 |
/pgfplots/mesh/scanline verbose/.is if=pgfplots@scanline@verbose,% |
| 3741 |
/pgfplots/mesh/scanline verbose/.default=true, |
| 3742 |
% |
| 3743 |
% this is currently only a debug feature. Perhaps it will never |
| 3744 |
% reach production state because of the lacking z buffering for |
| 3745 |
% this technique. |
| 3746 |
/pgfplots/mesh/show normals/.is if=pgfplotsplothandlermesh@shownormals, |
| 3747 |
/pgfplots/mesh/show normals/.default=true, |
| 3748 |
/pgfplots/mesh/show normals length factor/.initial=50, |
| 3749 |
% |
| 3750 |
/pgfplots/late options/.code={% |
| 3751 |
\pgfplotssetlateoptions{#1}% |
| 3752 |
}, |
| 3753 |
% |
| 3754 |
/pgfplots/matrix plot/.style={% |
| 3755 |
/pgfplots/late options={% |
| 3756 |
/pgfplots/y dir=reverse, |
| 3757 |
/pgfplots/axis on top, |
| 3758 |
}, |
| 3759 |
% |
| 3760 |
/pgfplots/matrix plot*, |
| 3761 |
}, |
| 3762 |
/pgfplots/matrix plot*/.style={% |
| 3763 |
/pgfplots/surf, |
| 3764 |
/pgfplots/mesh input=image, |
| 3765 |
/pgfplots/shader=flat corner, |
| 3766 |
/pgfplots/z buffer=none, |
| 3767 |
}, |
| 3768 |
/pgfplots/imagesc/.style={/pgfplots/matrix plot},% |
| 3769 |
/pgfplots/imagesc*/.style={/pgfplots/matrix plot*},% |
| 3770 |
% |
| 3771 |
/pgfplots/every patch normal/.style={-stealth,red}, |
| 3772 |
% |
| 3773 |
/pgfplots/mesh/interior colormap/.code 2 args={% |
| 3774 |
\pgfplotscreatecolormap{#1}{#2}% |
| 3775 |
\pgfkeysalso{/pgfplots/mesh/interior colormap name=#1}% |
| 3776 |
}, |
| 3777 |
/pgfplots/mesh/interior colormap name/.initial=, |
| 3778 |
/pgfplots/mesh/interior colormap thresh/.initial=0, |
| 3779 |
/pgfplots/mesh/check/.code={% |
| 3780 |
\pgfplotsutilifstringequal{#1}{false}{% |
| 3781 |
\def\pgfplots@mesh@checkmode{0}% |
| 3782 |
}{% |
| 3783 |
\pgfplotsutilifstringequal{#1}{warning}{% |
| 3784 |
\def\pgfplots@mesh@checkmode{1}% |
| 3785 |
}{% |
| 3786 |
\pgfplotsutilifstringequal{#1}{error}{% |
| 3787 |
\def\pgfplots@mesh@checkmode{2}% |
| 3788 |
}{% |
| 3789 |
\pgfplots@error{Invalid value `#1' for /pgfplots/mesh/check. Please use one of false,warning,error}% |
| 3790 |
}% |
| 3791 |
}% |
| 3792 |
}% |
| 3793 |
},% |
| 3794 |
/pgfplots/mesh/check=error, |
| 3795 |
/pgfplots/mesh/ordering/.is choice, |
| 3796 |
/pgfplots/mesh/ordering/x varies/.code={\def\pgfplots@plot@mesh@ordering{0}}, |
| 3797 |
/pgfplots/mesh/ordering/y varies/.code={\def\pgfplots@plot@mesh@ordering{1}}, |
| 3798 |
/pgfplots/mesh/ordering/rowwise/.style={/pgfplots/mesh/ordering/x varies}, |
| 3799 |
/pgfplots/mesh/ordering/colwise/.style={/pgfplots/mesh/ordering/y varies}, |
| 3800 |
/pgfplots/mesh/ordering/x varies, |
| 3801 |
/pgfplots/every mesh/.code={% |
| 3802 |
% is slower: |
| 3803 |
%\pgfkeysalso{/pgfplots/unbounded coords=jump}% mesh plots need balanced cols! |
| 3804 |
},% |
| 3805 |
/pgfplots/mesh legend/.style={% |
| 3806 |
/pgfplots/legend image code/.code={% |
| 3807 |
\pgfplotsplothandlermesh@defaultlegend@img{##1}% |
| 3808 |
}% |
| 3809 |
}, |
| 3810 |
/pgfplots/mesh/num points/.initial=,%\numcoords,% this is NOT part of the public interface. Don't change it. |
| 3811 |
/pgfplots/z buffer/.is choice,% |
| 3812 |
/pgfplots/z buffer/none/.code={\def\pgfplotsplothandlermesh@zbuffer@choice{0}},% |
| 3813 |
/pgfplots/z buffer/reverse x seq/.code={\def\pgfplotsplothandlermesh@zbuffer@choice{1}},% |
| 3814 |
/pgfplots/z buffer/reverse y seq/.code={\def\pgfplotsplothandlermesh@zbuffer@choice{2}},% |
| 3815 |
/pgfplots/z buffer/reverse xy seq/.code={\def\pgfplotsplothandlermesh@zbuffer@choice{3}},% |
| 3816 |
/pgfplots/z buffer/sort/.code={\def\pgfplotsplothandlermesh@zbuffer@choice{4}},% |
| 3817 |
/pgfplots/z buffer/auto/.code={\def\pgfplotsplothandlermesh@zbuffer@choice{5}},% |
| 3818 |
/pgfplots/z buffer/default/.code={\def\pgfplotsplothandlermesh@zbuffer@choice{6}},% |
| 3819 |
/pgfplots/z buffer/default,% |
| 3820 |
% |
| 3821 |
% Set the shader used for surface plots. |
| 3822 |
% RULES: |
| 3823 |
% 1. meshmode == 'm' (mesh): |
| 3824 |
% This means we use "shader/flat" to determine the colors |
| 3825 |
% and ignore fill colors. |
| 3826 |
% 2. meshmode == 's' (surf): |
| 3827 |
% the shader specifies how colors are used. |
| 3828 |
% 3. Onedimensional mesh/surf plots are treated like 'mesh' |
| 3829 |
% plots. |
| 3830 |
/pgfplots/shader/.is choice, |
| 3831 |
/pgfplots/shader/flat corner/.code={\def\pgfplotsplothandlermesh@shader{0}\def\pgfplotsplothandlermesh@flatmode{c}}, |
| 3832 |
/pgfplots/shader/flat mean/.code={\def\pgfplotsplothandlermesh@shader{0}\def\pgfplotsplothandlermesh@flatmode{m}}, |
| 3833 |
/pgfplots/shader/flat/.style={/pgfplots/shader/flat mean},% |
| 3834 |
/pgfplots/shader/faceted/.code={\def\pgfplotsplothandlermesh@shader{1}}, |
| 3835 |
/pgfplots/shader/interp/.code={\def\pgfplotsplothandlermesh@shader{2}}, |
| 3836 |
/pgfplots/shader/faceted interp/.code={\def\pgfplotsplothandlermesh@shader{3}}, |
| 3837 |
/pgfplots/shader/faceted, |
| 3838 |
/pgfplots/faceted color/.initial=mapped color!80!black, |
| 3839 |
/pgfplots/marker layer/.initial=auto, |
| 3840 |
/pgfplots/clip marker paths/.is if=pgfplots@clip@marker@paths, |
| 3841 |
/pgfplots/clip marker paths/.default=true, |
| 3842 |
/pgfplots/axis on top/.is if=pgfplots@axis@on@top, |
| 3843 |
/pgfplots/axis on top/.default=true, |
| 3844 |
/pgfplots/invoke before crossref tikzpicture/.initial={% |
| 3845 |
\expandafter\ifx\csname tikzappendtofigurename\endcsname\relax |
| 3846 |
\else |
| 3847 |
\begingroup |
| 3848 |
\tikzappendtofigurename{_crossref}% |
| 3849 |
\fi |
| 3850 |
}, |
| 3851 |
/pgfplots/invoke after crossref tikzpicture/.initial={% |
| 3852 |
\expandafter\ifx\csname tikzappendtofigurename\endcsname\relax |
| 3853 |
\else |
| 3854 |
\endgroup |
| 3855 |
\fi |
| 3856 |
},% |
| 3857 |
/pgfplots/every crossref picture/.style={% |
| 3858 |
baseline,yshift=0.3em |
| 3859 |
}, |
| 3860 |
/pgfplots/unbounded coords/.code={% |
| 3861 |
\edef\pgfplots@loc@TMPa{#1}% |
| 3862 |
\def\pgfplots@loc@TMPb{discard}% |
| 3863 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 3864 |
\def\pgfplots@unbounded@handler{d}% |
| 3865 |
\else |
| 3866 |
\def\pgfplots@loc@TMPb{jump}% |
| 3867 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 3868 |
\def\pgfplots@unbounded@handler{j}% |
| 3869 |
\else |
| 3870 |
\pgfplots@error{Sorry, the choice `#1' is unknown for \pgfkeyscurrentkey. Please use either 'discard' or 'jump'.}% |
| 3871 |
\fi |
| 3872 |
\fi |
| 3873 |
},% |
| 3874 |
/pgfplots/unbounded coords=discard, |
| 3875 |
/pgfplots/x coord trafo/.code={}, |
| 3876 |
/pgfplots/x coord inv trafo/.code={}, |
| 3877 |
/pgfplots/y coord trafo/.code={}, |
| 3878 |
/pgfplots/y coord inv trafo/.code={}, |
| 3879 |
/pgfplots/z coord trafo/.code={}, |
| 3880 |
/pgfplots/z coord inv trafo/.code={}, |
| 3881 |
% |
| 3882 |
/pgfplots/symbolic coords/magic prefix/.initial={[normalized]}, |
| 3883 |
% #1 : the coordinate in question. Can be x,y,z, or even hist/data |
| 3884 |
% or similar constructs. |
| 3885 |
% #2 : {<symbol1>,<symbol2>,....<symboln>} |
| 3886 |
/pgfplots/symbolic coords/.code 2 args={% |
| 3887 |
\expandafter\pgfplotsarraynew\csname pgfplots@symbolic@coords@#1@inverse\endcsname{#2}% |
| 3888 |
\expandafter\pgfplotsarrayforeachungrouped\csname pgfplots@symbolic@coords@#1@inverse\endcsname\as\pgfplots@loc@TMPa{% |
| 3889 |
\pgfplots@command@to@string\pgfplots@loc@TMPa\pgfplots@loc@TMPa |
| 3890 |
% \message{Defining symb coords \pgfplots@loc@TMPa^^J}% |
| 3891 |
\expandafter\edef\csname pgfp@symb@coords@#1@\pgfplots@loc@TMPa\endcsname{\pgfplotsarrayforeachindex}% |
| 3892 |
}% |
| 3893 |
\pgfkeysgetvalue{/pgfplots/symbolic coords/magic prefix}\pgfplots@symb@magic@prefix |
| 3894 |
\pgfkeysdef{/pgfplots/#1 coord trafo}{% |
| 3895 |
\expandafter\pgfplotsutilifstartswith\expandafter{\pgfplots@symb@magic@prefix}{##1}{% |
| 3896 |
% Ah - something like [normalized]1.5 |
| 3897 |
% we need to assign the suffix 1.5: |
| 3898 |
\edef\pgfmathresult{\pgfplotsretval}% |
| 3899 |
}{% |
| 3900 |
% ensure that special (unexpandable) characters are |
| 3901 |
% preserved: |
| 3902 |
\def\pgfplots@loc@TMPa{##1}% |
| 3903 |
\pgfplots@command@to@string\pgfplots@loc@TMPa\pgfplots@loc@TMPa |
| 3904 |
\pgfutil@ifundefined{pgfp@symb@coords@#1@\pgfplots@loc@TMPa}{% |
| 3905 |
\t@pgfplots@toka={##1}% |
| 3906 |
\t@pgfplots@tokb={#2}% |
| 3907 |
\pgfplots@error{Sorry, the input coordinate `\the\t@pgfplots@toka' has not been defined with 'symbolic #1 coords={\the\t@pgfplots@tokb}... Maybe it has been misspelled? Or did you mean something like \pgfplots@symb@magic@prefix\the\t@pgfplots@toka?}% |
| 3908 |
\def\pgfmathresult{0}% |
| 3909 |
}{% |
| 3910 |
\edef\pgfmathresult{\csname pgfp@symb@coords@#1@\pgfplots@loc@TMPa\endcsname}% |
| 3911 |
}% |
| 3912 |
}% |
| 3913 |
%\message{#1 coord trafo{\pgfplots@loc@TMPa} --> \pgfmathresult^^J}% |
| 3914 |
}% |
| 3915 |
\pgfkeysdef{/pgfplots/#1 coord inv trafo}{% |
| 3916 |
\begingroup |
| 3917 |
% discard everything up to the period: |
| 3918 |
\pgfmath@basic@round@{##1}% |
| 3919 |
\afterassignment\pgfplots@gobble@until@relax |
| 3920 |
\count0=\pgfmathresult\relax |
| 3921 |
\ifnum\count0<0 |
| 3922 |
\count0=0 |
| 3923 |
\else |
| 3924 |
\edef\pgfplots@loc@TMPa{\expandafter\pgfplotsarraysizeof\csname pgfplots@symbolic@coords@#1@inverse\endcsname}% |
| 3925 |
\count1=\pgfplots@loc@TMPa\relax |
| 3926 |
\ifnum\count0<\count1 |
| 3927 |
\else |
| 3928 |
\count0=\count1 |
| 3929 |
\advance\count0 by-1 |
| 3930 |
\fi |
| 3931 |
\fi |
| 3932 |
\expandafter\pgfplotsarrayselect\expandafter\count\expandafter0\expandafter\of\csname pgfplots@symbolic@coords@#1@inverse\endcsname\to\pgfmathresult |
| 3933 |
%\message{#1 coord inv trafo{##1} -->\the\count0 --> \meaning\pgfmathresult^^J}% |
| 3934 |
\pgfmath@smuggleone\pgfmathresult |
| 3935 |
\endgroup |
| 3936 |
}% |
| 3937 |
\pgfkeysifdefined{/pgfplots/#1ticklabel/.@cmd}{% |
| 3938 |
\pgfkeysalso{% |
| 3939 |
/pgfplots/#1ticklabel={\pgfplots@ticklabel@typeset@arg\tick},% |
| 3940 |
/pgfplots/scaled #1 ticks=false,% |
| 3941 |
/pgfplots/plot coordinates/math parser=false,% |
| 3942 |
}% |
| 3943 |
}{% |
| 3944 |
% OK. The style can be used for other coordinates as well |
| 3945 |
% (like hist/data) |
| 3946 |
}% |
| 3947 |
% |
| 3948 |
\pgfkeysifdefined{/pgfplots/#1 is expr}{% |
| 3949 |
\pgfkeyssetvalue{/pgfplots/#1 is expr}{0}% |
| 3950 |
}{}% |
| 3951 |
% |
| 3952 |
% Allow a callback (optional) |
| 3953 |
\pgfkeysifdefined{/pgfplots/#1/@execute on coord trafo changed/.@cmd}{% |
| 3954 |
\pgfkeysalso {/pgfplots/#1/@execute on coord trafo changed}% |
| 3955 |
}{}% |
| 3956 |
},% |
| 3957 |
/pgfplots/symbolic x coords/.style={symbolic coords={x}{#1}},% |
| 3958 |
/pgfplots/symbolic y coords/.style={symbolic coords={y}{#1}},% |
| 3959 |
/pgfplots/symbolic z coords/.style={symbolic coords={z}{#1}},% |
| 3960 |
% Defines the class name \pgfplotspointmetainputhandler: |
| 3961 |
/pgfplots/point meta/.code={% |
| 3962 |
\pgfplots@pgfkeys@set@point@meta@value{#1}% |
| 3963 |
},% |
| 3964 |
/pgfplots/point meta/none/.code ={\pgfplotssetpointmetainput{}{}},% |
| 3965 |
/pgfplots/point meta/x/.code ={\pgfplotssetpointmetainput{x}{}},% |
| 3966 |
/pgfplots/point meta/y/.code ={\pgfplotssetpointmetainput{y}{}},% |
| 3967 |
/pgfplots/point meta/z/.code ={\pgfplotssetpointmetainput{z}{}},% |
| 3968 |
/pgfplots/point meta/expr/.code={\pgfplotssetpointmetainput{expr}{#1}},% |
| 3969 |
/pgfplots/point meta/explicit/.code={\pgfplotssetpointmetainput{explicit}{}},% |
| 3970 |
/pgfplots/point meta/explicit symbolic/.code={\pgfplotssetpointmetainput{explicit symbolic}{}},% |
| 3971 |
/pgfplots/point meta/f(x)/.code={\pgfplotssetpointmetainput{f(x)}{}},% |
| 3972 |
/pgfplots/point meta/TeX code/.code={\pgfplotssetpointmetainput{TeX code}{#1}},% |
| 3973 |
/pgfplots/point meta/TeX code/.value required, |
| 3974 |
/pgfplots/point meta/TeX code symbolic/.code={\pgfplotssetpointmetainput{TeX code symbolic}{#1}},% |
| 3975 |
/pgfplots/point meta/TeX code symbolic/.value required, |
| 3976 |
/pgfplots/point meta/symbolic/.style={/pgfplots/point meta/TeX code symbolic={\edef\pgfplotspointmeta{#1}}}, |
| 3977 |
/pgfplots/set point meta if empty/.code={% |
| 3978 |
\ifx\pgfplotspointmetainputhandler\pgfutil@empty |
| 3979 |
\pgfkeysalso{/pgfplots/point meta=#1}% |
| 3980 |
\fi |
| 3981 |
},% |
| 3982 |
/pgfplots/point meta/none, |
| 3983 |
/pgfplots/point meta rel/.is choice, |
| 3984 |
/pgfplots/point meta rel/axis wide/.code={\def\pgfplots@perpointmeta@rel@choice{0}},% |
| 3985 |
/pgfplots/point meta rel/per plot/.code={\def\pgfplots@perpointmeta@rel@choice{1}},% |
| 3986 |
/pgfplots/point meta rel/axis wide,% |
| 3987 |
/pgfplots/point meta min/.initial=,% |
| 3988 |
/pgfplots/point meta max/.initial=,% |
| 3989 |
% |
| 3990 |
/pgfplots/point meta/expand/.is if=pgfplots@perpointmeta@expand, |
| 3991 |
/pgfplots/point meta/expand=false, |
| 3992 |
% |
| 3993 |
/pgfplots/colormap name/.initial=hot, |
| 3994 |
/pgfplots/colormap access/.is choice, |
| 3995 |
/pgfplots/colormap access/direct/.code={\def\pgfplots@colormap@access{d}},% |
| 3996 |
/pgfplots/colormap access/map/.code={\def\pgfplots@colormap@access{m}},% |
| 3997 |
/pgfplots/colormap access/piecewise constant/.code={\def\pgfplots@colormap@access{c}},% |
| 3998 |
/pgfplots/colormap access/piecewise const/.code= {\def\pgfplots@colormap@access{c}},% |
| 3999 |
/pgfplots/colormap access/const/.code= {\def\pgfplots@colormap@access{c}},% |
| 4000 |
/pgfplots/colormap access/piecewise linear/.style={/pgfplots/colormap access/map}, |
| 4001 |
/pgfplots/colormap access/map,% |
| 4002 |
%/pgfplots/colormap default colorspace/.initial=auto,% declared in pgfplotscolormap.code.tex |
| 4003 |
/pgfplots/colormap/.code 2 args={% |
| 4004 |
\pgfplotscreatecolormap{#1}{#2}% |
| 4005 |
\pgfkeysalso{/pgfplots/colormap name=#1}% |
| 4006 |
}, |
| 4007 |
% |
| 4008 |
% #1: a style name like '/pgfplots/colormap/hot' |
| 4009 |
/pgfplots/ensure colormap/.code={% |
| 4010 |
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@ensure@old@cm |
| 4011 |
\pgfkeysalso{#1}% |
| 4012 |
\pgfkeyslet{/pgfplots/colormap name}\pgfplots@ensure@old@cm |
| 4013 |
}, |
| 4014 |
% a backwards compatibility switch: |
| 4015 |
/pgfplots/colormap uniform/.is choice, |
| 4016 |
/pgfplots/colormap uniform/always/.code={\def\pgfplots@colormap@uniform@choice{0}}, |
| 4017 |
/pgfplots/colormap uniform/if requested/.code={\def\pgfplots@colormap@uniform@choice{1}}, |
| 4018 |
/pgfplots/colormap uniform/always, |
| 4019 |
% |
| 4020 |
% #1: a number X with 0<= x <=0.9 which defines the relative size |
| 4021 |
% of the extra interval used for 'colormap access=piecewise constant' |
| 4022 |
% The value #1=0 disables the extra interval. |
| 4023 |
/pgfplots/colormap access/extra interval width/.code={% |
| 4024 |
\pgfplotscolormapsetadditionalintervalwidth{\pgfkeysvalueof{/pgfplots/colormap name}}{#1}% |
| 4025 |
}, |
| 4026 |
% |
| 4027 |
/pgfplots/colormap/hot/.style={ |
| 4028 |
% attention: copied from pgfplots.colormap.code.tex: |
| 4029 |
/pgfplots/colormap={hot}{color(0cm)=(blue); color(1cm)=(yellow); color(2cm)=(orange); color(3cm)=(red)} |
| 4030 |
}, |
| 4031 |
/pgfplots/colormap/viridis/.style={% |
| 4032 |
/pgfplots/colormap={viridis}{% |
| 4033 |
rgb=(0.267,0.00487,0.32942) |
| 4034 |
rgb=(0.28192,0.08966,0.41241) |
| 4035 |
rgb=(0.28026,0.1657,0.4765) |
| 4036 |
rgb=(0.26366,0.23763,0.51877) |
| 4037 |
rgb=(0.23744,0.3052,0.54192) |
| 4038 |
rgb=(0.20862,0.36775,0.55267) |
| 4039 |
rgb=(0.18225,0.42618,0.55711) |
| 4040 |
rgb=(0.1592,0.48224,0.55807) |
| 4041 |
rgb=(0.13777,0.53749,0.5549) |
| 4042 |
rgb=(0.12115,0.59274,0.54465) |
| 4043 |
rgb=(0.12808,0.64775,0.5235) |
| 4044 |
rgb=(0.18065,0.7014,0.48819) |
| 4045 |
rgb=(0.27415,0.75198,0.4366) |
| 4046 |
rgb=(0.39517,0.79747,0.36775) |
| 4047 |
rgb=(0.53561,0.83578,0.2819) |
| 4048 |
rgb=(0.68895,0.86545,0.18272) |
| 4049 |
rgb=(0.84557,0.88733,0.0997) |
| 4050 |
rgb=(0.99324,0.90616,0.14394) |
| 4051 |
}% |
| 4052 |
}, |
| 4053 |
% instantiate viridis such that it is in memory by default: |
| 4054 |
/pgfplots/colormap/viridis, |
| 4055 |
% ... but reuse hot since it is used to be the default since the |
| 4056 |
% beginning: |
| 4057 |
/pgfplots/colormap name=hot, |
| 4058 |
% |
| 4059 |
/pgfplots/colormap/plasma/.style={% |
| 4060 |
/pgfplots/colormap={plasma}{% |
| 4061 |
rgb=(0.050383, 0.029803, 0.527975) |
| 4062 |
rgb=(0.171574, 0.019706, 0.580806) |
| 4063 |
rgb=(0.261183, 0.013308, 0.617911) |
| 4064 |
rgb=(0.35015, 0.004382, 0.646298) |
| 4065 |
rgb=(0.429719, 0.000831, 0.659425) |
| 4066 |
rgb=(0.512206, 0.018833, 0.655209) |
| 4067 |
rgb=(0.584391, 0.068579, 0.632812) |
| 4068 |
rgb=(0.65558, 0.129725, 0.592317) |
| 4069 |
rgb=(0.714883, 0.187299, 0.546338) |
| 4070 |
rgb=(0.771958, 0.249237, 0.494813) |
| 4071 |
rgb=(0.819651, 0.306812, 0.448306) |
| 4072 |
rgb=(0.866078, 0.36966, 0.400126) |
| 4073 |
rgb=(0.904601, 0.429797, 0.356329) |
| 4074 |
rgb=(0.940313, 0.497642, 0.309197) |
| 4075 |
rgb=(0.966798, 0.564396, 0.265118) |
| 4076 |
rgb=(0.986345, 0.640969, 0.217948) |
| 4077 |
rgb=(0.994324, 0.716681, 0.177208) |
| 4078 |
rgb=(0.989587, 0.803205, 0.146529) |
| 4079 |
rgb=(0.970533, 0.887896, 0.145919) |
| 4080 |
rgb=(0.940015, 0.975158, 0.131326) |
| 4081 |
}% |
| 4082 |
}, |
| 4083 |
/pgfplots/colormap/hot2/.style={ |
| 4084 |
/pgfplots/colormap={hot2}{[1cm]rgb255(0cm)=(0,0,0) rgb255(3cm)=(255,0,0) rgb255(6cm)=(255,255,0) rgb255(8cm)=(255,255,255)} |
| 4085 |
}, |
| 4086 |
/pgfplots/colormap/bluered/.style={ |
| 4087 |
/pgfplots/colormap={bluered}{rgb255(0cm)=(0,0,180); rgb255(1cm)=(0,255,255); rgb255(2cm)=(100,255,0); rgb255(3cm)=(255,255,0); rgb255(4cm)=(255,0,0); rgb255(5cm)=(128,0,0)} |
| 4088 |
}, |
| 4089 |
/pgfplots/colormap/cool/.style={ |
| 4090 |
/pgfplots/colormap={cool}{rgb255(0cm)=(255,255,255); rgb255(1cm)=(0,128,255); rgb255(2cm)=(255,0,255)} |
| 4091 |
}, |
| 4092 |
/pgfplots/colormap/greenyellow/.style={ |
| 4093 |
/pgfplots/colormap={greenyellow}{rgb255(0cm)=(0,128,0); rgb255(1cm)=(255,255,0)} |
| 4094 |
}, |
| 4095 |
/pgfplots/colormap/redyellow/.style={ |
| 4096 |
/pgfplots/colormap={redyellow}{rgb255(0cm)=(255,0,0); rgb255(1cm)=(255,255,0)} |
| 4097 |
}, |
| 4098 |
/pgfplots/colormap/blackwhite/.style={ |
| 4099 |
/pgfplots/colormap={blackwhite}{gray(0cm)=(0); gray(1cm)=(1)} |
| 4100 |
}, |
| 4101 |
/pgfplots/colormap/violet/.style={ |
| 4102 |
/pgfplots/colormap={violet}{rgb255=(25,25,122) color=(white) rgb255=(238,140,238)} |
| 4103 |
}, |
| 4104 |
/pgfplots/colormap/jet/.style={ |
| 4105 |
/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)} |
| 4106 |
}, |
| 4107 |
% |
| 4108 |
% color of colormap={300} |
| 4109 |
% color of colormap={300 of viridis} |
| 4110 |
/pgfplots/color of colormap/.code={% |
| 4111 |
\pgfplots@color@of@colormap{color of colormap={#1}}% |
| 4112 |
},% |
| 4113 |
/tikz/color of colormap/.style={/pgfplots/color of colormap={#1}}, |
| 4114 |
% const color of colormap={300} |
| 4115 |
% const color of colormap={300 of viridis} |
| 4116 |
/pgfplots/const color of colormap/.code={% |
| 4117 |
\pgfplots@color@of@colormap{const color of colormap={#1}}% |
| 4118 |
},% |
| 4119 |
/tikz/const color of colormap/.style={/pgfplots/const color of colormap={#1}}, |
| 4120 |
% index of colormap={4} |
| 4121 |
% index of colormap={4 of viridis} |
| 4122 |
/pgfplots/index of colormap/.code={% |
| 4123 |
\pgfplots@color@of@colormap{index of colormap={#1}}% |
| 4124 |
},% |
| 4125 |
/tikz/index of colormap/.style={/pgfplots/index of colormap={#1}}, |
| 4126 |
% |
| 4127 |
% #1: the target color name |
| 4128 |
% #2: the color space (like 'rgb') |
| 4129 |
% #3: the color components |
| 4130 |
/tikz/color/.define/.code args={#1#2#3}{% |
| 4131 |
\pgfutil@definecolor{#1}{#2}{#3}% |
| 4132 |
}, |
| 4133 |
% |
| 4134 |
%% |
| 4135 |
/pgfplots/scatter/.is choice, |
| 4136 |
/pgfplots/scatter/false/.code={% |
| 4137 |
\pgfplots@scatterplotenabledfalse |
| 4138 |
},% |
| 4139 |
/pgfplots/scatter/true*/.code={% |
| 4140 |
\pgfplots@scatterplotenabledtrue |
| 4141 |
\pgfkeysalso{/pgfplots/set point meta if empty=f(x)}% |
| 4142 |
},% |
| 4143 |
/pgfplots/scatter/true/.code={% |
| 4144 |
\pgfplots@scatterplotenabledtrue |
| 4145 |
\pgfkeysalso{/pgfplots/set point meta if empty=f(x)}% |
| 4146 |
% make sure there is a mark set! |
| 4147 |
\pgfplots@gettikzinternal@keyval{mark}{tikz@plot@mark}{}% |
| 4148 |
\def\pgfplots@loc@TMPa{none}% |
| 4149 |
\ifx\tikz@plot@mark\pgfplots@loc@TMPa |
| 4150 |
% this here happens only in older versions of pgf. |
| 4151 |
\pgfqkeys{/tikz}{mark=*}% |
| 4152 |
\else |
| 4153 |
\ifx\tikz@plot@mark\pgfutil@empty |
| 4154 |
\pgfqkeys{/tikz}{mark=*}% |
| 4155 |
\fi |
| 4156 |
\fi |
| 4157 |
}, |
| 4158 |
/pgfplots/scatter/.default=true, |
| 4159 |
/pgfplots/scatter src/.style={/pgfplots/point meta={#1}}, |
| 4160 |
/tikz/scatter/.style={/pgfplots/scatter=#1}, |
| 4161 |
% |
| 4162 |
% ARGUMENTS: the macros |
| 4163 |
% - \pgfplotspointmeta |
| 4164 |
% - \pgfplotspointmetarange |
| 4165 |
% - \pgfplotspointmetatransformed |
| 4166 |
% - \pgfplotspointmetatransformedrange |
| 4167 |
% are set during @pre marker code and @post marker code. |
| 4168 |
% '#1' is empty. |
| 4169 |
/pgfplots/scatter/@pre marker code/.code=,% |
| 4170 |
/pgfplots/scatter/@post marker code/.code=,% |
| 4171 |
/pgfplots/scatter/position/.is choice, |
| 4172 |
/pgfplots/scatter/position/absolute/.code={\def\pgfplots@scatter@position{a}}, |
| 4173 |
/pgfplots/scatter/position/relative/.code={\def\pgfplots@scatter@position{r}}, |
| 4174 |
/pgfplots/scatter/position=relative, |
| 4175 |
/pgfplots/scatter/use mapped color/.style={% |
| 4176 |
/pgfplots/scatter/@pre marker code/.code=,% |
| 4177 |
/pgfplots/scatter/@post marker code/.code=,% |
| 4178 |
/pgfplots/scatter/use mapped color*={#1},% |
| 4179 |
},% |
| 4180 |
/pgfplots/scatter/use mapped color*/.style={ |
| 4181 |
/pgfplots/scatter/@pre marker code/.append code={ |
| 4182 |
\pgfplotscolormapdefinemappedcolor\pgfplotspointmetatransformed |
| 4183 |
\pgfplots@scope@with@coord@styles[#1]% |
| 4184 |
}, |
| 4185 |
/pgfplots/scatter/@post marker code/.prefix code={\endscope} |
| 4186 |
}, |
| 4187 |
/pgfplots/scatter/use mapped color*/.default={draw=mapped color!80!black,fill=mapped color}, |
| 4188 |
/pgfplots/scatter/use mapped color*, |
| 4189 |
% expect '#1 = {<class>=<style>,<class>=<style>,...} where <class> |
| 4190 |
% is expected as SYMBOL, not as number. See 'point meta/explicit symbolic' |
| 4191 |
/pgfplots/scatter/classes/.style={% |
| 4192 |
/pgfplots/scatter/@pre marker code/.code=,% |
| 4193 |
/pgfplots/scatter/@post marker code/.code=,% |
| 4194 |
/pgfplots/scatter/classes*={#1},% |
| 4195 |
},% |
| 4196 |
/pgfplots/scatter/classes*/.code={% |
| 4197 |
% Step 1: remember the per class-styles as |
| 4198 |
% \csname pgfp@scatter@class@<class name>\endcsname |
| 4199 |
% -> this is done locally! |
| 4200 |
\def\pgfplots@loc@TMPa##1=##2\pgfplots@EEOI{% |
| 4201 |
\expandafter\def\csname pgfp@scatter@class@##1\endcsname{##2}% |
| 4202 |
}% |
| 4203 |
\pgfplotsforeachentryinCSV{\pgfplots@loc@TMPb}{#1}{% |
| 4204 |
\expandafter\pgfplots@loc@TMPa\pgfplots@loc@TMPb\pgfplots@EEOI |
| 4205 |
}% |
| 4206 |
% |
| 4207 |
\pgfkeysalso{% |
| 4208 |
/pgfplots/scatter/@pre marker code/.append code={\pgfplots@scatter@classes@pre@marker@code},% |
| 4209 |
/pgfplots/scatter/@post marker code/.prefix code={\endscope}% |
| 4210 |
}% |
| 4211 |
% Now:remember the classes. |
| 4212 |
\pgfkeyssetvalue{/pgfplots/scatter/classes/values}{#1}% |
| 4213 |
% |
| 4214 |
% and generate legend items for every single class, |
| 4215 |
% But ONLY if we really *have* a plot which uses |
| 4216 |
% scatter/classes! |
| 4217 |
\pgfkeys{/pgfplots/execute at begin plot@@/.add={}{% |
| 4218 |
\ifpgfplots@scatterplotenabled |
| 4219 |
\pgfkeysgetvalue{/pgfplots/scatter/@pre marker code/.@cmd}\pgfplots@loc@TMPa |
| 4220 |
\def\pgfplots@loc@TMPb{\pgfutil@in@{\pgfplots@scatter@classes@pre@marker@code}}% |
| 4221 |
\expandafter\pgfplots@loc@TMPb\expandafter{\pgfplots@loc@TMPa\pgfeov}% |
| 4222 |
\ifpgfutil@in@ |
| 4223 |
% modify '\pgfplots@rememberplotspec' such |
| 4224 |
% that it generates entries for every class: |
| 4225 |
\let\pgfplots@rememberplotspec@orig=\pgfplots@rememberplotspec |
| 4226 |
\def\pgfplots@rememberplotspec##1{% |
| 4227 |
\def\pgfplots@scatter@loc@TMPa####1=####2\pgfplots@EEOI{% |
| 4228 |
\pgfplots@rememberplotspec@orig{##1,####2}% |
| 4229 |
\pgfplots@rememberplotspec@for@label[####1]{##1,####2}% |
| 4230 |
}% |
| 4231 |
\pgfplotsforeachentryinCSV{\pgfplots@scatter@loc@TMPb}{#1}{% |
| 4232 |
\expandafter\pgfplots@scatter@loc@TMPa\pgfplots@scatter@loc@TMPb\pgfplots@EEOI |
| 4233 |
}% |
| 4234 |
}% |
| 4235 |
\fi |
| 4236 |
\fi |
| 4237 |
}% |
| 4238 |
}% |
| 4239 |
}, |
| 4240 |
/pgfplots/refstyle/.code={% |
| 4241 |
\pgfutil@ifundefined{pgfplots@labelstyle@#1}{% |
| 4242 |
\G@refundefinedtrue |
| 4243 |
\@latex@warning{Reference `#1' on page \thepage \space undefined}% |
| 4244 |
}{% |
| 4245 |
\t@pgfplots@toka=\expandafter\expandafter\expandafter{\csname pgfplots@labelstyle@#1\endcsname}% |
| 4246 |
\expandafter\pgfkeysalso\expandafter{\the\t@pgfplots@toka}% |
| 4247 |
}% |
| 4248 |
},% |
| 4249 |
/pgfplots/forget plot/.is if=pgfplots@curplot@isirrelevant, |
| 4250 |
/pgfplots/forget plot/.default=true, |
| 4251 |
/pgfplots/normalsize/.style={ |
| 4252 |
/pgfplots/width=240pt, |
| 4253 |
/pgfplots/height=207pt, |
| 4254 |
/pgfplots/max space between ticks=35, |
| 4255 |
}, |
| 4256 |
/pgfplots/small/.style={ |
| 4257 |
width=6.5cm, |
| 4258 |
height=, |
| 4259 |
tick label style={font=\footnotesize}, |
| 4260 |
label style={font=\small}, |
| 4261 |
max space between ticks=25, |
| 4262 |
}, |
| 4263 |
/pgfplots/footnotesize/.style={ |
| 4264 |
width=5cm, |
| 4265 |
height=, |
| 4266 |
legend style={font=\footnotesize}, |
| 4267 |
tick label style={font=\footnotesize}, |
| 4268 |
label style={font=\small}, |
| 4269 |
title style={font=\small}, |
| 4270 |
every axis title shift=0pt, |
| 4271 |
max space between ticks=15, |
| 4272 |
every mark/.append style={mark size=8}, |
| 4273 |
major tick length=0.1cm, |
| 4274 |
minor tick length=0.066cm, |
| 4275 |
}, |
| 4276 |
/pgfplots/tiny/.style={ |
| 4277 |
width=4cm, |
| 4278 |
height=, |
| 4279 |
legend style={font=\tiny}, |
| 4280 |
tick label style={font=\tiny}, |
| 4281 |
label style={font=\tiny}, |
| 4282 |
title style={font=\footnotesize}, |
| 4283 |
every axis title shift=0pt, |
| 4284 |
max space between ticks=12, |
| 4285 |
every mark/.append style={mark size=6}, |
| 4286 |
major tick length=0.1cm, |
| 4287 |
minor tick length=0.066cm, |
| 4288 |
every legend image post/.append style={scale=0.8}, |
| 4289 |
}, |
| 4290 |
/pgfplots/cube/set size/.code 2 args={% |
| 4291 |
\expandafter\def\csname pgfplots@cube@gethalf@#1\endcsname{% |
| 4292 |
\afterassignment\pgfplots@gobble@until@relax |
| 4293 |
\pgfplots@tmpa=#2pt\relax |
| 4294 |
\pgfplotsconvertunittocoordinate #1{0.5\pgfplots@tmpa}% |
| 4295 |
}% |
| 4296 |
},% |
| 4297 |
/pgfplots/cube/size x/.style={/pgfplots/cube/set size=x{#1}}, |
| 4298 |
/pgfplots/cube/size y/.style={/pgfplots/cube/set size=y{#1}}, |
| 4299 |
/pgfplots/cube/size z/.style={/pgfplots/cube/set size=z{#1}}, |
| 4300 |
/pgfplots/cube/size x=\pgfplotmarksize, |
| 4301 |
/pgfplots/cube/size y=\pgfplotmarksize, |
| 4302 |
/pgfplots/cube/size z=\pgfplotmarksize, |
| 4303 |
% |
| 4304 |
/pgfplots/3d log sampling/.is if=pgfplots@threedim@log@sampling, |
| 4305 |
% |
| 4306 |
/pgfplots/trig format/.style={/pgf/trig format={#1}}, |
| 4307 |
/pgfplots/xtick placement tolerance/.initial=0.05pt, |
| 4308 |
/pgfplots/ytick placement tolerance/.initial=0.05pt, |
| 4309 |
/pgfplots/ztick placement tolerance/.initial=0.05pt, |
| 4310 |
% |
| 4311 |
/pgfplots/correct polar positioning/.is choice, |
| 4312 |
/pgfplots/correct polar positioning/true/.code={\def\b@pgfplots@polaraxis@fix@positioning{1}}, |
| 4313 |
/pgfplots/correct polar positioning/false/.code={\def\b@pgfplots@polaraxis@fix@positioning{0}}, |
| 4314 |
% |
| 4315 |
/pgfplots/correct shader flat/.is choice, |
| 4316 |
/pgfplots/correct shader flat/true/.code={\def\b@pgfplots@correct@shader@flat{1}}, |
| 4317 |
/pgfplots/correct shader flat/false/.code={\def\b@pgfplots@correct@shader@flat{0}}, |
| 4318 |
% |
| 4319 |
/pgfplots/correct sampling/.is choice, |
| 4320 |
/pgfplots/correct sampling/true/.code={\let\pgfplotsforeachungroupeduniform@loop@mathengine=\pgfplotsforeachungroupeduniform@loop@mathengine@precise}, |
| 4321 |
/pgfplots/correct sampling/false/.code={\let\pgfplotsforeachungroupeduniform@loop@mathengine=\pgfplotsforeachungroupeduniform@loop@mathengine@legacy}, |
| 4322 |
% |
| 4323 |
/pgfplots/compat/anchors/.is choice, |
| 4324 |
/pgfplots/compat/anchors/pre 1.3/.code={% |
| 4325 |
\pgfplots@deprecated@anchorstrue |
| 4326 |
\pgfkeysalso{/pgfplots/correct polar positioning=false}% |
| 4327 |
}, |
| 4328 |
/pgfplots/compat/anchors/1.3/.code= {% |
| 4329 |
\pgfplots@deprecated@anchorsfalse |
| 4330 |
\pgfkeysalso{/pgfplots/correct polar positioning=false}% |
| 4331 |
},% |
| 4332 |
/pgfplots/compat/anchors/1.4/.style= {/pgfplots/compat/anchors/1.3},% |
| 4333 |
/pgfplots/compat/anchors/1.5/.style= {/pgfplots/compat/anchors/1.3},% |
| 4334 |
/pgfplots/compat/anchors/1.5.1/.style= {/pgfplots/compat/anchors/1.3},% |
| 4335 |
/pgfplots/compat/anchors/1.6/.style= {/pgfplots/compat/anchors/1.3},% |
| 4336 |
/pgfplots/compat/anchors/1.7/.style= {/pgfplots/compat/anchors/1.3},% |
| 4337 |
/pgfplots/compat/anchors/1.8/.style= {/pgfplots/compat/anchors/1.3},% |
| 4338 |
/pgfplots/compat/anchors/1.9/.style= {/pgfplots/compat/anchors/1.3},% |
| 4339 |
/pgfplots/compat/anchors/1.10/.style= {/pgfplots/compat/anchors/1.3},% |
| 4340 |
/pgfplots/compat/anchors/1.11/.style= {/pgfplots/compat/anchors/1.3},% |
| 4341 |
/pgfplots/compat/anchors/1.12/.style= {/pgfplots/compat/anchors/1.3},% |
| 4342 |
/pgfplots/compat/anchors/1.13/.style= {/pgfplots/compat/anchors/1.3,/pgfplots/correct polar positioning=true},% |
| 4343 |
/pgfplots/compat/anchors/1.14/.style= {/pgfplots/compat/anchors/1.13},% |
| 4344 |
/pgfplots/compat/anchors/1.15/.style= {/pgfplots/compat/anchors/1.13},% |
| 4345 |
/pgfplots/compat/anchors/1.16/.style= {/pgfplots/compat/anchors/1.13},% |
| 4346 |
/pgfplots/compat/anchors/1.17/.style= {/pgfplots/compat/anchors/1.13},% |
| 4347 |
/pgfplots/compat/anchors/1.18/.style= {/pgfplots/compat/anchors/1.13},% |
| 4348 |
/pgfplots/compat/anchors/default/.style={/pgfplots/compat/anchors/1.3},% |
| 4349 |
% |
| 4350 |
% |
| 4351 |
/pgfplots/compat/empty line/.is choice, |
| 4352 |
/pgfplots/compat/empty line/pre 1.3/.code={\pgfplots@emptyline@compattrue},% FIXME: WAS \global |
| 4353 |
/pgfplots/compat/empty line/1.3/.style= {/pgfplots/compat/empty line/pre 1.3},% |
| 4354 |
/pgfplots/compat/empty line/1.4/.code= {\pgfplots@emptyline@compatfalse},% |
| 4355 |
/pgfplots/compat/empty line/1.5/.style= {/pgfplots/compat/empty line/1.4},% |
| 4356 |
/pgfplots/compat/empty line/1.5.1/.style= {/pgfplots/compat/empty line/1.4},% |
| 4357 |
/pgfplots/compat/empty line/1.6/.style= {/pgfplots/compat/empty line/1.4},% |
| 4358 |
/pgfplots/compat/empty line/1.7/.style= {/pgfplots/compat/empty line/1.4},% |
| 4359 |
/pgfplots/compat/empty line/1.8/.style= {/pgfplots/compat/empty line/1.4},% |
| 4360 |
/pgfplots/compat/empty line/1.9/.style= {/pgfplots/compat/empty line/1.4},% |
| 4361 |
/pgfplots/compat/empty line/1.10/.style= {/pgfplots/compat/empty line/1.4},% |
| 4362 |
/pgfplots/compat/empty line/1.11/.style= {/pgfplots/compat/empty line/1.4},% |
| 4363 |
/pgfplots/compat/empty line/1.12/.style= {/pgfplots/compat/empty line/1.4},% |
| 4364 |
/pgfplots/compat/empty line/1.13/.style= {/pgfplots/compat/empty line/1.4},% |
| 4365 |
/pgfplots/compat/empty line/1.14/.style= {/pgfplots/compat/empty line/1.4},% |
| 4366 |
/pgfplots/compat/empty line/1.15/.style= {/pgfplots/compat/empty line/1.4},% |
| 4367 |
/pgfplots/compat/empty line/1.16/.style= {/pgfplots/compat/empty line/1.4},% |
| 4368 |
/pgfplots/compat/empty line/1.17/.style= {/pgfplots/compat/empty line/1.4},% |
| 4369 |
/pgfplots/compat/empty line/1.18/.style= {/pgfplots/compat/empty line/1.4},% |
| 4370 |
/pgfplots/compat/empty line/default/.style= {/pgfplots/compat/empty line/1.4},% |
| 4371 |
% |
| 4372 |
/pgfplots/compat/path replacement/.is choice, |
| 4373 |
/pgfplots/compat/path replacement/pre 1.3/.code= {\pgfplots@path@replace@ellipsefalse}, |
| 4374 |
/pgfplots/compat/path replacement/1.3/.style= {/pgfplots/compat/path replacement/pre 1.3},% |
| 4375 |
/pgfplots/compat/path replacement/1.4/.style= {/pgfplots/compat/path replacement/pre 1.3}, |
| 4376 |
/pgfplots/compat/path replacement/1.5/.style= {/pgfplots/compat/path replacement/pre 1.3},% |
| 4377 |
/pgfplots/compat/path replacement/1.5.1/.code= {\pgfplots@path@replace@ellipsetrue},% |
| 4378 |
/pgfplots/compat/path replacement/1.6/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4379 |
/pgfplots/compat/path replacement/1.7/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4380 |
/pgfplots/compat/path replacement/1.8/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4381 |
/pgfplots/compat/path replacement/1.9/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4382 |
/pgfplots/compat/path replacement/1.10/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4383 |
/pgfplots/compat/path replacement/1.11/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4384 |
/pgfplots/compat/path replacement/1.12/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4385 |
/pgfplots/compat/path replacement/1.13/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4386 |
/pgfplots/compat/path replacement/1.14/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4387 |
/pgfplots/compat/path replacement/1.15/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4388 |
/pgfplots/compat/path replacement/1.16/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4389 |
/pgfplots/compat/path replacement/1.17/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4390 |
/pgfplots/compat/path replacement/1.18/.style= {/pgfplots/compat/path replacement/1.5.1}, |
| 4391 |
/pgfplots/compat/path replacement/default/.style= {/pgfplots/compat/path replacement/pre 1.3},% |
| 4392 |
% |
| 4393 |
/pgfplots/compat/pgfpoint substitution/.is choice, |
| 4394 |
/pgfplots/compat/pgfpoint substitution/pre 1.3/.code= {\pgfplots@substitute@pgfpointfalse}, |
| 4395 |
/pgfplots/compat/pgfpoint substitution/1.3/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3},% |
| 4396 |
/pgfplots/compat/pgfpoint substitution/1.4/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3}, |
| 4397 |
/pgfplots/compat/pgfpoint substitution/1.5/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3},% |
| 4398 |
/pgfplots/compat/pgfpoint substitution/1.5.1/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3},% |
| 4399 |
/pgfplots/compat/pgfpoint substitution/1.6/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3}, |
| 4400 |
/pgfplots/compat/pgfpoint substitution/1.7/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3}, |
| 4401 |
/pgfplots/compat/pgfpoint substitution/1.8/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3}, |
| 4402 |
/pgfplots/compat/pgfpoint substitution/1.9/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3}, |
| 4403 |
/pgfplots/compat/pgfpoint substitution/1.10/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3}, |
| 4404 |
/pgfplots/compat/pgfpoint substitution/1.11/.code= {\pgfplots@substitute@pgfpointtrue}, |
| 4405 |
/pgfplots/compat/pgfpoint substitution/1.12/.style= {/pgfplots/compat/pgfpoint substitution/1.11}, |
| 4406 |
/pgfplots/compat/pgfpoint substitution/1.13/.style= {/pgfplots/compat/pgfpoint substitution/1.11}, |
| 4407 |
/pgfplots/compat/pgfpoint substitution/1.14/.style= {/pgfplots/compat/pgfpoint substitution/1.11}, |
| 4408 |
/pgfplots/compat/pgfpoint substitution/1.15/.style= {/pgfplots/compat/pgfpoint substitution/1.11}, |
| 4409 |
/pgfplots/compat/pgfpoint substitution/1.16/.style= {/pgfplots/compat/pgfpoint substitution/1.11}, |
| 4410 |
/pgfplots/compat/pgfpoint substitution/1.17/.style= {/pgfplots/compat/pgfpoint substitution/1.11}, |
| 4411 |
/pgfplots/compat/pgfpoint substitution/1.18/.style= {/pgfplots/compat/pgfpoint substitution/1.11}, |
| 4412 |
/pgfplots/compat/pgfpoint substitution/default/.style= {/pgfplots/compat/pgfpoint substitution/pre 1.3},% |
| 4413 |
%ellipse/.is if=pgfplots@path@replace@ellipse, |
| 4414 |
% |
| 4415 |
/pgfplots/compat/labels/.is choice, |
| 4416 |
/pgfplots/compat/labels/pre 1.3/.style={% |
| 4417 |
/pgfplots/compat/axis line style pre 1.8, |
| 4418 |
/pgfplots/xlabel absolute, |
| 4419 |
/pgfplots/ylabel absolute},% |
| 4420 |
/pgfplots/compat/labels/1.3/.style={% |
| 4421 |
/pgfplots/compat/axis line style pre 1.8, |
| 4422 |
/pgfplots/xlabel near ticks, |
| 4423 |
/pgfplots/ylabel near ticks},% |
| 4424 |
/pgfplots/compat/labels/1.4/.style= {/pgfplots/compat/labels/1.3},% |
| 4425 |
/pgfplots/compat/labels/1.5/.style= {/pgfplots/compat/labels/1.3},% |
| 4426 |
/pgfplots/compat/labels/1.5.1/.style= {/pgfplots/compat/labels/1.3},% |
| 4427 |
/pgfplots/compat/labels/1.6/.style= {/pgfplots/compat/labels/1.3},% |
| 4428 |
/pgfplots/compat/labels/1.7/.style= {/pgfplots/compat/labels/1.3},% |
| 4429 |
/pgfplots/compat/labels/1.8/.style= { |
| 4430 |
/pgfplots/compat/labels/1.3, |
| 4431 |
/pgfplots/compat/axis line style post 1.8, |
| 4432 |
},% |
| 4433 |
/pgfplots/compat/labels/1.9/.style= {/pgfplots/compat/labels/1.8},% |
| 4434 |
/pgfplots/compat/labels/1.10/.style= {/pgfplots/compat/labels/1.8},% |
| 4435 |
/pgfplots/compat/labels/1.11/.style= {/pgfplots/compat/labels/1.8},% |
| 4436 |
/pgfplots/compat/labels/1.12/.style= {/pgfplots/compat/labels/1.8},% |
| 4437 |
/pgfplots/compat/labels/1.13/.style= {/pgfplots/compat/labels/1.8},% |
| 4438 |
/pgfplots/compat/labels/1.14/.style= {/pgfplots/compat/labels/1.8},% |
| 4439 |
/pgfplots/compat/labels/1.15/.style= {/pgfplots/compat/labels/1.8},% |
| 4440 |
/pgfplots/compat/labels/1.16/.style= {/pgfplots/compat/labels/1.8},% |
| 4441 |
/pgfplots/compat/labels/1.17/.style= {/pgfplots/compat/labels/1.8},% |
| 4442 |
/pgfplots/compat/labels/1.18/.style= {/pgfplots/compat/labels/1.8},% |
| 4443 |
/pgfplots/compat/labels/default/.style= {/pgfplots/compat/labels/pre 1.3},% maintain backwards compatibility |
| 4444 |
% |
| 4445 |
/pgfplots/compat/bar nodes/.is choice, |
| 4446 |
/pgfplots/compat/bar nodes/pre 1.3/.style={% |
| 4447 |
/pgfplots/stacked since 1.9/.style={ |
| 4448 |
/pgfplots/stacked ignores zero=false,% backwards compatible. |
| 4449 |
},% |
| 4450 |
/pgfplots/stacked since 1.13/.style={ |
| 4451 |
/pgfplots/stack negative=on previous,% backwards compatible. |
| 4452 |
},% |
| 4453 |
% |
| 4454 |
% empty - early versions did not know anything about them. |
| 4455 |
% But people might have arrived at suitable work-arounds; do |
| 4456 |
% not destroy their work. |
| 4457 |
/pgfplots/activate nodes near coords xbar stacked/.style={% |
| 4458 |
/pgfplots/set point meta if empty=f(x),% |
| 4459 |
},% |
| 4460 |
/pgfplots/activate nodes near coords ybar stacked/.style={% |
| 4461 |
/pgfplots/set point meta if empty=f(x),% |
| 4462 |
},% |
| 4463 |
},% |
| 4464 |
/pgfplots/compat/bar nodes/1.3/.style= {/pgfplots/compat/bar nodes/pre 1.3},% |
| 4465 |
/pgfplots/compat/bar nodes/1.4/.style= {/pgfplots/compat/bar nodes/pre 1.3},% |
| 4466 |
/pgfplots/compat/bar nodes/1.5/.style= {/pgfplots/compat/bar nodes/pre 1.3},% |
| 4467 |
/pgfplots/compat/bar nodes/1.5.1/.style= {/pgfplots/compat/bar nodes/pre 1.3},% |
| 4468 |
/pgfplots/compat/bar nodes/1.6/.style= {/pgfplots/compat/bar nodes/pre 1.3},% |
| 4469 |
/pgfplots/compat/bar nodes/1.7/.style= {/pgfplots/compat/bar nodes/pre 1.3},% |
| 4470 |
/pgfplots/compat/bar nodes/1.8/.style= {/pgfplots/compat/bar nodes/pre 1.3},% |
| 4471 |
/pgfplots/compat/bar nodes/1.9/.style= { |
| 4472 |
/pgfplots/stacked since 1.9/.style={ |
| 4473 |
/pgfplots/stacked ignores zero=true,% |
| 4474 |
}, |
| 4475 |
/pgfplots/stacked since 1.13/.style={ |
| 4476 |
/pgfplots/stack negative=on previous,% backwards compatible. |
| 4477 |
},% |
| 4478 |
/pgfplots/activate nodes near coords xbar stacked/.style={ |
| 4479 |
/pgfplots/nodes near coords xbar stacked configuration, |
| 4480 |
}, |
| 4481 |
/pgfplots/activate nodes near coords ybar stacked/.style={ |
| 4482 |
/pgfplots/nodes near coords ybar stacked configuration, |
| 4483 |
}, |
| 4484 |
},% |
| 4485 |
/pgfplots/compat/bar nodes/1.10/.style= {/pgfplots/compat/bar nodes/1.9},% |
| 4486 |
/pgfplots/compat/bar nodes/1.11/.style= {/pgfplots/compat/bar nodes/1.9},% |
| 4487 |
/pgfplots/compat/bar nodes/1.12/.style= {/pgfplots/compat/bar nodes/1.9},% |
| 4488 |
/pgfplots/compat/bar nodes/1.13/.style= { |
| 4489 |
/pgfplots/compat/bar nodes/1.9, |
| 4490 |
/pgfplots/stacked since 1.13/.style={ |
| 4491 |
/pgfplots/stack negative=separate, |
| 4492 |
},% |
| 4493 |
},% |
| 4494 |
/pgfplots/compat/bar nodes/1.14/.style= {/pgfplots/compat/bar nodes/1.13},% |
| 4495 |
/pgfplots/compat/bar nodes/1.15/.style= {/pgfplots/compat/bar nodes/1.13},% |
| 4496 |
/pgfplots/compat/bar nodes/1.16/.style= {/pgfplots/compat/bar nodes/1.13},% |
| 4497 |
/pgfplots/compat/bar nodes/1.17/.style= {/pgfplots/compat/bar nodes/1.13},% |
| 4498 |
/pgfplots/compat/bar nodes/1.18/.style= {/pgfplots/compat/bar nodes/1.13},% |
| 4499 |
/pgfplots/compat/bar nodes/default/.style= {/pgfplots/compat/bar nodes/pre 1.3},% maintain backwards compatibility |
| 4500 |
/pgfplots/compat/bar nodes/default, |
| 4501 |
% |
| 4502 |
% search for the \pgfplots@compat@scaling@coordmath -- using float |
| 4503 |
% is much more accurate. But it changes the spacing slightly. |
| 4504 |
/pgfplots/compat/scaling/.is choice, |
| 4505 |
/pgfplots/compat/scaling/pre 1.3/.code={% |
| 4506 |
\def\pgfplots@compat@scaling@zunitfix@enable{0}% |
| 4507 |
\def\pgfplots@compat@scaling@coordmath{pgfbasic}% |
| 4508 |
\def\pgfplots@compat@scaling@coordmath@final{pgfbasic}% |
| 4509 |
}, |
| 4510 |
/pgfplots/compat/scaling/1.3/.style={/pgfplots/compat/scaling/pre 1.3}, |
| 4511 |
/pgfplots/compat/scaling/1.4/.code={% |
| 4512 |
\def\pgfplots@compat@scaling@zunitfix@enable{1}% |
| 4513 |
\def\pgfplots@compat@scaling@coordmath{float}% |
| 4514 |
\def\pgfplots@compat@scaling@coordmath@final{pgfbasic}% |
| 4515 |
}, |
| 4516 |
/pgfplots/compat/scaling/1.5/.style={/pgfplots/compat/scaling/1.4}, |
| 4517 |
/pgfplots/compat/scaling/1.5.1/.style={/pgfplots/compat/scaling/1.4}, |
| 4518 |
/pgfplots/compat/scaling/1.6/.code={% |
| 4519 |
\def\pgfplots@compat@scaling@zunitfix@enable{1}% |
| 4520 |
\def\pgfplots@compat@scaling@coordmath{float}% |
| 4521 |
\def\pgfplots@compat@scaling@coordmath@final{float}% |
| 4522 |
}, |
| 4523 |
/pgfplots/compat/scaling/1.7/.style={/pgfplots/compat/scaling/1.6}, |
| 4524 |
/pgfplots/compat/scaling/1.8/.style={/pgfplots/compat/scaling/1.6}, |
| 4525 |
/pgfplots/compat/scaling/1.9/.style={/pgfplots/compat/scaling/1.6}, |
| 4526 |
/pgfplots/compat/scaling/1.10/.style={/pgfplots/compat/scaling/1.6}, |
| 4527 |
/pgfplots/compat/scaling/1.11/.style={/pgfplots/compat/scaling/1.6}, |
| 4528 |
/pgfplots/compat/scaling/1.12/.style={/pgfplots/compat/scaling/1.6}, |
| 4529 |
/pgfplots/compat/scaling/1.13/.style={/pgfplots/compat/scaling/1.6}, |
| 4530 |
/pgfplots/compat/scaling/1.14/.style={/pgfplots/compat/scaling/1.6}, |
| 4531 |
/pgfplots/compat/scaling/1.15/.style={/pgfplots/compat/scaling/1.6}, |
| 4532 |
/pgfplots/compat/scaling/1.16/.style={/pgfplots/compat/scaling/1.6}, |
| 4533 |
/pgfplots/compat/scaling/1.17/.style={/pgfplots/compat/scaling/1.6}, |
| 4534 |
/pgfplots/compat/scaling/1.18/.style={/pgfplots/compat/scaling/1.6}, |
| 4535 |
/pgfplots/compat/scaling/default/.style={/pgfplots/compat/scaling/1.4}, |
| 4536 |
% |
| 4537 |
/pgfplots/compat/scale mode/.is choice, |
| 4538 |
/pgfplots/compat/scale mode/pre 1.3/.code=\def\pgfplots@compat@scale@mode@compatible@mode{1},% |
| 4539 |
/pgfplots/compat/scale mode/1.3/.style= {/pgfplots/compat/scale mode/pre 1.3}, |
| 4540 |
/pgfplots/compat/scale mode/1.4/.style= {/pgfplots/compat/scale mode/pre 1.3}, |
| 4541 |
/pgfplots/compat/scale mode/1.5/.style= {/pgfplots/compat/scale mode/pre 1.3}, |
| 4542 |
/pgfplots/compat/scale mode/1.5.1/.style= {/pgfplots/compat/scale mode/pre 1.3}, |
| 4543 |
/pgfplots/compat/scale mode/1.6/.code=\def\pgfplots@compat@scale@mode@compatible@mode{0}, |
| 4544 |
/pgfplots/compat/scale mode/1.7/.style={/pgfplots/compat/scale mode/1.6}, |
| 4545 |
/pgfplots/compat/scale mode/1.8/.style={/pgfplots/compat/scale mode/1.6}, |
| 4546 |
/pgfplots/compat/scale mode/1.9/.style={/pgfplots/compat/scale mode/1.6}, |
| 4547 |
/pgfplots/compat/scale mode/1.10/.style={/pgfplots/compat/scale mode/1.6}, |
| 4548 |
/pgfplots/compat/scale mode/1.11/.style={/pgfplots/compat/scale mode/1.6}, |
| 4549 |
/pgfplots/compat/scale mode/1.12/.style={/pgfplots/compat/scale mode/1.6}, |
| 4550 |
/pgfplots/compat/scale mode/1.13/.style={/pgfplots/compat/scale mode/1.6}, |
| 4551 |
/pgfplots/compat/scale mode/1.14/.style={/pgfplots/compat/scale mode/1.6}, |
| 4552 |
/pgfplots/compat/scale mode/1.15/.style={/pgfplots/compat/scale mode/1.6}, |
| 4553 |
/pgfplots/compat/scale mode/1.16/.style={/pgfplots/compat/scale mode/1.6}, |
| 4554 |
/pgfplots/compat/scale mode/1.17/.style={/pgfplots/compat/scale mode/1.6}, |
| 4555 |
/pgfplots/compat/scale mode/1.18/.style={/pgfplots/compat/scale mode/1.6}, |
| 4556 |
/pgfplots/compat/scale mode/default/.style={/pgfplots/compat/scale mode/1.5}, |
| 4557 |
% |
| 4558 |
% |
| 4559 |
/pgfplots/compat/plot3graphics/.is choice, |
| 4560 |
/pgfplots/compat/plot3graphics/pre 1.3/.style= {/pgfplots/compat/plot3graphics/1.5}, |
| 4561 |
/pgfplots/compat/plot3graphics/1.3/.style= {/pgfplots/compat/plot3graphics/1.5}, |
| 4562 |
/pgfplots/compat/plot3graphics/1.4/.style= {/pgfplots/compat/plot3graphics/1.5},% |
| 4563 |
/pgfplots/compat/plot3graphics/1.5/.code= {\def\b@pgfplots@compat@plot@graphics@threedim{1}},% |
| 4564 |
/pgfplots/compat/plot3graphics/1.5.1/.style= {/pgfplots/compat/plot3graphics/1.5},% |
| 4565 |
/pgfplots/compat/plot3graphics/1.6/.code= {\def\b@pgfplots@compat@plot@graphics@threedim{2}},% |
| 4566 |
/pgfplots/compat/plot3graphics/1.7/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4567 |
/pgfplots/compat/plot3graphics/1.8/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4568 |
/pgfplots/compat/plot3graphics/1.9/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4569 |
/pgfplots/compat/plot3graphics/1.10/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4570 |
/pgfplots/compat/plot3graphics/1.11/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4571 |
/pgfplots/compat/plot3graphics/1.12/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4572 |
/pgfplots/compat/plot3graphics/1.13/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4573 |
/pgfplots/compat/plot3graphics/1.14/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4574 |
/pgfplots/compat/plot3graphics/1.15/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4575 |
/pgfplots/compat/plot3graphics/1.16/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4576 |
/pgfplots/compat/plot3graphics/1.17/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4577 |
/pgfplots/compat/plot3graphics/1.18/.style= {/pgfplots/compat/plot3graphics/1.6},% |
| 4578 |
/pgfplots/compat/plot3graphics/default/.style= {/pgfplots/compat/plot3graphics/1.5},% |
| 4579 |
% |
| 4580 |
% ATTENTION: there is a compatibility issue which slipped through |
| 4581 |
% the quality assurance: if tick labels where generated in scientific notation |
| 4582 |
% (NOT log tick labels; these are special), and the numbers were |
| 4583 |
% negative, the spacing changed as follows: |
| 4584 |
% pre 1.3: - 1*10^5 (binary minus sign) |
| 4585 |
% 1.3: - 1*10^5 (binary minus sign) |
| 4586 |
% 1.4: - 1*10^5 (binary minus sign) |
| 4587 |
% 1.5: -1*10^5 (unary minus sign - correct!) |
| 4588 |
% 1.6: -1*10^5 (unary minus sign - correct!) |
| 4589 |
% This is (was) a bug in the PGF number printer which has been |
| 4590 |
% fixed in the meantime; it occurred only if |
| 4591 |
% $\pgfmathprintnumber{-1e5}$ was used (i.e. with the '$' signs). |
| 4592 |
% Unfortunately, version 1.5 has been released without realizing |
| 4593 |
% the changes; I detected them right before the release of 1.6. |
| 4594 |
% Consequently, I cannot introduce compatibility switches without |
| 4595 |
% losing compatibility. |
| 4596 |
% |
| 4597 |
% I chose to keep the correct unary minus sign. If you ever want |
| 4598 |
% to revert to the old version in order to keep spacing intact, use |
| 4599 |
% |
| 4600 |
% \pgfkeys{/pgf/compat/number printer=2.10} |
| 4601 |
% |
| 4602 |
% Risk: the size of such tick labels changed and the |
| 4603 |
% figure has been moved somewhat. |
| 4604 |
% |
| 4605 |
% Sorry. |
| 4606 |
% |
| 4607 |
/pgfplots/compat/bar width by units/.is choice, |
| 4608 |
/pgfplots/compat/bar width by units/pre 1.3/.code= {\def\b@pgfplots@compat@bar@width@units{1}},% |
| 4609 |
/pgfplots/compat/bar width by units/1.3/.style= {/pgfplots/compat/bar width by units/pre 1.3}, |
| 4610 |
/pgfplots/compat/bar width by units/1.4/.style= {/pgfplots/compat/bar width by units/pre 1.3},% |
| 4611 |
/pgfplots/compat/bar width by units/1.5/.style= {/pgfplots/compat/bar width by units/pre 1.3},% |
| 4612 |
/pgfplots/compat/bar width by units/1.5.1/.style= {/pgfplots/compat/bar width by units/pre 1.3},% |
| 4613 |
/pgfplots/compat/bar width by units/1.6/.style= {/pgfplots/compat/bar width by units/pre 1.3},% |
| 4614 |
/pgfplots/compat/bar width by units/1.7/.code= {\def\b@pgfplots@compat@bar@width@units{0}},% |
| 4615 |
/pgfplots/compat/bar width by units/1.8/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4616 |
/pgfplots/compat/bar width by units/1.9/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4617 |
/pgfplots/compat/bar width by units/1.10/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4618 |
/pgfplots/compat/bar width by units/1.11/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4619 |
/pgfplots/compat/bar width by units/1.12/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4620 |
/pgfplots/compat/bar width by units/1.13/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4621 |
/pgfplots/compat/bar width by units/1.14/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4622 |
/pgfplots/compat/bar width by units/1.15/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4623 |
/pgfplots/compat/bar width by units/1.16/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4624 |
/pgfplots/compat/bar width by units/1.17/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4625 |
/pgfplots/compat/bar width by units/1.18/.style= {/pgfplots/compat/bar width by units/1.7}, |
| 4626 |
/pgfplots/compat/bar width by units/default/.style={/pgfplots/compat/bar width by units/pre 1.3}, |
| 4627 |
% |
| 4628 |
/pgfplots/compat/BB/.is choice, |
| 4629 |
/pgfplots/compat/BB/pre 1.3/.style={/pgfplots/clip bounding box=default tikz},% |
| 4630 |
/pgfplots/compat/BB/1.3/.style= {/pgfplots/compat/BB/pre 1.3}, |
| 4631 |
/pgfplots/compat/BB/1.4/.style= {/pgfplots/compat/BB/pre 1.3},% |
| 4632 |
/pgfplots/compat/BB/1.5/.style= {/pgfplots/compat/BB/pre 1.3},% |
| 4633 |
/pgfplots/compat/BB/1.5.1/.style= {/pgfplots/compat/BB/pre 1.3},% |
| 4634 |
/pgfplots/compat/BB/1.6/.style= {/pgfplots/compat/BB/pre 1.3},% |
| 4635 |
/pgfplots/compat/BB/1.7/.style= {/pgfplots/compat/BB/pre 1.3},% |
| 4636 |
/pgfplots/compat/BB/1.8/.style= {/pgfplots/clip bounding box=upper bound},% |
| 4637 |
/pgfplots/compat/BB/1.9/.style= {/pgfplots/compat/BB/1.8},% |
| 4638 |
/pgfplots/compat/BB/1.10/.style= {/pgfplots/compat/BB/1.8},% |
| 4639 |
/pgfplots/compat/BB/1.11/.style= {/pgfplots/compat/BB/1.8},% |
| 4640 |
/pgfplots/compat/BB/1.12/.style= {/pgfplots/compat/BB/1.8},% |
| 4641 |
/pgfplots/compat/BB/1.13/.style= {/pgfplots/compat/BB/1.8},% |
| 4642 |
/pgfplots/compat/BB/1.14/.style= {/pgfplots/compat/BB/1.8},% |
| 4643 |
/pgfplots/compat/BB/1.15/.style= {/pgfplots/compat/BB/1.8},% |
| 4644 |
/pgfplots/compat/BB/1.16/.style= {/pgfplots/compat/BB/1.8},% |
| 4645 |
/pgfplots/compat/BB/1.17/.style= {/pgfplots/compat/BB/1.8},% |
| 4646 |
/pgfplots/compat/BB/1.18/.style= {/pgfplots/compat/BB/1.8},% |
| 4647 |
/pgfplots/compat/BB/default/.style={/pgfplots/compat/BB/pre 1.3}, |
| 4648 |
% |
| 4649 |
/pgfplots/compat/general/.is choice, |
| 4650 |
/pgfplots/compat/general/pre 1.3/.style={ |
| 4651 |
/pgfplots/log origin=infty, |
| 4652 |
/pgfplots/enable tick line clipping=true, |
| 4653 |
/pgfplots/correct shader flat=false, |
| 4654 |
/pgfplots/correct sampling=false, |
| 4655 |
/pgfplots/lua backend=false, |
| 4656 |
/pgfplots/colormap uniform=always, |
| 4657 |
/pgfplots/compat/library hook={statistics}{/pgfplots/boxplot/estimator=legacy,/pgfplots/boxplot/ensure mark=false}, |
| 4658 |
/pgfplots/colorbar pgfshading, |
| 4659 |
/pgfplots/colorbar=false, |
| 4660 |
/pgfplots/3d log sampling=false, |
| 4661 |
/pgfplots/clip limits compat=true, |
| 4662 |
/pgfplots/table/percent is letter=false, |
| 4663 |
},% |
| 4664 |
/pgfplots/compat/general/1.3/.style= {/pgfplots/compat/general/pre 1.3}, |
| 4665 |
/pgfplots/compat/general/1.4/.style= {/pgfplots/compat/general/pre 1.3},% |
| 4666 |
/pgfplots/compat/general/1.5/.style= { |
| 4667 |
/pgfplots/compat/general/pre 1.3, |
| 4668 |
/pgfplots/log origin=0, |
| 4669 |
/pgfplots/enable tick line clipping=true, |
| 4670 |
},% |
| 4671 |
/pgfplots/compat/general/1.5.1/.style= {/pgfplots/compat/general/1.5},% |
| 4672 |
/pgfplots/compat/general/1.6/.style= {/pgfplots/compat/general/1.5},% |
| 4673 |
/pgfplots/compat/general/1.7/.style= {/pgfplots/compat/general/1.5},% |
| 4674 |
/pgfplots/compat/general/1.8/.style= {/pgfplots/compat/general/1.5},% |
| 4675 |
/pgfplots/compat/general/1.9/.style= {/pgfplots/compat/general/1.5},% |
| 4676 |
/pgfplots/compat/general/1.10/.style= {/pgfplots/compat/general/1.5},% |
| 4677 |
/pgfplots/compat/general/1.11/.style= { |
| 4678 |
/pgfplots/compat/general/1.5, |
| 4679 |
/pgfplots/enable tick line clipping=false, |
| 4680 |
},% |
| 4681 |
/pgfplots/compat/general/1.12/.style= { |
| 4682 |
/pgfplots/compat/general/1.11, |
| 4683 |
/pgfplots/lua backend, |
| 4684 |
/pgfplots/compat/library hook={statistics}{/pgfplots/boxplot/estimator=Excel,/pgfplots/boxplot/ensure mark=true}, |
| 4685 |
},% |
| 4686 |
/pgfplots/compat/general/1.13/.style= {% |
| 4687 |
/pgfplots/compat/general/1.12, |
| 4688 |
/pgfplots/correct shader flat=true, |
| 4689 |
/pgfplots/correct sampling=true, |
| 4690 |
/pgfplots/colormap uniform=always, |
| 4691 |
},% |
| 4692 |
/pgfplots/compat/general/1.14/.style= {% |
| 4693 |
/pgfplots/compat/general/1.13, |
| 4694 |
/pgfplots/colormap uniform=if requested, |
| 4695 |
% no -- do _not_ activate that here: it is correct and |
| 4696 |
% simplifies the code, but many viewers (pdf.js, evince, |
| 4697 |
% sumatrapdf) are better off with pgfshadings: |
| 4698 |
%/pgfplots/colorbar sampled={surf,shader=interp,samples=2}, |
| 4699 |
%/pgfplots/colorbar=false, |
| 4700 |
},% |
| 4701 |
/pgfplots/compat/general/1.15/.style= {% |
| 4702 |
/pgfplots/compat/general/1.14, |
| 4703 |
/pgfplots/3d log sampling=true, % FIXME finish this feature: see unittest_log_sampling_3d |
| 4704 |
/pgfplots/clip limits compat=false, |
| 4705 |
},% |
| 4706 |
/pgfplots/compat/general/1.16/.style= {/pgfplots/compat/general/1.15},% |
| 4707 |
/pgfplots/compat/general/1.17/.style= { |
| 4708 |
/pgfplots/compat/general/1.15, |
| 4709 |
%/pgfplots/table/percent is letter=true, |
| 4710 |
},% |
| 4711 |
/pgfplots/compat/general/1.18/.style= {/pgfplots/compat/general/1.17},% |
| 4712 |
/pgfplots/compat/general/default/.style={/pgfplots/compat/general/1.11}, |
| 4713 |
% |
| 4714 |
/pgfplots/enable tick line clipping/.is if=pgfplots@enable@tick@line@clipping, |
| 4715 |
/pgfplots/enable tick line clipping/.default=true, |
| 4716 |
% |
| 4717 |
/pgfplots/default typeset ticklabel/.style={ |
| 4718 |
/pgfplots/typeset ticklabel/.code={##1}, |
| 4719 |
}, |
| 4720 |
/pgfplots/default typeset ticklabel, |
| 4721 |
/pgfplots/typeset ticklabels with strut/.style={ |
| 4722 |
/pgfplots/typeset ticklabel/.code={\strut ##1}, |
| 4723 |
}, |
| 4724 |
% |
| 4725 |
% |
| 4726 |
/pgfplots/compat/show suggested version/.is if=pgfplots@show@suggested@version, |
| 4727 |
/pgfplots/compat/show suggested version=true, |
| 4728 |
/pgfplots/compat/current/.initial=, |
| 4729 |
/pgfplots/compat/mostrecent/.initial=1.18, |
| 4730 |
/utils/exec={% |
| 4731 |
\pgfplotsutilforeachcommasep{% |
| 4732 |
/pgfplots/compat/current,% |
| 4733 |
/pgfplots/compat/anchors,% |
| 4734 |
/pgfplots/compat/labels,% |
| 4735 |
/pgfplots/compat/empty line,% |
| 4736 |
/pgfplots/compat/scaling,% |
| 4737 |
/pgfplots/compat/scale mode,% |
| 4738 |
/pgfplots/compat/general,% |
| 4739 |
/pgfplots/compat/BB,% |
| 4740 |
/pgfplots/compat/path replacement,% |
| 4741 |
/pgfplots/compat/plot3graphics,% |
| 4742 |
/pgfplots/compat/bar width by units,% |
| 4743 |
/pgfplots/compat/bar nodes,% |
| 4744 |
/pgfplots/compat/pgfpoint substitution,% |
| 4745 |
}\as\pgfplots@glob@TMPa{% |
| 4746 |
\ifx\pgfplots@glob@TMPa\pgfutil@empty |
| 4747 |
\else |
| 4748 |
\edef\pgfplots@glob@TMPb{% |
| 4749 |
\noexpand\pgfkeysdef{\pgfplots@glob@TMPa/newest}{% |
| 4750 |
\noexpand\pgfkeysalso{% |
| 4751 |
\pgfplots@glob@TMPa/\pgfkeysvalueof{/pgfplots/compat/mostrecent}% |
| 4752 |
}% |
| 4753 |
}% |
| 4754 |
}% |
| 4755 |
\pgfplots@glob@TMPb |
| 4756 |
\fi |
| 4757 |
}% |
| 4758 |
}, |
| 4759 |
/pgfplots/compat/.code={% |
| 4760 |
\def\pgfplots@glob@TMPa{newest}% |
| 4761 |
\edef\pgfplots@glob@TMPb{#1}% |
| 4762 |
\ifx\pgfplots@glob@TMPb\pgfplots@glob@TMPa |
| 4763 |
\edef\pgfplots@glob@TMPa{\noexpand\pgfkeysalso{/pgfplots/compat=\pgfkeysvalueof{/pgfplots/compat/mostrecent}}}% |
| 4764 |
\pgfplots@glob@TMPa |
| 4765 |
\else |
| 4766 |
\pgfkeysifdefined{/pgfplots/compat/general/#1/.@cmd}{% |
| 4767 |
\pgfkeysalso{% |
| 4768 |
% ATTENTION: *every* /pgfplots/compat/ setting needs to accept |
| 4769 |
% the same choices due to this construction: |
| 4770 |
/pgfplots/compat/current=#1,% remember the value |
| 4771 |
/pgfplots/compat/anchors=#1,% |
| 4772 |
/pgfplots/compat/labels=#1,% |
| 4773 |
/pgfplots/compat/empty line=#1,% |
| 4774 |
/pgfplots/compat/scaling=#1,% |
| 4775 |
/pgfplots/compat/scale mode=#1,% |
| 4776 |
/pgfplots/compat/general=#1,% |
| 4777 |
/pgfplots/compat/BB=#1,% |
| 4778 |
/pgfplots/compat/path replacement=#1,% |
| 4779 |
/pgfplots/compat/plot3graphics=#1,% |
| 4780 |
/pgfplots/compat/bar width by units=#1,% |
| 4781 |
/pgfplots/compat/bar nodes=#1,% |
| 4782 |
/pgfplots/compat/pgfpoint substitution=#1,% |
| 4783 |
}% |
| 4784 |
}{% |
| 4785 |
\pgfplots@error{Sorry, 'compat=#1' is unknown in this context. Please use at most 'compat=\pgfkeysvalueof{/pgfplots/compat/mostrecent}'}% |
| 4786 |
}% |
| 4787 |
\fi |
| 4788 |
},% |
| 4789 |
/pgfplots/compat/.default=pre 1.3,% this is used if you type '\pgfplotsset{compat}' without value |
| 4790 |
/pgfplots/compat=default,% this is the initial config. |
| 4791 |
% |
| 4792 |
/pgfplots/show outer normals/.style={% |
| 4793 |
extra description/.append code={ |
| 4794 |
\def\length{15} |
| 4795 |
\def\pgfplots@@draw@normal####1####2{% |
| 4796 |
\pgfpathmoveto{####1} |
| 4797 |
\pgfpathlineto{% |
| 4798 |
\pgfpointadd |
| 4799 |
{####1} |
| 4800 |
{\pgfqpointscale{\length}{\pgfplotspointouternormalvectorofticklabelaxis{####2}}}% |
| 4801 |
}% |
| 4802 |
}% |
| 4803 |
\draw[->,blue] \pgfextra{\pgfplots@@draw@normal{#1}{x}}; |
| 4804 |
\draw[->,blue] \pgfextra{\pgfplots@@draw@normal{\pgfplotsqpointoutsideofticklabelaxisrel{x}{1}{0}}{x}}; |
| 4805 |
\draw[->,red] \pgfextra{\pgfplots@@draw@normal{#1}{y}}; |
| 4806 |
\draw[->,red] \pgfextra{\pgfplots@@draw@normal{\pgfplotsqpointoutsideofticklabelaxisrel{y}{1}{0}}{y}}; |
| 4807 |
\ifpgfplots@threedim |
| 4808 |
\draw[->,black] \pgfextra{\pgfplots@@draw@normal{#1}{z}}; |
| 4809 |
\draw[->,black] \pgfextra{\pgfplots@@draw@normal{\pgfplotsqpointoutsideofticklabelaxisrel{z}{1}{0}}{z}}; |
| 4810 |
\fi |
| 4811 |
}, |
| 4812 |
}, |
| 4813 |
/pgfplots/show outer normals/.default={% |
| 4814 |
\ifpgfplots@threedim |
| 4815 |
\pgfplotspointrelaxisxy{-0.03}{-0.03}% |
| 4816 |
\else |
| 4817 |
\pgfplotspointrelaxisxyz{-0.03}{-0.03}{-0.03}% |
| 4818 |
\fi |
| 4819 |
}, |
| 4820 |
/pgfplots/profiler/.code={% |
| 4821 |
\pgfutil@ifundefined{pgfprofilenew}{% |
| 4822 |
\usepgflibrary{profiler}% |
| 4823 |
}{}% |
| 4824 |
\pgfprofilenewforenvironment[all axes]{pgfplots@environment@opt}% |
| 4825 |
\pgfprofilesetrel{all axes}% |
| 4826 |
\pgfprofilenewforcommand[pgfkeys variants]{\pgfkeys}{1}% |
| 4827 |
\pgfprofilenewforcommand[pgfkeys variants]{\pgfqkeys}{2}% |
| 4828 |
\pgfprofilenewforcommand[pgfkeys variants]{\pgfkeysalso}{1}% |
| 4829 |
\pgfprofilenewforcommand[pgfkeys variants]{\pgfkeysfiltered}{1}% |
| 4830 |
\pgfprofilenewforcommand[pgfkeys variants]{\pgfqkeysfiltered}{2}% |
| 4831 |
\pgfprofilenewforcommand[pgfkeys variants]{\pgfkeysalsofiltered}{1}% |
| 4832 |
\pgfprofilenewforcommand[pgfplotsapplistXX handling]{\pgfplotsapplistXXpushback}{1}% |
| 4833 |
\pgfprofilenewforcommand[pgfplotsapplistXX handling]{\pgfplotsapplistXXflushbuffers}{0}% |
| 4834 |
\pgfprofilenewforcommandpattern |
| 4835 |
[pgfplots(app|prepend)listX handling]{\pgfplotsapplistXpushback}{##1\to##2}{{##1}\to{##2}}% |
| 4836 |
\pgfprofilenewforcommand |
| 4837 |
[pgfplots(app|prepend)listX handling]{\pgfplotsapplistXflushbuffers}{1}% |
| 4838 |
\pgfprofilenewforcommandpattern |
| 4839 |
[pgfplots(app|prepend)listX handling]{\pgfplotsprependlistXpushfront}{##1\to##2}{{##1}\to{##2}}% |
| 4840 |
\pgfprofilenewforcommand |
| 4841 |
[pgfplots(app|prepend)listX handling]{\pgfplotsprependlistXflushbuffers}{1}% |
| 4842 |
\pgfprofilenewforcommand |
| 4843 |
[pgfsys buffer]{\pgfsyssoftpath@addtocurrentpath}{1}% |
| 4844 |
\pgfprofilenewforcommand |
| 4845 |
[pgfsys buffer]{\pgfsyssoftpath@flushcurrentpath}{0}% |
| 4846 |
\pgfprofilenewforcommand[math parser (basic)]{\pgfmathparse}{1}% |
| 4847 |
\pgfprofilenewforcommand[math parser (fpu)]{\pgfmathfloatparse@}{1}% |
| 4848 |
\pgfprofilenewforcommand[math: division (basic)]{\pgfmathdivide@}{2}% |
| 4849 |
\pgfprofilenewforcommand[math: division (basic)]{\pgfmath@basic@divide@}{2}% |
| 4850 |
\pgfprofilenewforcommand[near ticklabel anchors]{\pgfplots@borderanchor@for@axis}{3}% |
| 4851 |
\pgfprofilenewforcommand[ticklabel cs]{\pgfplotspointticklabelcs}{2}% |
| 4852 |
% \pgfprofilenewforcommand[binary conversion]{\pgfplotsbinaryencodeunsigned}{1}% |
| 4853 |
% \pgfprofilenewforcommand[binary conversion]{\pgfplotsbinaryencodesignedmaplinearly}{1}% |
| 4854 |
% \pgfprofilenewforcommand[binary conversion]{\pgfplotsbinaryencodedimenmaplinearly}{1}% |
| 4855 |
},% |
| 4856 |
} |
| 4857 |
|
| 4858 |
\def\pgfplots@glob@TMPa#1{% |
| 4859 |
\pgfkeys{% |
| 4860 |
/pgfplots/#1tick pos/lower/.style={/pgfplots/#1tick pos=left}, |
| 4861 |
/pgfplots/#1tick pos/bottom/.style={/pgfplots/#1tick pos=left}, |
| 4862 |
/pgfplots/#1tick pos/upper/.style={/pgfplots/#1tick pos=right}, |
| 4863 |
/pgfplots/#1tick pos/top/.style={/pgfplots/#1tick pos=right}, |
| 4864 |
}% |
| 4865 |
}% |
| 4866 |
\pgfplots@glob@TMPa x% |
| 4867 |
\pgfplots@glob@TMPa y% |
| 4868 |
\pgfplots@glob@TMPa z% |
| 4869 |
|
| 4870 |
\def\pgfplots@ticklabel@typeset@arg#1{\pgfkeysvalueof{/pgfplots/typeset ticklabel/.@cmd}{#1}\pgfeov}% |
| 4871 |
|
| 4872 |
% backwards compatibility: |
| 4873 |
\def\pgfplots@tickwidth{\pgfkeysvalueof{/pgfplots/major tick length}}% |
| 4874 |
\def\pgfplots@subtickwidth{\pgfkeysvalueof{/pgfplots/minor tick length}}% |
| 4875 |
|
| 4876 |
\pgfkeysdef{/pgfplots/nodes near coords/@@eval alignment}{% |
| 4877 |
% determine default alignment: |
| 4878 |
\pgfkeysgetvalue{/pgfplots/nodes near coords align}{\pgfplots@nodes@near@coords@align}% |
| 4879 |
\edef\pgfplots@nodes@near@coords@align{\pgfplots@nodes@near@coords@align}% |
| 4880 |
\def\pgfplots@loc@TMPa{auto}% |
| 4881 |
\ifx\pgfplots@nodes@near@coords@align\pgfplots@loc@TMPa |
| 4882 |
\def\pgfplots@loc@TMPa{x}% |
| 4883 |
\ifx\pgfplotspointmetainputhandler\pgfplots@loc@TMPa% |
| 4884 |
% point meta=x: |
| 4885 |
\def\pgfplots@nodes@near@coords@align{horizontal}% |
| 4886 |
\else |
| 4887 |
\def\pgfplots@nodes@near@coords@align{vertical}% |
| 4888 |
\fi |
| 4889 |
\fi |
| 4890 |
% check for sign-dependand alignment options: |
| 4891 |
\def\pgfplots@loc@TMPa{horizontal}% |
| 4892 |
\ifx\pgfplots@nodes@near@coords@align\pgfplots@loc@TMPa |
| 4893 |
\if1\csname pgfpmeta@\pgfplotspointmetainputhandler @issymbolic\endcsname% |
| 4894 |
\def\pgfplots@nodes@near@coords@align{above}% |
| 4895 |
\else |
| 4896 |
\pgfplotscoordmath{meta}{if is}{\pgfplotspointmeta}{-}{% |
| 4897 |
% \pgfplotspointmeta < 0 |
| 4898 |
\def\pgfplots@nodes@near@coords@align{left}% |
| 4899 |
}{% |
| 4900 |
% \pgfplotspointmeta >= 0 |
| 4901 |
\def\pgfplots@nodes@near@coords@align{right}% |
| 4902 |
}% |
| 4903 |
\fi |
| 4904 |
\else |
| 4905 |
\def\pgfplots@loc@TMPa{vertical}% |
| 4906 |
\ifx\pgfplots@nodes@near@coords@align\pgfplots@loc@TMPa |
| 4907 |
\if1\csname pgfpmeta@\pgfplotspointmetainputhandler @issymbolic\endcsname% |
| 4908 |
\def\pgfplots@nodes@near@coords@align{above}% |
| 4909 |
\else |
| 4910 |
\pgfplotscoordmath{meta}{if is}{\pgfplotspointmeta}{-}{% |
| 4911 |
% \pgfplotspointmeta < 0 |
| 4912 |
\def\pgfplots@nodes@near@coords@align{below}% |
| 4913 |
}{% |
| 4914 |
% \pgfplotspointmeta >= 0 |
| 4915 |
\def\pgfplots@nodes@near@coords@align{above}% |
| 4916 |
}% |
| 4917 |
\fi |
| 4918 |
\else |
| 4919 |
\pgfutil@ifundefined{pgfplots@nodesnearcoordsalign@isanchor@\pgfplots@nodes@near@coords@align} |
| 4920 |
{}% |
| 4921 |
{% |
| 4922 |
\t@pgfplots@toka=\expandafter{\pgfplots@nodes@near@coords@align}% |
| 4923 |
\edef\pgfplots@nodes@near@coords@align{anchor=\the\t@pgfplots@toka}% |
| 4924 |
}% |
| 4925 |
\fi |
| 4926 |
\fi |
| 4927 |
\expandafter\pgfkeysalso\expandafter{\pgfplots@nodes@near@coords@align}% |
| 4928 |
}% |
| 4929 |
|
| 4930 |
\begingroup |
| 4931 |
\pgfkeys{/pgfplots/colorbar pgfshading} |
| 4932 |
\pgfkeysgetvalue{/pgfplots/colorbar/draw/.@cmd}\pgfplots@loc@TMPa |
| 4933 |
\global\let\pgfplots@colorbar@draw@legacyimpl=\pgfplots@loc@TMPa |
| 4934 |
\endgroup |
| 4935 |
|
| 4936 |
% call |
| 4937 |
% \pgfkeyslet{.../.@cmd}\pgfplots@cant@set@in@this@context |
| 4938 |
% to replace a key with a generic error message. |
| 4939 |
\def\pgfplots@cant@set@in@this@context#1\pgfeov{\pgfplots@cant@set@in@this@context@} |
| 4940 |
\def\pgfplots@cant@set@in@this@context@{% |
| 4941 |
\pgfplotsthrow{unsupported operation}{Sorry, you can't change `\pgfkeyscurrentkeyRAW' in this context. Maybe you need to provide it as \string\begin{axis}[\pgfkeyscurrentkeyRAW=...] ?}\pgfeov |
| 4942 |
} |
| 4943 |
|
| 4944 |
|
| 4945 |
{ |
| 4946 |
\pgfkeysdef{/empty}{}% |
| 4947 |
\pgfkeysgetvalue{/empty/.@cmd}\pgfplots@loc@TMPa |
| 4948 |
\global\let\pgfplots@empty@command@key=\pgfplots@loc@TMPa |
| 4949 |
% |
| 4950 |
\pgfkeys{/empty/.style={}}% |
| 4951 |
\pgfkeysgetvalue{/empty/.@cmd}\pgfplots@loc@TMPa |
| 4952 |
\global\let\pgfplots@empty@style@key=\pgfplots@loc@TMPa |
| 4953 |
} |
| 4954 |
|
| 4955 |
% Only define if it is undefined. It may be possible that related libraries |
| 4956 |
% habe been loaded before pgfplots. |
| 4957 |
\pgfkeysifdefined{/pgfplots/@backgroundpath@hook/.@cmd}{\relax}{% |
| 4958 |
\pgfkeysdef{/pgfplots/@backgroundpath@hook}{}% |
| 4959 |
} |
| 4960 |
|
| 4961 |
\def\pgfplots@cmdkey@alias#1=#2;{% |
| 4962 |
\pgfkeysgetvalue{/pgfplots/#2/.@cmd}\pgfplots@glob@TMPa |
| 4963 |
\pgfkeyslet{/pgfplots/#1/.@cmd}\pgfplots@glob@TMPa |
| 4964 |
}% |
| 4965 |
\pgfplots@cmdkey@alias xlabel style=x label style; |
| 4966 |
\pgfplots@cmdkey@alias ylabel style=y label style; |
| 4967 |
\pgfplots@cmdkey@alias zlabel style=z label style; |
| 4968 |
\pgfplots@cmdkey@alias xticklabel style=x tick label style; |
| 4969 |
\pgfplots@cmdkey@alias yticklabel style=y tick label style; |
| 4970 |
\pgfplots@cmdkey@alias zticklabel style=z tick label style; |
| 4971 |
\pgfplots@cmdkey@alias ticklabel style=tick label style; |
| 4972 |
%\pgfplots@cmdkey@alias xtick scale label style=x tick scale label style; |
| 4973 |
%\pgfplots@cmdkey@alias ytick scale label style=y tick scale label style; |
| 4974 |
\pgfplots@cmdkey@alias xtick style=x tick style; |
| 4975 |
\pgfplots@cmdkey@alias ytick style=y tick style; |
| 4976 |
\pgfplots@cmdkey@alias ztick style=z tick style; |
| 4977 |
|
| 4978 |
|
| 4979 |
\def\pgfplots@scope@with@coord@styles[#1]{% |
| 4980 |
\if1\b@has@pgfplots@colordinate@style |
| 4981 |
\def\pgfplots@loc@TMPa{\scope[#1}% |
| 4982 |
\t@pgfplots@toka=\expandafter{\pgfplots@loc@TMPa}% |
| 4983 |
\t@pgfplots@tokb=\expandafter{\pgfplots@current@point@coordinatestyle}% |
| 4984 |
\edef\pgfplots@loc@TMPa{\the\t@pgfplots@toka,\the\t@pgfplots@tokb]}% |
| 4985 |
\else |
| 4986 |
\def\pgfplots@loc@TMPa{\scope[#1]}% |
| 4987 |
\fi |
| 4988 |
\pgfplots@loc@TMPa |
| 4989 |
}% |
| 4990 |
|
| 4991 |
% A backwards compatibility method which works as follows: |
| 4992 |
% if any user specified arguments exist for the 'domain' or 'samples |
| 4993 |
% at' or 'samples' keys, nothing is done. |
| 4994 |
% |
| 4995 |
% It these keys are empty, we switch to backwards compatibility mode |
| 4996 |
% and acquire the key settings from tikz. |
| 4997 |
% |
| 4998 |
% This allows something like |
| 4999 |
% \begin{tikzpicture}[samples=70,domain=1:5] |
| 5000 |
% \begin{axis} |
| 5001 |
% \addplot {x^2}; |
| 5002 |
% \end{axis} |
| 5003 |
% \end{tikzpicture} |
| 5004 |
% |
| 5005 |
% POSTCONDITION: |
| 5006 |
% - \pgfplots@plot@domain = value of '/pgfplots/domain', |
| 5007 |
% - \pgfplots@plot@samples@at = the value of '/pgfplots/samples at', |
| 5008 |
% - \pgfplots@plot@samples = value of '/pgfplots/samples', |
| 5009 |
% the values after any backwards compatibility issues will be used. |
| 5010 |
\def\pgfplots@validate@plot@domain@arguments{% |
| 5011 |
\pgfkeysgetvalue{/pgfplots/samples}\pgfplots@plot@samples |
| 5012 |
\ifx\pgfplots@plot@samples\pgfutil@empty |
| 5013 |
\pgfplots@gettikzinternal@keyval{samples}{tikz@plot@samples}{25}% |
| 5014 |
\let\pgfplots@plot@samples=\tikz@plot@samples |
| 5015 |
\def\pgfplots@loc@TMPa{0}% <- whether the tikz backw. compatibility shall resample |
| 5016 |
\else |
| 5017 |
\def\pgfplots@loc@TMPa{1}% |
| 5018 |
\fi |
| 5019 |
% |
| 5020 |
\pgfplotscoordmath{default}{parse int}{\pgfplots@plot@samples}% |
| 5021 |
\let\pgfplots@plot@samples=\pgfmathresult |
| 5022 |
\pgfkeyslet{/pgfplots/samples}{\pgfplots@plot@samples}% |
| 5023 |
% |
| 5024 |
\pgfkeysgetvalue{/pgfplots/domain}\pgfplots@plot@domain |
| 5025 |
\pgfkeysgetvalue{/pgfplots/samples at}\pgfplots@plot@samples@at |
| 5026 |
\ifx\pgfplots@plot@domain\pgfutil@empty |
| 5027 |
% simply acquire /tikz/domain value: |
| 5028 |
\pgfplots@gettikzinternal@keyval{domain}{tikz@plot@domain}{-5:5}% |
| 5029 |
\pgfkeyslet{/pgfplots/domain}{\tikz@plot@domain}% |
| 5030 |
\let\pgfplots@plot@domain=\tikz@plot@domain |
| 5031 |
% |
| 5032 |
\ifx\pgfplots@plot@samples@at\pgfutil@empty |
| 5033 |
\if 1\pgfplots@loc@TMPa |
| 5034 |
% Resample! See above. |
| 5035 |
\tikzset{% |
| 5036 |
/pgf/fpu/output format=fixed,% seems as if /tikz/samples calls register arithmetics. |
| 5037 |
samples=\pgfplots@plot@samples, |
| 5038 |
/pgf/fpu/output format=float,% |
| 5039 |
}% |
| 5040 |
\fi |
| 5041 |
\pgfplots@gettikzinternal@keyval{samples at}{tikz@plot@samplesat}{-5,-4.6,...,5}% |
| 5042 |
% |
| 5043 |
% check if it was a domain. This simplifies LUA code: |
| 5044 |
\pgfplotsforeachtodomain{\tikz@plot@samplesat}% |
| 5045 |
\ifx\pgfplotsretval\pgfutil@empty |
| 5046 |
\pgfkeyslet{/pgfplots/samples at}{\tikz@plot@samplesat}% |
| 5047 |
\let\pgfplots@plot@samples@at=\tikz@plot@samplesat |
| 5048 |
\else |
| 5049 |
\let\pgfplots@plot@domain=\pgfplotsretval |
| 5050 |
\let\pgfplots@plot@samples=\pgfplotsretvalb |
| 5051 |
\pgfkeyslet{/pgfplots/samples}{\pgfplots@plot@samples}% |
| 5052 |
\fi |
| 5053 |
\else |
| 5054 |
% routines should use \pgfplots@plot@samples@at. |
| 5055 |
\fi |
| 5056 |
\fi |
| 5057 |
% do that such that any active ':' sign will be expanded - for |
| 5058 |
% french babel support. |
| 5059 |
\edef\pgfplots@plot@domain{\pgfplots@plot@domain}% |
| 5060 |
\pgfkeyslet{/pgfplots/domain}\pgfplots@plot@domain |
| 5061 |
}% |
| 5062 |
|
| 5063 |
\def\pgfplots@set@at#1{\def\pgfplots@at{#1}}% |
| 5064 |
|
| 5065 |
|
| 5066 |
% DEPRECATED |
| 5067 |
\long\def\axispreset#1{% |
| 5068 |
\pgfplotsset{every axis/.append style={#1}}% |
| 5069 |
} |
| 5070 |
% DEPRECATED |
| 5071 |
\long\def\legendpreset#1{% |
| 5072 |
\pgfplots@error{Sorry, legendpreset is now deprecated, along with the legend options text width and font. Legends are now TikZ-matrizes which provide better alignment and can be placed horizontally. See the manual for details.}% |
| 5073 |
} |
| 5074 |
|
| 5075 |
% #1: axis (x, y, or z) |
| 5076 |
% #2: display name of context information |
| 5077 |
\def\pgfplots@warn@if@log@basis@unset#1#2{% |
| 5078 |
\pgfplots@if{pgfplots@#1islinear}{% |
| 5079 |
}{% |
| 5080 |
\pgfplots@warn@if@log@basis@unset@{#1}{#2}% |
| 5081 |
}% |
| 5082 |
}% |
| 5083 |
\def\pgfplots@warn@if@log@basis@unset@#1#2{% |
| 5084 |
\pgfkeysgetvalue{/pgfplots/log basis #1}\pgfplots@loc@TMPa |
| 5085 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 5086 |
\pgfplotswarning{log basis required}{#1}{#2}\pgfeov |
| 5087 |
\fi |
| 5088 |
\gdef\pgfplots@warn@if@log@basis@unset##1##2{}% |
| 5089 |
}% |
| 5090 |
|
| 5091 |
|
| 5092 |
% #1 axis (x or y) |
| 5093 |
% #2 the label |
| 5094 |
\long\def\pgfplots@show@label#1#2{% |
| 5095 |
\begingroup |
| 5096 |
% Prepare special alignment features here. |
| 5097 |
% |
| 5098 |
% The idea is to: |
| 5099 |
% 1. Declare a local COORDINATE SYSTEM to place labels, |
| 5100 |
% the 'ticklabel cs' for the current axis. |
| 5101 |
% It takes 1-2 arguments where the first is the coordinate on the |
| 5102 |
% ticklabel axis (between 0 and 1). The second is an optional shift orthogonal to |
| 5103 |
% the axis in direction of the outer normal. The minimum shift is |
| 5104 |
% the largest' ticklabels dimension. |
| 5105 |
% |
| 5106 |
% 2. Declare a local ANCHOR to align labels, the 'near ticklabel' |
| 5107 |
% anchor. |
| 5108 |
% |
| 5109 |
% Both things are not necessary - but they *can* be used. |
| 5110 |
\tikzdeclarecoordinatesystem{ticklabel}{\pgfplotspointticklabelcs[\pgfkeysvalueof{/pgfplots/#1label shift}]{#1}{##1}}% |
| 5111 |
\tikzdeclarecoordinatesystem{ticklabel*}{\pgfplotspointticklabelnoshiftcs{#1}{##1}}% |
| 5112 |
\pgfplotsdeclareborderanchorforticklabelaxis{#1}{near ticklabel}% |
| 5113 |
% |
| 5114 |
\pgfkeysgetvalue{/tikz/sloped/.@cmd}\pgfplots@loc@TMPa |
| 5115 |
\pgfkeyslet{/tikz/sloped/orig/.@cmd}\pgfplots@loc@TMPa |
| 5116 |
\pgfkeysdef{/tikz/sloped}{\pgfkeysalso{/tikz/sloped like #1 axis={##1}}}% |
| 5117 |
% |
| 5118 |
\node |
| 5119 |
[/pgfplots/every axis label,% |
| 5120 |
/pgfplots/every axis #1 label] |
| 5121 |
{#2}; |
| 5122 |
\endgroup |
| 5123 |
} |
| 5124 |
|
| 5125 |
|
| 5126 |
\long\def\pgfplots@show@title#1{% |
| 5127 |
\node% |
| 5128 |
[/pgfplots/every axis title] |
| 5129 |
{#1}; |
| 5130 |
} |
| 5131 |
|
| 5132 |
|
| 5133 |
% 'inner' means lines which pass through the origin (i.e. lines which |
| 5134 |
% are not on the outer bounding box). In other words: this has an |
| 5135 |
% effect if and only if 'axis #1 lines=center' |
| 5136 |
% |
| 5137 |
% #1: the 'a' axis on the oriented surface (the same as \pgfplotspointonorientedsurfaceA) |
| 5138 |
% #2: the 'b' axis on the orentied surface (the same as \pgfplotspointonorientedsurfaceB) |
| 5139 |
\def\pgfplots@drawaxis@innerlines@onorientedsurf#1#2#3{% |
| 5140 |
\if2\csname pgfplots@#1axislinesnum\endcsname |
| 5141 |
\pgfplotsgetlayerforstyle{% |
| 5142 |
every inner #1 axis line, |
| 5143 |
}% |
| 5144 |
\pgfplotsonlayer{\pgfplotsretval}{inner #1 axis line}% |
| 5145 |
% |
| 5146 |
\draw[/pgfplots/every inner #1 axis line,% |
| 5147 |
decorate,% |
| 5148 |
#1discont,% |
| 5149 |
decoration={% |
| 5150 |
% these keys appears to be checked via an \ifx on |
| 5151 |
% '0pt'. Make sure that this \ifx works by means of |
| 5152 |
% the expand twice construction: |
| 5153 |
pre length/.expand twice=\csname #1disstart\endcsname,% |
| 5154 |
post length/.expand twice=\csname #1disend\endcsname% |
| 5155 |
}] |
| 5156 |
\pgfextra |
| 5157 |
\csname pgfplotspointonorientedsurfaceabsetupforset#3\endcsname{\csname pgfplots@logical@ZERO@#3\endcsname}{2}% |
| 5158 |
\pgfplots@transformshift@along@outer@normal@on@line@of@oriented@surf v2% |
| 5159 |
\pgfpathmoveto{\pgfplotspointonorientedsurfaceab{\csname pgfplots@#1min\endcsname}{\csname pgfplots@logical@ZERO@#2\endcsname}}% |
| 5160 |
\pgfpathlineto{\pgfplotspointonorientedsurfaceab{\csname pgfplots@#1max\endcsname}{\csname pgfplots@logical@ZERO@#2\endcsname}}% |
| 5161 |
\endpgfextra |
| 5162 |
; |
| 5163 |
% |
| 5164 |
\endpgfplotsonlayer |
| 5165 |
\fi |
| 5166 |
}% |
| 5167 |
|
| 5168 |
% Draws outer axis lines, i.e. those which are on the bounding box. |
| 5169 |
% This has an effect if and only if axis #1 lines!=center. |
| 5170 |
% |
| 5171 |
% |
| 5172 |
% Ok, we don't mind whether edges with thick lines look ugly. We just |
| 5173 |
% draw separate lines. This here is necessary if we want arrow heads. |
| 5174 |
% |
| 5175 |
% #1: the 'a' axis on the oriented surface (the same as \pgfplotspointonorientedsurfaceA) |
| 5176 |
% #2: the 'b' axis on the oriented surface (the same as \pgfplotspointonorientedsurfaceB) |
| 5177 |
\def\pgfplots@drawaxis@outerlines@separate@onorientedsurf#1#2{% |
| 5178 |
\if2\csname pgfplots@#1axislinesnum\endcsname |
| 5179 |
% centered axis lines handled elsewhere. |
| 5180 |
\else |
| 5181 |
\def\pgfplots@drawaxis@outerlines@separate@onorientedsurf@opts{% |
| 5182 |
/pgfplots/every outer #1 axis line, |
| 5183 |
#1discont,decoration={pre length/.expand twice=\csname #1disstart\endcsname, post length/.expand twice=\csname #1disend\endcsname}% |
| 5184 |
}% |
| 5185 |
\pgfplotsgetlayerforstyle{% |
| 5186 |
every outer #1 axis line, |
| 5187 |
}% |
| 5188 |
\pgfplotsonlayer{\pgfplotsretval}{outer #1 axis line}% |
| 5189 |
% |
| 5190 |
\pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn{0}{% |
| 5191 |
\expandafter\draw\expandafter[\pgfplots@drawaxis@outerlines@separate@onorientedsurf@opts] decorate { |
| 5192 |
\pgfextra |
| 5193 |
% exchange roles of A <-> B axes: |
| 5194 |
\pgfplotspointonorientedsurfaceabsetupfor{#2}{#1}{\pgfplotspointonorientedsurfaceN}% |
| 5195 |
\pgfplots@transformshift@along@outer@normal@on@line@of@oriented@surf 0v% |
| 5196 |
\pgfplots@drawgridlines@onorientedsurf@fromto{\csname pgfplots@#2min\endcsname}% |
| 5197 |
\endpgfextra |
| 5198 |
}; |
| 5199 |
}{}% |
| 5200 |
\pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn{1}{% |
| 5201 |
\expandafter\draw\expandafter[\pgfplots@drawaxis@outerlines@separate@onorientedsurf@opts] decorate { |
| 5202 |
\pgfextra |
| 5203 |
% exchange roles of A <-> B axes: |
| 5204 |
\pgfplotspointonorientedsurfaceabsetupfor{#2}{#1}{\pgfplotspointonorientedsurfaceN}% |
| 5205 |
\pgfplots@transformshift@along@outer@normal@on@line@of@oriented@surf 1v% |
| 5206 |
\pgfplots@drawgridlines@onorientedsurf@fromto{\csname pgfplots@#2max\endcsname}% |
| 5207 |
\endpgfextra |
| 5208 |
}; |
| 5209 |
}{}% |
| 5210 |
% |
| 5211 |
\endpgfplotsonlayer |
| 5212 |
\fi |
| 5213 |
}% |
| 5214 |
|
| 5215 |
% This here is complicated: we try to create good edges and draw a |
| 5216 |
% SINGLE path for the partial or complete rectangle |
| 5217 |
% |
| 5218 |
% ----- |
| 5219 |
% | | |
| 5220 |
% | | |
| 5221 |
% ----- |
| 5222 |
% |
| 5223 |
% ATTENTION: this thing is used IF AND ONLY IF d=2 and the axis is |
| 5224 |
% drawn as box. |
| 5225 |
\def\pgfplots@drawaxis@outerlines@cycledpath{% |
| 5226 |
\pgfplots@loc@tmptrue |
| 5227 |
\ifpgfplots@hide@x |
| 5228 |
\ifpgfplots@hide@y |
| 5229 |
\pgfplots@loc@tmpfalse |
| 5230 |
\fi |
| 5231 |
\fi |
| 5232 |
\ifpgfplots@loc@tmp |
| 5233 |
\pgfplotsgetlayerforstyle{% |
| 5234 |
every outer x axis line, |
| 5235 |
every outer y axis line, |
| 5236 |
}% |
| 5237 |
\pgfplotsonlayer{\pgfplotsretval}{boxed axis line}% |
| 5238 |
% |
| 5239 |
\draw[ |
| 5240 |
/pgfplots/every outer x axis line, % using these outer styles is only useful in conjunction with 'separate axis lines=true' |
| 5241 |
/pgfplots/every outer y axis line] |
| 5242 |
\pgfextra\pgfpathmoveto{\pgfplotsqpointxy{\pgfplots@xmin}{\pgfplots@ymin}}\endpgfextra |
| 5243 |
\ifpgfplots@hide@y |
| 5244 |
{ \pgfextra\pgfpathmoveto{\pgfplotsqpointxy{\pgfplots@xmin}{\pgfplots@ymax}}\endpgfextra } |
| 5245 |
\else |
| 5246 |
decorate [ydiscont,decoration={pre length=\ydisstart, post length=\ydisend}] |
| 5247 |
% { -- (\pgfplots@xmin, \pgfplots@ymax) } |
| 5248 |
{ \pgfextra\pgfpathlineto{\pgfplotsqpointxy{\pgfplots@xmin}{\pgfplots@ymax}}\endpgfextra } |
| 5249 |
\fi |
| 5250 |
\ifpgfplots@hide@x |
| 5251 |
%{ (\pgfplots@xmax, \pgfplots@ymax) } |
| 5252 |
{ \pgfextra\pgfpathmoveto{\pgfplotsqpointxy{\pgfplots@xmax}{\pgfplots@ymax}}\endpgfextra } |
| 5253 |
\else |
| 5254 |
decorate [xdiscont,decoration={pre length=\xdisstart, post length=\xdisend}] |
| 5255 |
%{ -- (\pgfplots@xmax, \pgfplots@ymax) } |
| 5256 |
{ \pgfextra\pgfpathlineto{\pgfplotsqpointxy{\pgfplots@xmax}{\pgfplots@ymax}}\endpgfextra } |
| 5257 |
\fi |
| 5258 |
\ifpgfplots@hide@y |
| 5259 |
%{ (\pgfplots@xmax, \pgfplots@ymin) } |
| 5260 |
{ \pgfextra\pgfpathmoveto{\pgfplotsqpointxy{\pgfplots@xmax}{\pgfplots@ymin}}\endpgfextra } |
| 5261 |
\else |
| 5262 |
decorate [ydiscont,decoration={pre length=\ydisend, post length=\ydisstart}] |
| 5263 |
%{ -- (\pgfplots@xmax, \pgfplots@ymin) } |
| 5264 |
{ \pgfextra\pgfpathlineto{\pgfplotsqpointxy{\pgfplots@xmax}{\pgfplots@ymin}}\endpgfextra } |
| 5265 |
\fi |
| 5266 |
\ifpgfplots@hide@x |
| 5267 |
%{ (\pgfplots@xmin, \pgfplots@ymin) } |
| 5268 |
{ \pgfextra\pgfpathmoveto{\pgfplotsqpointxy{\pgfplots@xmin}{\pgfplots@ymin}}\endpgfextra } |
| 5269 |
\else |
| 5270 |
decorate [xdiscont,decoration={pre length=\xdisend, post length=\xdisstart}] |
| 5271 |
%{ -- (\pgfplots@xmin, \pgfplots@ymin) } |
| 5272 |
{ \pgfextra\pgfpathlineto{\pgfplotsqpointxy{\pgfplots@xmin}{\pgfplots@ymin}}\endpgfextra } |
| 5273 |
\fi |
| 5274 |
% make sure that we do not have any of the axis discontinuities |
| 5275 |
% here - they should not be closed. |
| 5276 |
\if0\pgfplots@xaxisdiscontnum |
| 5277 |
\if0\pgfplots@yaxisdiscontnum |
| 5278 |
-- cycle |
| 5279 |
\fi |
| 5280 |
\fi |
| 5281 |
;% |
| 5282 |
% |
| 5283 |
\endpgfplotsonlayer |
| 5284 |
\fi |
| 5285 |
}% |
| 5286 |
|
| 5287 |
% Assigns the macros |
| 5288 |
% #1disstart |
| 5289 |
% #1disend |
| 5290 |
% and the key /tikz/#1discont for use in the axis line routines. |
| 5291 |
% |
| 5292 |
% #1 : either x or y. |
| 5293 |
\def\pgfplots@drawaxis@lines@preparediscont@for#1{% |
| 5294 |
\ifnum\csname pgfplots@#1axisdiscontnum\endcsname>0 |
| 5295 |
\begingroup |
| 5296 |
% this group employs several temporary dimension registers |
| 5297 |
% and is therefore scoped: |
| 5298 |
\let\disstart=\pgf@ya |
| 5299 |
\let\disend=\pgf@yb |
| 5300 |
\disend=\csname pgfplots@#1max@reg\endcsname |
| 5301 |
\advance\disend by -\csname pgfplots@#1min@reg\endcsname |
| 5302 |
\disend=\csname pgfplots@#1@veclength\endcsname\disend |
| 5303 |
\ifcase\csname pgfplots@#1axisdiscontnum\endcsname\relax |
| 5304 |
% has already been checked above. |
| 5305 |
\or |
| 5306 |
\def\discontstyle{decoration={zigzag,segment length=12pt, amplitude=4pt}}% |
| 5307 |
\advance \disend by -16pt |
| 5308 |
\or |
| 5309 |
\def\discontstyle{decoration={ticks,segment length=4pt, amplitude=8pt}}% |
| 5310 |
\advance \disend by -8pt |
| 5311 |
\fi |
| 5312 |
\pgfplotscoordmath{#1}{datascaletrafo get params}% |
| 5313 |
% if #1max + shift < 0pt (shift is 0 without the scaling trafo) |
| 5314 |
\ifdim\csname pgfplots@#1max@reg\endcsname<-\pgfplotsretvalb pt |
| 5315 |
% swap start and end |
| 5316 |
\disstart=\disend |
| 5317 |
\disend=4pt |
| 5318 |
\else |
| 5319 |
\disstart=4pt |
| 5320 |
\fi |
| 5321 |
% carry local computations outside of group: |
| 5322 |
\xdef\pgfplots@glob@TMPa{% |
| 5323 |
\noexpand\def\expandafter\noexpand\csname #1disstart\endcsname{\the\disstart}% |
| 5324 |
\noexpand\def\expandafter\noexpand\csname #1disend\endcsname{\the\disend}% |
| 5325 |
\noexpand\pgfkeysdef{/tikz/#1discont}{\noexpand\pgfkeysalso{\discontstyle}}% |
| 5326 |
}% |
| 5327 |
\endgroup |
| 5328 |
\pgfplots@glob@TMPa |
| 5329 |
\else |
| 5330 |
\expandafter\def\csname #1disstart\endcsname{0pt}% |
| 5331 |
\expandafter\def\csname #1disend\endcsname{0pt}% |
| 5332 |
\pgfkeyslet{/tikz/#1discont}=\pgfutil@empty |
| 5333 |
\fi |
| 5334 |
}% |
| 5335 |
|
| 5336 |
\def\pgfplots@rememberplotspec@for@label{\pgfplotsutil@ifnextchar[{\pgfplots@rememberplotspec@for@label@}{\pgfplots@rememberplotspec@for@label@[]}}% |
| 5337 |
\def\pgfplots@rememberplotspec@for@label@[#1]#2{% |
| 5338 |
\t@pgfplots@tokc={#2}% this token register stuff allows '#' inside of '#2' |
| 5339 |
\expandafter\xdef\csname pgfplots@last@plot@style@#1\endcsname{\the\t@pgfplots@tokc}% |
| 5340 |
\global\pgfplots@has@label@informationtrue |
| 5341 |
}% |
| 5342 |
\def\pgfplots@rememberplotspec{\pgfplotsutil@ifnextchar[{\pgfplots@rememberplotspec@opt}{\pgfplots@rememberplotspec@opt[]}}% |
| 5343 |
\def\pgfplots@rememberplotspec@opt[#1]#2{% |
| 5344 |
\pgfplots@rememberplotspec@for@label[#1]{#2}% |
| 5345 |
\pgfplotslistpushbackglobal{#2}\to\pgfplots@plotspeclist |
| 5346 |
} |
| 5347 |
|
| 5348 |
\def\pgfplots@getautoplotspec into#1{% |
| 5349 |
\begingroup |
| 5350 |
\let#1=\pgfutil@empty |
| 5351 |
\pgfkeysgetvalue{/pgfplots/cycle multi list/@dim}\pgfplots@cycle@dim |
| 5352 |
% |
| 5353 |
\let\pgfplots@listindex=\pgfplots@numplots |
| 5354 |
\pgfkeysgetvalue{/pgfplots/cycle list shift}\pgfplots@listindex@shift |
| 5355 |
\ifx\pgfplots@listindex@shift\pgfutil@empty |
| 5356 |
\else |
| 5357 |
\c@pgf@counta=\pgfplots@listindex\relax |
| 5358 |
\advance\c@pgf@counta by\pgfplots@listindex@shift\relax |
| 5359 |
\ifnum\c@pgf@counta<0 |
| 5360 |
\c@pgf@counta=-\c@pgf@counta |
| 5361 |
\fi |
| 5362 |
\edef\pgfplots@listindex{\the\c@pgf@counta}% |
| 5363 |
\fi |
| 5364 |
\ifnum\pgfplots@cycle@dim>0 |
| 5365 |
\if L\pgfplots@cycle@multi@list@sequence |
| 5366 |
% use the 'cycle multi list' feature. |
| 5367 |
% |
| 5368 |
% it employs a scalar -> multiindex map like |
| 5369 |
% void fromScalar( size_t d, size_t scalar, size_t* Iout, const size_t* N ) |
| 5370 |
% { |
| 5371 |
% size_t ret=scalar; |
| 5372 |
% for( int i = d-1; i>=0; --i ) { |
| 5373 |
% Iout[i] = ret % N[i]; |
| 5374 |
% ret /= N[i]; |
| 5375 |
% } |
| 5376 |
% } |
| 5377 |
% to get the different indices into the cycle lists. |
| 5378 |
%-------------------------------------------------- |
| 5379 |
\c@pgf@counta=\pgfplots@cycle@dim\relax |
| 5380 |
\c@pgf@countb=\pgfplots@listindex\relax |
| 5381 |
\advance\c@pgf@counta by-1 |
| 5382 |
\pgfplotsloop{% |
| 5383 |
\ifnum\c@pgf@counta<0 |
| 5384 |
\pgfplotsloopcontinuefalse |
| 5385 |
\else |
| 5386 |
\pgfplotsloopcontinuetrue |
| 5387 |
\fi |
| 5388 |
}{% |
| 5389 |
\pgfkeysgetvalue{/pgfplots/cycle multi list/@N\the\c@pgf@counta}\pgfplots@cycle@N |
| 5390 |
% compute list index: |
| 5391 |
\pgfplotsmathmodint{\c@pgf@countb}{\pgfplots@cycle@N}% |
| 5392 |
\divide\c@pgf@countb by \pgfplots@cycle@N\relax |
| 5393 |
% |
| 5394 |
\expandafter\pgfplots@getautoplotspec@ |
| 5395 |
\csname pgfp@cyclist@/pgfplots/cycle multi list/@list\the\c@pgf@counta @\endcsname |
| 5396 |
{\pgfplots@cycle@N}% |
| 5397 |
{\pgfmathresult}% |
| 5398 |
\t@pgfplots@toka=\expandafter{#1,}% |
| 5399 |
\t@pgfplots@tokb=\expandafter{\pgfplotsretval}% |
| 5400 |
\edef#1{\the\t@pgfplots@toka\the\t@pgfplots@tokb}% |
| 5401 |
\advance\c@pgf@counta by-1 |
| 5402 |
}% |
| 5403 |
\else |
| 5404 |
\if M\pgfplots@cycle@multi@list@sequence |
| 5405 |
% |
| 5406 |
% take the i'th element of each sub-list where i |
| 5407 |
% =\pgfplots@listindex |
| 5408 |
\if A\pgfplots@cycle@multi@list@repeat |
| 5409 |
% 'cycle multiindex list' |
| 5410 |
% |
| 5411 |
% ensure that we respect the maxlen of the list: |
| 5412 |
\pgfplotsmathmodint{\pgfplots@listindex}{\pgfkeysvalueof{/pgfplots/cycle multi list/@maxlen}}% |
| 5413 |
\let\pgfplots@listindex=\pgfmathresult |
| 5414 |
\def\pgfplots@cycle@multi@list@cur##1{% |
| 5415 |
\ifnum\pgfplots@listindex<\pgfplots@cycle@N\relax |
| 5416 |
##1% |
| 5417 |
\fi |
| 5418 |
}% |
| 5419 |
% |
| 5420 |
\else |
| 5421 |
% 'cycle multiindex* list': |
| 5422 |
\def\pgfplots@cycle@multi@list@cur##1{% |
| 5423 |
##1% |
| 5424 |
}% |
| 5425 |
\fi |
| 5426 |
% |
| 5427 |
\c@pgf@counta=0 |
| 5428 |
\pgfplotsloop{% |
| 5429 |
\ifnum\c@pgf@counta<\pgfplots@cycle@dim\relax |
| 5430 |
\pgfplotsloopcontinuetrue |
| 5431 |
\else |
| 5432 |
\pgfplotsloopcontinuefalse |
| 5433 |
\fi |
| 5434 |
}{% |
| 5435 |
\pgfkeysgetvalue{/pgfplots/cycle multi list/@N\the\c@pgf@counta}\pgfplots@cycle@N |
| 5436 |
\pgfplots@cycle@multi@list@cur{% |
| 5437 |
\expandafter\pgfplots@getautoplotspec@ |
| 5438 |
\csname pgfp@cyclist@/pgfplots/cycle multi list/@list\the\c@pgf@counta @\endcsname |
| 5439 |
{\pgfplots@cycle@N}% |
| 5440 |
{\pgfplots@listindex}% |
| 5441 |
\t@pgfplots@toka=\expandafter{#1,}% |
| 5442 |
\t@pgfplots@tokb=\expandafter{\pgfplotsretval}% |
| 5443 |
\edef#1{\the\t@pgfplots@toka\the\t@pgfplots@tokb}% |
| 5444 |
}% |
| 5445 |
\advance\c@pgf@counta by1 |
| 5446 |
}% |
| 5447 |
\else |
| 5448 |
\pgfplots@error{Internal error: expected 'L' or 'M', not '\pgfplots@cycle@multi@list@sequence'}% |
| 5449 |
\fi |
| 5450 |
\fi |
| 5451 |
\else |
| 5452 |
% normal cycle list: |
| 5453 |
\pgfplotslistsize\autoplotspeclist\to\c@pgf@countd |
| 5454 |
\pgfplots@getautoplotspec@{\autoplotspeclist}{\c@pgf@countd}{\pgfplots@listindex}% |
| 5455 |
\let#1=\pgfplotsretval |
| 5456 |
\fi |
| 5457 |
%\message{[plot \the\pgfplots@numplots]: Returning options list \meaning#1^^J}% |
| 5458 |
\pgfmath@smuggleone#1% |
| 5459 |
\endgroup |
| 5460 |
} |
| 5461 |
% #1: list name (macro!) |
| 5462 |
% #2: list size (integer register or value) |
| 5463 |
% #3: list element index |
| 5464 |
% |
| 5465 |
% defines \pgfplotsretval |
| 5466 |
\def\pgfplots@getautoplotspec@#1#2#3{% |
| 5467 |
\ifnum#2=0 |
| 5468 |
\let\pgfplotsretval=\pgfutil@empty |
| 5469 |
\else |
| 5470 |
\pgfplotsmathmodint{#3}{#2}% |
| 5471 |
\pgfplotslistselect\pgfmathresult\of#1\to\pgfplotsretval |
| 5472 |
\fi |
| 5473 |
} |
| 5474 |
|
| 5475 |
|
| 5476 |
\long\def\pgfplots@path#1;{% |
| 5477 |
\pgfplots@path@enqueue{#1;}% |
| 5478 |
} |
| 5479 |
|
| 5480 |
% This thing here shall be used to replace any '\path' where \axispath |
| 5481 |
% shall be used. |
| 5482 |
\long\def\pgfplots@replacement@for@tikz@path#1;{% |
| 5483 |
\axispath\path#1;% |
| 5484 |
} |
| 5485 |
\def\pgfplots@replacement@for@scope{\pgfutil@ifnextchar[{\pgfplots@replacement@for@scope@}{\pgfplots@replacement@for@scope@[]}}% |
| 5486 |
\long\def\pgfplots@replacement@for@scope@[#1]{% |
| 5487 |
\pgfplotsextra{\scope[#1]}% |
| 5488 |
\begingroup |
| 5489 |
% I need to apply anything which might be relevant for \addplot |
| 5490 |
% here. |
| 5491 |
% But I do NOT want \scope since this might already affect the low |
| 5492 |
% level output. |
| 5493 |
% |
| 5494 |
% This here works: |
| 5495 |
% 1. set them to activate plot handlers and parameters like |
| 5496 |
% samples and domain: |
| 5497 |
\tikzset{#1}% |
| 5498 |
% |
| 5499 |
% 2. we need to remember all these options inside of |
| 5500 |
% 'current plot style' -- otherwise, they would not appear |
| 5501 |
% inside of legend images and markers. |
| 5502 |
\pgfplotssurveyphaseaddoptionsbeforesurveybegins{#1}% |
| 5503 |
}% |
| 5504 |
\def\pgfplots@replacement@for@endscope{% |
| 5505 |
\endgroup |
| 5506 |
\pgfplotsextra{\endscope}% |
| 5507 |
}% |
| 5508 |
|
| 5509 |
\def\pgfplots@replacement@for@onlayer#1{% |
| 5510 |
\edef\pgfplots@loc@TMPa{#1}% |
| 5511 |
\expandafter\pgfplots@replacement@for@onlayer@{#1}% |
| 5512 |
} |
| 5513 |
\def\pgfplots@replacement@for@onlayer@#1{% |
| 5514 |
\pgfplotsextra{\pgfonlayer{#1}}% |
| 5515 |
}% |
| 5516 |
\def\pgfplots@replacement@for@endonlayer{\pgfplotsextra{\endpgfonlayer}}% |
| 5517 |
|
| 5518 |
{ |
| 5519 |
% A block which handles active semicolons. |
| 5520 |
% |
| 5521 |
% ATTENTION: this block does only work if |
| 5522 |
% \pgfplots@addplotimpl.... changes are reflected here! |
| 5523 |
% |
| 5524 |
\catcode`\;=\active |
| 5525 |
\globaldefs=1 |
| 5526 |
% 'AS' == 'active semicolon' |
| 5527 |
\def\pgfplots@path@AS#1;{\pgfplots@path@enqueue{#1;}}% |
| 5528 |
\long\def\pgfplots@replacement@for@tikz@path@AS#1;{% |
| 5529 |
\axispath\path#1;% |
| 5530 |
}% |
| 5531 |
\pgfplots@appendto@activesemicolon@switcher{% |
| 5532 |
\let\pgfplots@path=\pgfplots@path@AS |
| 5533 |
\let\pgfplots@replacement@for@tikz@path=\pgfplots@replacement@for@tikz@path@AS |
| 5534 |
}% |
| 5535 |
} |
| 5536 |
|
| 5537 |
|
| 5538 |
% Will be available as \closedcycle command inside of an axis. |
| 5539 |
% |
| 5540 |
% It closes the current plot by drawing lines to the last "zero |
| 5541 |
% level". |
| 5542 |
% |
| 5543 |
% That means the current plot is connected orthogonally with the |
| 5544 |
% x-axis, allowing fill commands. |
| 5545 |
% |
| 5546 |
% For stacked plots, \closedcycle is special (it connects with the |
| 5547 |
% previous \addplot command). |
| 5548 |
% |
| 5549 |
% Example: |
| 5550 |
% \addplot coordinates {(3,0.5) (4,2) (5,1)} \closedcycle; |
| 5551 |
\def\pgfplots@path@closed@cycle{% |
| 5552 |
\ifpgfplots@stackedmode |
| 5553 |
\pgfplots@stacked@path@closed@cycle |
| 5554 |
\else |
| 5555 |
\pgfplots@path@closed@cycle@std |
| 5556 |
\fi |
| 5557 |
} |
| 5558 |
\def\pgfplots@path@closed@cycle@std{% |
| 5559 |
|- (perpendicular cs: |
| 5560 |
vertical line through={(current plot begin)}, |
| 5561 |
horizontal line through={(\pgfplots@ZERO@x,\pgfplots@ZERO@y)}) |
| 5562 |
-- cycle |
| 5563 |
}% |
| 5564 |
|
| 5565 |
% Remembers the plotting command #2 and '#3=plot coordinates {...} ...'; |
| 5566 |
% for later postprocessing of the coordinates. |
| 5567 |
% |
| 5568 |
% #1: pre-commands which should be executed before issueing the plotting |
| 5569 |
% command #2 #3. |
| 5570 |
% #2: the drawing-command. |
| 5571 |
% - If #2 is NOT '\pgfutil@empty', we expect #3 to contain only |
| 5572 |
% EXPANDABLE DATA. |
| 5573 |
% That's important for postponed floating point arithmetics in #3. |
| 5574 |
% - If #2='\pgfutil@empty', we don't make any assumption about #3 |
| 5575 |
% and process it as-is. |
| 5576 |
% |
| 5577 |
% #3: the plot data. If #2 is empty, this can be any command. |
| 5578 |
% |
| 5579 |
% #4: commands which should be executed after '#2 #3'. |
| 5580 |
% |
| 5581 |
\long\def\pgfplots@path@enqueue@coords#1#2#3#4{% |
| 5582 |
\begingroup |
| 5583 |
\def\pgfplots@loc@TMPa{#2}% |
| 5584 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 5585 |
\def\pgfplots@stored@current@precmd{#1}% |
| 5586 |
\def\pgfplots@stored@current@cmd{#2}% |
| 5587 |
\def\pgfplots@stored@current@data{#3}% |
| 5588 |
\def\pgfplots@stored@current@postcmd{#4}% |
| 5589 |
\ifx\pgfplots@stored@current@precmd\pgfutil@empty |
| 5590 |
\else |
| 5591 |
\pgfplots@wrong@plotlist@format@error |
| 5592 |
\fi |
| 5593 |
\ifx\pgfplots@stored@current@postcmd\pgfutil@empty |
| 5594 |
\else |
| 5595 |
\pgfplots@wrong@plotlist@format@error |
| 5596 |
\fi |
| 5597 |
\pgfplotslistpushbackglobal{#1}{#2}{#3}{#4}\to\pgfplots@stored@plotlist |
| 5598 |
\else |
| 5599 |
\pgfkeysgetvalue{/pgfplots/execute at begin plot visualization}\pgfplots@loc@TMPa |
| 5600 |
\pgfkeysgetvalue{/pgfplots/execute at end plot visualization}\pgfplots@loc@TMPb |
| 5601 |
\t@pgfplots@toka={#1}% |
| 5602 |
\t@pgfplots@tokb=\expandafter{\pgfplots@loc@TMPa}% |
| 5603 |
\t@pgfplots@tokc=\expandafter{\pgfplots@loc@TMPb}% |
| 5604 |
\edef\pgfplots@loc@TMPa{% |
| 5605 |
\noexpand\pgfkeyssetvalue{/pgfplots/execute at begin plot visualization}{\the\t@pgfplots@tokb}% |
| 5606 |
\noexpand\pgfkeyssetvalue{/pgfplots/execute at end plot visualization}{\the\t@pgfplots@tokc}% |
| 5607 |
\the\t@pgfplots@toka |
| 5608 |
}% |
| 5609 |
\expandafter\pgfplotslistpushbackglobal\expandafter{\pgfplots@loc@TMPa}{#2}{#3}{#4}\to\pgfplots@stored@plotlist |
| 5610 |
\fi |
| 5611 |
\endgroup |
| 5612 |
} |
| 5613 |
\def\pgfplots@wrong@plotlist@format@error{% |
| 5614 |
\pgfplots@error{Internal logic error: someone used \string \pgfplots@path@enqueue@coords\space in an unexpected way: if the second argument is empty, ONLY the third argument should be non-empty.^^J I found: pre command (1st arg): \meaning\pgfplots@stored@current@precmd;^^J command (2nd arg): \meaning\pgfplots@stored@current@cmd;^^J data (3rd arg): \meaning\pgfplots@stored@current@data^^J; post cmd (4th arg): \meaning\pgfplots@stored@current@postcmd^^J}% |
| 5615 |
}% |
| 5616 |
|
| 5617 |
% this was formerly slightly different than |
| 5618 |
% \pgfplots@path@enqueue@coords, but it is now the same. |
| 5619 |
\let\pgfplots@addplot@enqueue@coords=\pgfplots@path@enqueue@coords |
| 5620 |
|
| 5621 |
|
| 5622 |
% Remembers the plotting command #1. |
| 5623 |
\long\def\pgfplots@path@enqueue#1{% |
| 5624 |
\pgfplots@path@enqueue@coords{}{}{#1}{}% |
| 5625 |
} |
| 5626 |
% Use |
| 5627 |
%\begin{axis} |
| 5628 |
% \pgfplotsextra{ |
| 5629 |
% ... basic level commands or whatever... |
| 5630 |
% } |
| 5631 |
%\end{axis} |
| 5632 |
% to process the special commands by pgfplots. |
| 5633 |
% This is the same treatment as for TikZ \path commands: |
| 5634 |
% the commands will be processed as soon as the axis is finished- not |
| 5635 |
% before. |
| 5636 |
% |
| 5637 |
% In contrast to \path, \pgfplotsextra can contain any command(s). |
| 5638 |
% |
| 5639 |
% Syntax: either |
| 5640 |
% \pgfplotsextra{<argument>} |
| 5641 |
% or |
| 5642 |
% \pgfplotsextra <argument> \endpgfplotsextra |
| 5643 |
\def\pgfplotsextra{% |
| 5644 |
\pgfutil@ifnextchar\bgroup{\pgfplots@path@enqueue}{\pgfplotsextra@}% |
| 5645 |
}% |
| 5646 |
\long\def\pgfplotsextra@#1\endpgfplotsextra{\pgfplots@path@enqueue{#1}}% |
| 5647 |
|
| 5648 |
|
| 5649 |
% Assigns a legend. |
| 5650 |
% Syntax: |
| 5651 |
% \legend{entry 1\\entry2\\entry3} |
| 5652 |
\def\pgfplots@command@legend{ |
| 5653 |
\pgfutil@ifnextchar[{% |
| 5654 |
\pgfplots@error{Sorry, legend options are now deprecated. Legends are now TikZ-matrizes which provide better alignment and can be placed horizontally. See the manual for details.}% |
| 5655 |
\pgfplots@command@legend@impl |
| 5656 |
}{% |
| 5657 |
\pgfplots@command@legend@impl |
| 5658 |
}% |
| 5659 |
} |
| 5660 |
|
| 5661 |
\def\pgfplots@command@legend@impl#1{% |
| 5662 |
\pgfplots@assign@list\pgfplots@loc@TMPc{#1}% |
| 5663 |
\global\let\pgfplots@legend=\pgfplots@loc@TMPc |
| 5664 |
} |
| 5665 |
|
| 5666 |
\def\pgfplots@reverselegend{% |
| 5667 |
% Reverse \pgfplots@plotspeclist |
| 5668 |
\begingroup |
| 5669 |
\pgfplotslistnewempty\pgfplots@plotspeclist@reversed |
| 5670 |
\pgfplotslistforeachungrouped\pgfplots@plotspeclist\as\pgfplots@plotspeclisttmp{% |
| 5671 |
\expandafter\pgfplotslistpushfront\pgfplots@plotspeclisttmp\to\pgfplots@plotspeclist@reversed |
| 5672 |
}% |
| 5673 |
\global\let\pgfplots@plotspeclist=\pgfplots@plotspeclist@reversed |
| 5674 |
\let\pgfplots@legend@reversed=\relax |
| 5675 |
% |
| 5676 |
% Reverse \pgfplots@legend |
| 5677 |
\pgfplotslistnewempty\pgfplots@legend@reversed |
| 5678 |
\pgfplotslistforeachungrouped\pgfplots@legend\as\pgfplots@legendtmp{% |
| 5679 |
\expandafter\pgfplotslistpushfront\pgfplots@legendtmp\to\pgfplots@legend@reversed |
| 5680 |
}% |
| 5681 |
\global\let\pgfplots@legend=\pgfplots@legend@reversed |
| 5682 |
\endgroup |
| 5683 |
} |
| 5684 |
|
| 5685 |
\def\pgfplots@transposelegend{% |
| 5686 |
\ifnum\pgfplots@legend@columns>1 |
| 5687 |
\begingroup |
| 5688 |
\pgfplots@transposelegend@ |
| 5689 |
\let\pgfplots@legend@columns=\c@pgfplots@row@end |
| 5690 |
\pgfmath@smuggleone\pgfplots@legend@columns |
| 5691 |
\endgroup |
| 5692 |
\fi |
| 5693 |
} |
| 5694 |
\def\pgfplots@transposelegend@{% |
| 5695 |
\let\c@pgfplots@row=\c@pgf@countb |
| 5696 |
\let\c@pgfplots@col=\c@pgf@countc |
| 5697 |
\let\c@pgfplots@no=\c@pgf@countd |
| 5698 |
\c@pgfplots@row=0 |
| 5699 |
\c@pgfplots@col=0 |
| 5700 |
\c@pgfplots@no=0 |
| 5701 |
\pgfplotslistforeachungrouped\pgfplots@legend\as\entry{% |
| 5702 |
\expandafter\let\csname m@pgfplots@\the\c@pgfplots@row,\the\c@pgfplots@col\endcsname=\entry |
| 5703 |
\advance\c@pgfplots@col by1 |
| 5704 |
\ifnum\pgfplots@legend@columns=\c@pgfplots@col\relax |
| 5705 |
\c@pgfplots@col=0 |
| 5706 |
\advance\c@pgfplots@row by1 |
| 5707 |
\fi |
| 5708 |
\advance\c@pgfplots@no by1 |
| 5709 |
}% |
| 5710 |
\ifnum\c@pgfplots@col=0 |
| 5711 |
\else |
| 5712 |
\advance\c@pgfplots@row by1 |
| 5713 |
\fi |
| 5714 |
\edef\c@pgfplots@row@end{\the\c@pgfplots@row}% |
| 5715 |
\edef\c@pgfplots@no@leg{\the\c@pgfplots@no}% |
| 5716 |
% |
| 5717 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5718 |
\c@pgfplots@row=0 |
| 5719 |
\c@pgfplots@col=0 |
| 5720 |
\c@pgfplots@no=0 |
| 5721 |
\pgfplotslistforeachungrouped\pgfplots@plotspeclist\as\entry{% |
| 5722 |
\expandafter\let\csname m@pgfplots@img@\the\c@pgfplots@row,\the\c@pgfplots@col\endcsname=\entry |
| 5723 |
\advance\c@pgfplots@col by1 |
| 5724 |
\ifnum\pgfplots@legend@columns=\c@pgfplots@col\relax |
| 5725 |
\c@pgfplots@col=0 |
| 5726 |
\advance\c@pgfplots@row by1 |
| 5727 |
\fi |
| 5728 |
\advance\c@pgfplots@no by1 |
| 5729 |
}% |
| 5730 |
\ifnum\c@pgfplots@col=0 |
| 5731 |
\else |
| 5732 |
\advance\c@pgfplots@row by1 |
| 5733 |
\fi |
| 5734 |
\ifnum\c@pgfplots@row<\c@pgfplots@row@end |
| 5735 |
\edef\c@pgfplots@row@end{\the\c@pgfplots@row}% |
| 5736 |
\fi |
| 5737 |
\ifnum\c@pgfplots@no<\c@pgfplots@no@leg |
| 5738 |
\edef\c@pgfplots@no@leg{\the\c@pgfplots@no}% |
| 5739 |
\fi |
| 5740 |
% |
| 5741 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5742 |
\c@pgfplots@col=0 |
| 5743 |
\global\pgfplotslistnewempty\pgfplots@legend% |
| 5744 |
\global\pgfplotslistnewempty\pgfplots@plotspeclist% |
| 5745 |
\pgfplotsloop{% |
| 5746 |
\ifnum\pgfplots@legend@columns=\c@pgfplots@col |
| 5747 |
\pgfplotsloopcontinuefalse |
| 5748 |
\else |
| 5749 |
\pgfplotsloopcontinuetrue |
| 5750 |
\fi |
| 5751 |
}{% |
| 5752 |
\c@pgfplots@row=0 |
| 5753 |
\pgfplotsloop{% |
| 5754 |
\ifnum\c@pgfplots@row@end=\c@pgfplots@row |
| 5755 |
\pgfplotsloopcontinuefalse |
| 5756 |
\else |
| 5757 |
\pgfplotsloopcontinuetrue |
| 5758 |
\fi |
| 5759 |
}{% |
| 5760 |
\pgfutil@ifundefined{m@pgfplots@\the\c@pgfplots@row,\the\c@pgfplots@col}{% |
| 5761 |
}{% |
| 5762 |
\pgfutil@ifundefined{m@pgfplots@img@\the\c@pgfplots@row,\the\c@pgfplots@col}{% |
| 5763 |
}{% |
| 5764 |
\expandafter\let\expandafter\pgfplots@legendtmp\csname m@pgfplots@\the\c@pgfplots@row,\the\c@pgfplots@col\endcsname |
| 5765 |
\expandafter\pgfplotslistpushbackglobal\expandafter{\pgfplots@legendtmp}\to\pgfplots@legend% |
| 5766 |
% |
| 5767 |
\expandafter\let\expandafter\pgfplots@legendtmp\csname m@pgfplots@img@\the\c@pgfplots@row,\the\c@pgfplots@col\endcsname |
| 5768 |
\expandafter\pgfplotslistpushbackglobal\expandafter{\pgfplots@legendtmp}\to\pgfplots@plotspeclist% |
| 5769 |
}% |
| 5770 |
}% |
| 5771 |
\advance\c@pgfplots@row by1 |
| 5772 |
}% |
| 5773 |
\advance\c@pgfplots@col by1 |
| 5774 |
}% |
| 5775 |
}% |
| 5776 |
|
| 5777 |
|
| 5778 |
\def\pgfplots@addlegendentryexpanded{% |
| 5779 |
\pgfutil@ifnextchar[{% |
| 5780 |
\pgfplots@addlegendentryexpanded@opts |
| 5781 |
}{% |
| 5782 |
\pgfplots@addlegendentryexpanded@opts[]% |
| 5783 |
}% |
| 5784 |
} |
| 5785 |
\long\def\pgfplots@addlegendentryexpanded@opts[#1]#2{% |
| 5786 |
\begingroup |
| 5787 |
\let\protect=\noexpand |
| 5788 |
\long\edef\pgfplots@loc@TMPa{#2}% |
| 5789 |
\def\pgfplots@loc@TMPb{\pgfplots@addlegendentry@opts[#1]}% |
| 5790 |
\expandafter\pgfplots@loc@TMPb\expandafter{\pgfplots@loc@TMPa}% |
| 5791 |
\endgroup |
| 5792 |
}% |
| 5793 |
|
| 5794 |
\def\pgfplots@addlegendimage{\pgfutil@ifnextchar[{\pgfplots@addlegendimage@opt}{\pgfplots@addlegendimage@opt[]}}% |
| 5795 |
\def\pgfplots@addlegendimage@opt[#1]#2{% |
| 5796 |
\pgfplots@rememberplotspec[#1]{/pgfplots/every axis plot,#2,/pgfplots/.cd,/pgfplots/every axis plot post}% |
| 5797 |
}% |
| 5798 |
|
| 5799 |
% This implements \addlegendentry |
| 5800 |
\def\pgfplots@addlegendentry{% |
| 5801 |
\pgfutil@ifnextchar[{% |
| 5802 |
\pgfplots@addlegendentry@opts |
| 5803 |
}{% |
| 5804 |
\pgfplots@addlegendentry@opts[]% |
| 5805 |
}% |
| 5806 |
} |
| 5807 |
\long\def\pgfplots@addlegendentry@opts[#1]#2{% |
| 5808 |
\pgfplotslistpushbackglobal[#1]#2\to\pgfplots@legend |
| 5809 |
} |
| 5810 |
|
| 5811 |
\def\pgfplots@pop@next@legend{{% |
| 5812 |
\globaldefs=1 |
| 5813 |
\pgfplotslistcheckempty\pgfplots@plotspeclist |
| 5814 |
\ifpgfplotslistempty |
| 5815 |
\let\pgfplots@curplotlist=\relax |
| 5816 |
\else |
| 5817 |
\pgfplotslistpopfront\pgfplots@plotspeclist\to\pgfplots@curplotlist |
| 5818 |
\pgfplotslistcheckempty\pgfplots@legend |
| 5819 |
\ifpgfplotslistempty |
| 5820 |
\let\pgfplots@curlegend=\pgfutil@empty |
| 5821 |
\else |
| 5822 |
\pgfplotslistpopfront\pgfplots@legend\to\pgfplots@curlegend |
| 5823 |
\fi |
| 5824 |
\fi |
| 5825 |
% |
| 5826 |
}} |
| 5827 |
|
| 5828 |
\def\pgfplots@try@mirror@plot@handler{% |
| 5829 |
\pgfplots@getcurrent@plothandler\pgfplots@basiclevel@plothandler |
| 5830 |
% this method assigns '\tikz@plot@handler'. |
| 5831 |
% That's ok and does not introduce incompatibilities. |
| 5832 |
\ifx\pgfplots@basiclevel@plothandler\pgfplothandlerconstantlineto |
| 5833 |
\let\tikz@plot@handler=\pgfplothandlerconstantlinetomarkright |
| 5834 |
\else |
| 5835 |
\ifx\pgfplots@basiclevel@plothandler\pgfplothandlerconstantlinetomarkright |
| 5836 |
\let\tikz@plot@handler=\pgfplothandlerconstantlineto |
| 5837 |
\fi |
| 5838 |
\fi |
| 5839 |
} |
| 5840 |
|
| 5841 |
% #1: DEPRECATED. Unused. |
| 5842 |
% #2: plot style |
| 5843 |
\long\def\pgfplots@show@small@legendplots#1#2{% |
| 5844 |
\begingroup |
| 5845 |
\pgfplots@define@currentplotstyle@as{#1,#2}% |
| 5846 |
\pgfplots@restore@state@before@legend@style |
| 5847 |
\scope[/tikz/current plot style,/pgfplots/every legend image post]% this scoping construction allows plot styles to change 'legend image code'. |
| 5848 |
\pgfkeysvalueof{/pgfplots/legend image code/.@cmd}\pgfeov |
| 5849 |
\endscope |
| 5850 |
\endgroup |
| 5851 |
%\pgfkeysvalueof{/pgfplots/legend image code/.@cmd}{/pgfplots/.cd,#1,#2}\pgfeov |
| 5852 |
} |
| 5853 |
|
| 5854 |
% A work-around method to undo the 'every axis legend' style. |
| 5855 |
% |
| 5856 |
% It is called within legend's cell pictures in order to undo global |
| 5857 |
% settings like stroke colors or the-like. |
| 5858 |
\def\pgfplots@restore@state@before@legend@style{% |
| 5859 |
\pgfsetfillcolor{black}% |
| 5860 |
% disable the transformations of pgfplots. This is only used by |
| 5861 |
% pgfplots-specific plot handlers which work only if used inside |
| 5862 |
% of an axis... disable it. |
| 5863 |
\def\pgfplotsaxisvisphasetransformcoordinate##1##2##3{}% |
| 5864 |
}% |
| 5865 |
|
| 5866 |
\def\pgfplots@split@opts{% |
| 5867 |
\pgfutil@ifnextchar[{% |
| 5868 |
\pgfplots@split@opts@opts |
| 5869 |
}{% |
| 5870 |
\pgfplots@split@opts@opts[]% |
| 5871 |
}% |
| 5872 |
} |
| 5873 |
\long\def\pgfplots@split@opts@opts[#1]#2\pgfplots@result@to#3#4{% |
| 5874 |
\long\def#3{#2}% |
| 5875 |
\long\def#4{#1}% |
| 5876 |
} |
| 5877 |
|
| 5878 |
% Typesets a legend node. |
| 5879 |
% |
| 5880 |
% It will either typeset a previously computed legend (which needs to be |
| 5881 |
% stored in the macro \pgfplots@already@computed@legend@node) |
| 5882 |
% |
| 5883 |
% or it creates a legend, stores the commands into the macro named |
| 5884 |
% above and typesets it. |
| 5885 |
\def\pgfplots@createlegend{% |
| 5886 |
\pgfkeysgetvalue{/pgfplots/legend to name}\pgfplots@createlegend@toname |
| 5887 |
\ifx\pgfplots@already@computed@legend@node\pgfutil@empty |
| 5888 |
\pgfplotslistcheckempty\pgfplots@legend |
| 5889 |
\ifpgfplotslistempty |
| 5890 |
% No legend commands appeared in the document. So, |
| 5891 |
% consider the key: |
| 5892 |
\pgfkeysgetvalue{/pgfplots/legend entries}\pgfplots@legend |
| 5893 |
\expandafter\pgfplots@assign@list\expandafter\pgfplots@legend\expandafter{\pgfplots@legend}% |
| 5894 |
\pgfplotslistcheckempty\pgfplots@legend |
| 5895 |
\fi |
| 5896 |
%\message{Legend: \meaning\pgfplots@legend^^J}% |
| 5897 |
\ifpgfplotslistempty |
| 5898 |
\else |
| 5899 |
\ifpgfplots@reverse@legend |
| 5900 |
\pgfplots@reverselegend |
| 5901 |
\fi |
| 5902 |
\ifpgfplots@transpose@legend |
| 5903 |
\pgfplots@transposelegend |
| 5904 |
\fi |
| 5905 |
% |
| 5906 |
% |
| 5907 |
\begingroup |
| 5908 |
\ifx\pgfplots@createlegend@toname\pgfutil@empty |
| 5909 |
% ok, draw legend. |
| 5910 |
\def\pgfplots@createlegend@prepareimage@to##1{% |
| 5911 |
\t@pgfplots@tokc=\expandafter{\pgfplots@curplotlist}% |
| 5912 |
\edef##1{\noexpand\pgfplots@show@small@legendplots{}{\the\t@pgfplots@tokc}}% |
| 5913 |
}% |
| 5914 |
\else |
| 5915 |
% export legend instead of drawing it. |
| 5916 |
\def\pgfplots@createlegend@prepareimage@to##1{% |
| 5917 |
\t@pgfplots@tokc=\expandafter{\pgfplots@curplotlist}% |
| 5918 |
\edef\pgfplots@loc@TMPa{\noexpand\pgfplots@export@legend@image@to@macro{\the\t@pgfplots@tokc}{}}% |
| 5919 |
\pgfplots@loc@TMPa |
| 5920 |
\let##1=\pgfplotsretval |
| 5921 |
}% |
| 5922 |
\fi |
| 5923 |
% assemble a |
| 5924 |
% \matrix { |
| 5925 |
% small plot & legend1\\ |
| 5926 |
% small plot & legend2\\ |
| 5927 |
% ... |
| 5928 |
% }; |
| 5929 |
% command [and using the 'legend columns' option] |
| 5930 |
% |
| 5931 |
% \t@pgfplots@toka={ |
| 5932 |
% small plot & legend1\\ |
| 5933 |
% small plot & legend2\\ |
| 5934 |
% ... |
| 5935 |
% } |
| 5936 |
% ( I have allocated the token registers in my |
| 5937 |
% liststructure.sty) |
| 5938 |
% |
| 5939 |
% \global\def\pgfplots@glob@TMPa{ |
| 5940 |
% \matrix { |
| 5941 |
% \TOKL@TA |
| 5942 |
% }; |
| 5943 |
% } |
| 5944 |
% -> finally, \pgfplots@glob@TMPa will contain the complete command. |
| 5945 |
\t@pgfplots@toka={}% |
| 5946 |
\let\curcolumnNum=\c@pgf@counta |
| 5947 |
\let\maxcolumnCount=\c@pgf@countb |
| 5948 |
\let\legendplotpos=\c@pgf@countc |
| 5949 |
\legendplotpos\expandafter=\pgfplots@legend@plot@pos |
| 5950 |
\curcolumnNum=0 |
| 5951 |
\maxcolumnCount=\pgfplots@legend@columns\relax |
| 5952 |
% |
| 5953 |
\pgfplotsloop{% |
| 5954 |
\pgfplots@pop@next@legend |
| 5955 |
\ifpgfplotslistempty |
| 5956 |
\pgfplotsloopcontinuefalse |
| 5957 |
\else |
| 5958 |
\pgfplotsloopcontinuetrue |
| 5959 |
\fi |
| 5960 |
}{% |
| 5961 |
\ifx\pgfplots@curlegend\pgfutil@empty |
| 5962 |
\else |
| 5963 |
\advance\curcolumnNum by1 |
| 5964 |
\begingroup |
| 5965 |
% \pgfplots@curlegend@opts are any options for |
| 5966 |
% this single legend text, provided as |
| 5967 |
% \addlegendentry[<options>]{<text>} |
| 5968 |
% or |
| 5969 |
% legend entries={...,[<options>]<text>, ....} |
| 5970 |
\expandafter\pgfplots@split@opts\pgfplots@curlegend\pgfplots@result@to{\pgfplots@curlegend}{\pgfplots@curlegend@opts}% |
| 5971 |
\pgfplots@createlegend@prepareimage@to{\pgfplotsretval}% |
| 5972 |
% |
| 5973 |
\t@pgfplots@tokb=\expandafter{\pgfplots@curlegend@opts}% |
| 5974 |
\t@pgfplots@tokc=\expandafter{\pgfplots@curlegend}% |
| 5975 |
% |
| 5976 |
% prepare the \node[<options>] {<text>} into \t@pgfplots@tokc |
| 5977 |
\edef\pgfplots@loc@TMPa{\noexpand\node[\the\t@pgfplots@tokb]{\the\t@pgfplots@tokc};}% |
| 5978 |
\t@pgfplots@tokc=\expandafter{\pgfplots@loc@TMPa}% |
| 5979 |
% |
| 5980 |
% and the legend image into \t@pgfplots@tokb: |
| 5981 |
\t@pgfplots@tokb=\expandafter{\pgfplotsretval}% |
| 5982 |
% ok. Now, the |
| 5983 |
% - 'b' register contains the IMAGE and |
| 5984 |
% - 'c' register contains the TEXT |
| 5985 |
\ifcase\legendplotpos |
| 5986 |
% legend plot pos=left |
| 5987 |
\edef\pgfplots@matrixentry{% |
| 5988 |
\the\t@pgfplots@tokb |
| 5989 |
\noexpand\pgfmatrixnextcell |
| 5990 |
\the\t@pgfplots@tokc% |
| 5991 |
}% |
| 5992 |
\or |
| 5993 |
% legend plot pos=right |
| 5994 |
\edef\pgfplots@matrixentry{% |
| 5995 |
\the\t@pgfplots@tokc% |
| 5996 |
\noexpand\pgfmatrixnextcell |
| 5997 |
\the\t@pgfplots@tokb |
| 5998 |
}% |
| 5999 |
\or |
| 6000 |
% legend plot pos=none |
| 6001 |
\edef\pgfplots@matrixentry{% |
| 6002 |
\the\t@pgfplots@tokc% |
| 6003 |
}% |
| 6004 |
\fi |
| 6005 |
% copy it back to 'b' register: |
| 6006 |
\t@pgfplots@tokb=\expandafter{\pgfplots@matrixentry}% |
| 6007 |
% |
| 6008 |
\ifnum\curcolumnNum=\maxcolumnCount |
| 6009 |
\t@pgfplots@tokb=\expandafter{\the\t@pgfplots@tokb\\}% |
| 6010 |
\else |
| 6011 |
\pgfplotslistcheckempty\pgfplots@legend |
| 6012 |
\ifpgfplotslistempty |
| 6013 |
\else |
| 6014 |
\pgfplotslistcheckempty\pgfplots@plotspeclist |
| 6015 |
\fi |
| 6016 |
\ifpgfplotslistempty |
| 6017 |
% Ok, either the legend list is empty or |
| 6018 |
% there are no more plot specifications. |
| 6019 |
% |
| 6020 |
% Finalize matrix: |
| 6021 |
\t@pgfplots@tokb=\expandafter{\the\t@pgfplots@tokb\\}% |
| 6022 |
\else |
| 6023 |
\t@pgfplots@tokb=\expandafter{\the\t@pgfplots@tokb\pgfmatrixnextcell}% |
| 6024 |
\fi |
| 6025 |
\fi |
| 6026 |
\xdef\pgfplots@glob@TMPa{% |
| 6027 |
\the\t@pgfplots@toka |
| 6028 |
\the\t@pgfplots@tokb |
| 6029 |
}% |
| 6030 |
\endgroup |
| 6031 |
\ifnum\curcolumnNum=\maxcolumnCount |
| 6032 |
\curcolumnNum=0 |
| 6033 |
\fi |
| 6034 |
\expandafter\t@pgfplots@toka\expandafter{\pgfplots@glob@TMPa}% |
| 6035 |
\fi |
| 6036 |
}% |
| 6037 |
\t@pgfplots@tokb={\matrix[/pgfplots/every axis legend]}% |
| 6038 |
\xdef\pgfplots@glob@TMPa{% |
| 6039 |
\noexpand\def\noexpand\plotnum{0}% |
| 6040 |
\noexpand\def\noexpand\plotnumofactualtype{0}% |
| 6041 |
\the\t@pgfplots@tokb {% |
| 6042 |
\the\t@pgfplots@toka |
| 6043 |
};% |
| 6044 |
}% |
| 6045 |
\endgroup |
| 6046 |
\let\pgfplots@already@computed@legend@node=\pgfplots@glob@TMPa |
| 6047 |
\fi |
| 6048 |
\fi |
| 6049 |
\ifx\pgfplots@createlegend@toname\pgfutil@empty |
| 6050 |
% DRAW: |
| 6051 |
\pgfplotsgetlayerforstyle{every axis legend}% |
| 6052 |
\pgfplotsonlayer\pgfplotsretval{legend style}% |
| 6053 |
\pgfplots@already@computed@legend@node |
| 6054 |
\endpgfplotsonlayer |
| 6055 |
\else |
| 6056 |
% apply the 'legend to name' feature: |
| 6057 |
% |
| 6058 |
% store legend contents: |
| 6059 |
% |
| 6060 |
\t@pgfplots@toka=\expandafter{\pgfplots@already@computed@legend@node}% |
| 6061 |
\pgfkeysgetvalue{/pgfplots/every axis legend/.@cmd}\pgfplots@loc@TMPa |
| 6062 |
\t@pgfplots@tokb=\expandafter{\pgfplots@loc@TMPa\pgfeov}% |
| 6063 |
% |
| 6064 |
\pgfplots@assemble@ref@picture |
| 6065 |
{\pgfplots@legend@to@name} |
| 6066 |
{\tikz[/pgfplots/every legend to name picture/.try]{\pgfplots@legend@to@name}}% |
| 6067 |
\t@pgfplots@tokc=\expandafter{\pgfplotsretval}% |
| 6068 |
% |
| 6069 |
\begingroup |
| 6070 |
\pgfkeysgetvalue{/pgfplots/every legend image post/.@cmd}\pgfplots@loc@TMPa |
| 6071 |
% steal \toks0 temporarily. Within this group, it won't be |
| 6072 |
% used by any LaTeX code: |
| 6073 |
\toks0=\expandafter{\pgfplots@loc@TMPa\pgfeov}% |
| 6074 |
% |
| 6075 |
\expandafter\xdef\csname pgfplots@legend@to@name@\pgfplots@createlegend@toname\endcsname{% |
| 6076 |
\noexpand\begingroup |
| 6077 |
\noexpand\def\noexpand\pgfplots@legend@to@name{% |
| 6078 |
\noexpand\pgfkeysdef{/pgfplots/every axis legend}{\the\t@pgfplots@tokb}% |
| 6079 |
\noexpand\pgfkeysdef{/pgfplots/every legend image post}{\the\toks0 }% |
| 6080 |
\noexpand\def\noexpand\numplots{\numplots}% |
| 6081 |
\the\t@pgfplots@toka |
| 6082 |
}% |
| 6083 |
\the\t@pgfplots@tokc |
| 6084 |
\noexpand\endgroup |
| 6085 |
}% |
| 6086 |
\endgroup |
| 6087 |
\t@pgfplots@toka=\expandafter\expandafter\expandafter{\csname pgfplots@legend@to@name@\pgfplots@createlegend@toname\endcsname}% |
| 6088 |
\pgfplots@auxwrite{% |
| 6089 |
\noexpand\expandafter |
| 6090 |
\noexpand\gdef |
| 6091 |
\noexpand\csname pgfplots@legend@to@name@\pgfplots@createlegend@toname\noexpand\endcsname% |
| 6092 |
{\the\t@pgfplots@toka}% |
| 6093 |
}% |
| 6094 |
\begingroup |
| 6095 |
% |
| 6096 |
% make sure \ref{<legendname>} works: |
| 6097 |
\pgfplots@label{\pgfplots@createlegend@toname}{pgfplots@legend@to@name@}% |
| 6098 |
\endgroup |
| 6099 |
\fi |
| 6100 |
} |
| 6101 |
|
| 6102 |
\pgfutil@IfUndefined{AtBeginDocument}{}{% |
| 6103 |
\AtBeginDocument{% |
| 6104 |
\let\pgfplots@original@LaTeX@label@loadtime=\label |
| 6105 |
}% |
| 6106 |
} |
| 6107 |
|
| 6108 |
% Defines a new \label{#1}. When \ref{#1} is used, the code |
| 6109 |
% \csname #3#2\endcsname |
| 6110 |
% will be invoked. |
| 6111 |
% \pgfplots@label[<optional prefix>]{<label name>}{<command prefix>} |
| 6112 |
% invokes |
| 6113 |
% \label<optional prefix>{<label name>} |
| 6114 |
\def\pgfplots@label{\pgfutil@ifnextchar[{\pgfplots@label@@}{\pgfplots@label@@[]}}% |
| 6115 |
\def\pgfplots@label@@[#1]#2#3{% |
| 6116 |
\begingroup |
| 6117 |
\edef\@currentlabel{% |
| 6118 |
\string\expandafter |
| 6119 |
\string\protect |
| 6120 |
\string\csname\space #3#2\string\endcsname |
| 6121 |
}% |
| 6122 |
\pgfutil@IfUndefined{hyper@makecurrent}{}{% |
| 6123 |
\hyper@makecurrent{pgfplotslink}% |
| 6124 |
\hyper@anchorstart{\@currentHref}{}\hyper@anchorend |
| 6125 |
\pgfplotsutil@advancestringcounter@global\c@pgfplots@label |
| 6126 |
}% |
| 6127 |
% |
| 6128 |
\pgfplots@label@configure@package@workarounds |
| 6129 |
% |
| 6130 |
\pgfutil@IfUndefined{label}{% |
| 6131 |
}{% |
| 6132 |
\def\pgfplots@loc@TMPa{\label #1}% |
| 6133 |
\expandafter\pgfplots@loc@TMPa\expandafter{#2}% the \expandafter is a convenience method; the name should be expandable anyway |
| 6134 |
}% |
| 6135 |
\endgroup |
| 6136 |
}% |
| 6137 |
\gdef\c@pgfplots@label{0}% |
| 6138 |
\def\theHpgfplotslink{\theHsection.\c@pgfplots@label}% |
| 6139 |
|
| 6140 |
\def\pgfplots@label@configure@package@workarounds{% |
| 6141 |
% this is a work-around to support the memoir class (it overwrites |
| 6142 |
% \label in sub |
| 6143 |
\let\sf@@memsub@label=\pgfplots@original@LaTeX@label@loadtime |
| 6144 |
% |
| 6145 |
\ifx\label\mcaption@label |
| 6146 |
% this is a work-around to support the mcaption class: it |
| 6147 |
% simply remembers the label name and invokes \label later-on. |
| 6148 |
% This appears to be wrong in this context: I want to generate |
| 6149 |
% a pgfplots label. |
| 6150 |
% |
| 6151 |
% If someone writes \label{fig:one}, that label will be |
| 6152 |
% redeclared in the margin - which appears to be correct. And |
| 6153 |
% that will still work. |
| 6154 |
% |
| 6155 |
% This here will activate pgfplots' labels: |
| 6156 |
\let\label=\pgfplots@original@LaTeX@label@loadtime |
| 6157 |
\fi |
| 6158 |
} |
| 6159 |
|
| 6160 |
% this is deprecated. Use \ref{#1} instead. |
| 6161 |
\def\pgfplotslegendfromname#1{% |
| 6162 |
\pgfplots@texdist@protect\pgfplotslegendfromname@{#1}% |
| 6163 |
}% |
| 6164 |
\def\pgfplotslegendfromname@#1{% |
| 6165 |
\pgfutil@IfUndefined{pgfplots@legend@to@name@#1}{% |
| 6166 |
\pgfutil@IfUndefined{ref}{% |
| 6167 |
\pgfplotswarning{no such legend to name}{#1}\pgfeov |
| 6168 |
\string\pgfplotslegendfromname{#1}: ??% |
| 6169 |
}{% |
| 6170 |
\ref{\string\pgfplotslegendfromname{#1}}% |
| 6171 |
}% |
| 6172 |
}{% |
| 6173 |
\csname pgfplots@legend@to@name@#1\endcsname |
| 6174 |
}% |
| 6175 |
}% |
| 6176 |
% this is deprecated. Use \ref{#1} instead. |
| 6177 |
\def\pgfplotscolorbarfromname#1{% |
| 6178 |
\pgfplots@texdist@protect\pgfplotscolorbarfromname@{#1}% |
| 6179 |
}% |
| 6180 |
\def\pgfplotscolorbarfromname@#1{% |
| 6181 |
\pgfutil@IfUndefined{pgfplots@colorbar@to@name@#1}{% |
| 6182 |
\pgfutil@IfUndefined{ref}{% |
| 6183 |
\pgfplotswarning{no such colorbar to name}{#1}\pgfeov |
| 6184 |
\string\pgfplotscolorbarfromname{#1}: ??% |
| 6185 |
}{% |
| 6186 |
\ref{\string\pgfplotscolorbarfromname{#1}}% |
| 6187 |
}% |
| 6188 |
}{% |
| 6189 |
\csname pgfplots@colorbar@to@name@#1\endcsname |
| 6190 |
}% |
| 6191 |
}% |
| 6192 |
|
| 6193 |
\def\pgfplotsplotfromname#1{% |
| 6194 |
\pgfplots@texdist@protect\pgfplotsplotfromname@{#1}% |
| 6195 |
}% |
| 6196 |
\def\pgfplotsplotfromname@#1{% |
| 6197 |
\pgfutil@IfUndefined{pgfplots@show@ref@#1}{% |
| 6198 |
\pgfutil@IfUndefined{ref}{% |
| 6199 |
\pgfplotswarning{no such addplot label}{#1}\pgfeov |
| 6200 |
\string\pgfplotsplotfromname{#1}: ??% |
| 6201 |
}{% |
| 6202 |
\ref{\string\pgfplotsplotfromname{#1}}% |
| 6203 |
}% |
| 6204 |
}{% |
| 6205 |
\csname pgfplots@show@ref@#1\endcsname |
| 6206 |
}% |
| 6207 |
}% |
| 6208 |
|
| 6209 |
\def\pgfplots@ifintikzpicture#1#2{% |
| 6210 |
\ifpgfpicture #1\else #2\fi |
| 6211 |
}% |
| 6212 |
|
| 6213 |
% DEPRECATED. |
| 6214 |
\def\skipsuffixzero#1.#2|{ |
| 6215 |
{% |
| 6216 |
\def\pgfplots@loc@TMPa{#2}% |
| 6217 |
\def\pgfplots@loc@TMPb{0}% |
| 6218 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 6219 |
\global\def\pgfmathresult{#1}% |
| 6220 |
\else |
| 6221 |
\global\def\pgfmathresult{#1.#2}% |
| 6222 |
\fi |
| 6223 |
}% |
| 6224 |
} |
| 6225 |
|
| 6226 |
\def\pgfmathlogtologten#1{% |
| 6227 |
\pgfmathparse{#1}% |
| 6228 |
\expandafter\pgfmathlogtologten@\expandafter{\pgfmathresult}% |
| 6229 |
} |
| 6230 |
|
| 6231 |
% Simply divides #1 by log(10). |
| 6232 |
% ATTENTION: in order to implement per-axis log basis, this will be |
| 6233 |
% OVERWRITTEN in pgfplotsticks.code.tex ! |
| 6234 |
\def\pgfmathlogtologten@#1{% |
| 6235 |
\pgfmathmultiply@{#1}\reciproclogten% |
| 6236 |
}% |
| 6237 |
|
| 6238 |
% DEPRECATED. |
| 6239 |
\def\logtologtentomacro#1#2{% |
| 6240 |
\pgfmathlogtologten@{#1}% |
| 6241 |
\expandafter\skipsuffixzero\pgfmathresult|% |
| 6242 |
\let#2=\pgfmathresult |
| 6243 |
} |
| 6244 |
|
| 6245 |
% DEPRECATED. |
| 6246 |
\def\logtologten#1{% |
| 6247 |
\pgfmathlogtologten@{#1}% |
| 6248 |
\expandafter\skipsuffixzero\pgfmathresult|% |
| 6249 |
\pgfmathresult |
| 6250 |
} |
| 6251 |
|
| 6252 |
\pgfkeysdef{/pgfplots/@enlargelimits/true}{% |
| 6253 |
\def\bool@pgfplots@loc@enlargelimits@min{1}% |
| 6254 |
\def\bool@pgfplots@loc@enlargelimits@max{1}% |
| 6255 |
}% |
| 6256 |
\pgfkeysdef{/pgfplots/@enlargelimits/false}{% |
| 6257 |
\def\bool@pgfplots@loc@enlargelimits@min{0}% |
| 6258 |
\def\bool@pgfplots@loc@enlargelimits@max{0}% |
| 6259 |
}% |
| 6260 |
\pgfkeysdef{/pgfplots/@enlargelimits/upper}{% |
| 6261 |
\def\bool@pgfplots@loc@enlargelimits@min{0}% |
| 6262 |
\def\bool@pgfplots@loc@enlargelimits@max{1}% |
| 6263 |
}% |
| 6264 |
\pgfkeysdef{/pgfplots/@enlargelimits/lower}{% |
| 6265 |
\def\bool@pgfplots@loc@enlargelimits@min{1}% |
| 6266 |
\def\bool@pgfplots@loc@enlargelimits@max{0}% |
| 6267 |
}% |
| 6268 |
\pgfkeysdef{/pgfplots/@enlargelimits/auto}{% |
| 6269 |
\def\bool@pgfplots@loc@enlargelimits@min{0}% |
| 6270 |
\def\bool@pgfplots@loc@enlargelimits@max{0}% |
| 6271 |
\def\pgfplots@loc@TMPa{0}% |
| 6272 |
\ifpgfplots@threedim |
| 6273 |
\if\pgfplots@enlargelimits@curaxis z% |
| 6274 |
\def\pgfplots@loc@TMPa{1}% |
| 6275 |
\fi |
| 6276 |
\else |
| 6277 |
\def\pgfplots@loc@TMPa{1}% |
| 6278 |
\fi |
| 6279 |
\if1\pgfplots@loc@TMPa |
| 6280 |
\pgfplots@if{pgfplots@autocompute@\pgfplots@enlargelimits@curaxis min}{% |
| 6281 |
\def\bool@pgfplots@loc@enlargelimits@min{1}% |
| 6282 |
}{}% |
| 6283 |
\pgfplots@if{pgfplots@autocompute@\pgfplots@enlargelimits@curaxis max}{% |
| 6284 |
\def\bool@pgfplots@loc@enlargelimits@max{1}% |
| 6285 |
}{}% |
| 6286 |
\fi |
| 6287 |
}% |
| 6288 |
|
| 6289 |
\def\pgfplots@enlargelimits@rel@unitserror#1{% |
| 6290 |
\pgfplots@error{enlarge limits only supports values with units for 'abs=#1' and/or 'abs value=#1'. Ignoring unit}% |
| 6291 |
}% |
| 6292 |
\pgfkeysdef{/pgfplots/@enlargelimits/value}{% |
| 6293 |
\pgfmathparse{#1}% |
| 6294 |
\ifpgfmathunitsdeclared |
| 6295 |
\pgfplots@enlargelimits@rel@unitserror{#1}% |
| 6296 |
\fi |
| 6297 |
\let\pgfplots@enlargelimits@relthresh=\pgfmathresult |
| 6298 |
\let\pgfplots@enlargelimits@absthresh=\pgfutil@empty |
| 6299 |
}% |
| 6300 |
\pgfkeysdef{/pgfplots/@enlargelimits/rel}{\pgfkeysalso{true,value={#1}}}% |
| 6301 |
\pgfkeysdef{/pgfplots/@enlargelimits/abs value}{% |
| 6302 |
\begingroup |
| 6303 |
\ifpgfplots@usefpu |
| 6304 |
\pgfkeys{/pgf/fpu,/pgf/fpu/output format=fixed}% |
| 6305 |
\fi |
| 6306 |
\pgfmathparse{#1}% |
| 6307 |
\xdef\pgfplots@glob@TMPa{% |
| 6308 |
\ifpgfmathunitsdeclared |
| 6309 |
\noexpand\pgfmathunitsdeclaredtrue |
| 6310 |
\else |
| 6311 |
\noexpand\pgfmathunitsdeclaredfalse |
| 6312 |
\fi |
| 6313 |
\noexpand\def\noexpand\pgfmathresult{\pgfmathresult}% |
| 6314 |
}% |
| 6315 |
\endgroup |
| 6316 |
\pgfplots@glob@TMPa |
| 6317 |
\ifpgfmathunitsdeclared |
| 6318 |
\edef\pgfplots@enlargelimits@absdimension{\pgfmathresult pt}% |
| 6319 |
\let\pgfplots@enlargelimits@absthresh=\pgfutil@empty |
| 6320 |
\else |
| 6321 |
\let\pgfplots@enlargelimits@absdimension=\pgfutil@empty |
| 6322 |
\csname pgfplotstransformdirection\pgfplots@enlargelimits@curaxis\endcsname{\pgfmathresult}% |
| 6323 |
\let\pgfplots@enlargelimits@absthresh=\pgfmathresult |
| 6324 |
\fi |
| 6325 |
\let\pgfplots@enlargelimits@relthresh=\pgfutil@empty |
| 6326 |
}% |
| 6327 |
\pgfkeysdef{/pgfplots/@enlargelimits/abs}{\pgfkeysalso{true,abs value={#1}}}% |
| 6328 |
\pgfkeysdef{/pgfplots/@enlargelimits/.unknown}{\pgfkeysalso{true,value={\pgfkeyscurrentname}}}% |
| 6329 |
|
| 6330 |
\def\pgfplots@enlarge@limit@ifconfigured#1{% |
| 6331 |
\begingroup |
| 6332 |
% ATTENTION: this uses similar access patterns as |
| 6333 |
% \pgfplots@enlarge@limit@by@dimension |
| 6334 |
\def\bool@pgfplots@loc@enlargelimits@min{0}% |
| 6335 |
\def\bool@pgfplots@loc@enlargelimits@max{0}% |
| 6336 |
% |
| 6337 |
% we can either enlarge |
| 6338 |
% ... using a relative limit (like 0.1 -> 10%) |
| 6339 |
\def\pgfplots@enlargelimits@relthresh{0.1}% the default |
| 6340 |
% ...or an absolute limit ( like 4 units) |
| 6341 |
\let\pgfplots@enlargelimits@absthresh=\pgfutil@empty |
| 6342 |
% or an absolute dimension (like 1cm). |
| 6343 |
% |
| 6344 |
% Relative and absolute values are relatively simple: we only need to compute and |
| 6345 |
% add the changes to the already existing limits. The value with |
| 6346 |
% an absolute dimension is surprisingly complicated. |
| 6347 |
% |
| 6348 |
% The problem is: enlargelimits has to be computed before the |
| 6349 |
% image has been scaled into its final size. This is not merely a |
| 6350 |
% technical problem; this is how one wants it to be! |
| 6351 |
% |
| 6352 |
% The solution taken here is to communicate such an absolute |
| 6353 |
% dimension to the scaling routines. The scaling routines will |
| 6354 |
% handle the case; we don't change limits here. |
| 6355 |
% |
| 6356 |
\let\pgfplots@enlargelimits@absdimension=\pgfutil@empty |
| 6357 |
\def\pgfplots@enlargelimits@curaxis{#1}% |
| 6358 |
% |
| 6359 |
\pgfkeysgetvalue{/pgfplots/enlarge #1 limits}{\pgfplots@loc@TMPa}% |
| 6360 |
\def\pgfplots@loc@TMPb{\pgfqkeys{/pgfplots/@enlargelimits}}% set the argument keys |
| 6361 |
\expandafter\pgfplots@loc@TMPb\expandafter{\pgfplots@loc@TMPa}% |
| 6362 |
% |
| 6363 |
\def\bool@pgfplots@loc@enlargeany{0}% |
| 6364 |
\if1\bool@pgfplots@loc@enlargelimits@min |
| 6365 |
\def\bool@pgfplots@loc@enlargeany{1}% |
| 6366 |
\else |
| 6367 |
\if1\bool@pgfplots@loc@enlargelimits@max |
| 6368 |
\def\bool@pgfplots@loc@enlargeany{1}% |
| 6369 |
\fi |
| 6370 |
\fi |
| 6371 |
\if1\bool@pgfplots@loc@enlargeany |
| 6372 |
\pgfplots@enlarge@limit@for{#1}% |
| 6373 |
\fi |
| 6374 |
\global\let\pgfplots@glob@TMPa=\bool@pgfplots@loc@enlargeany |
| 6375 |
% limits assignments are made globally. |
| 6376 |
\xdef\pgfplots@glob@TMPb{% |
| 6377 |
\noexpand\pgfplots@enlargelimits@remember@abs@dimension{#1}% |
| 6378 |
{\bool@pgfplots@loc@enlargelimits@min}% |
| 6379 |
{\bool@pgfplots@loc@enlargelimits@max}% |
| 6380 |
{\pgfplots@enlargelimits@absdimension}% |
| 6381 |
}% |
| 6382 |
\endgroup |
| 6383 |
\pgfplots@glob@TMPb |
| 6384 |
\if1\pgfplots@glob@TMPa |
| 6385 |
\pgfplots@visphase@notify@changeofcanvaslimits{#1}% |
| 6386 |
\fi |
| 6387 |
} |
| 6388 |
|
| 6389 |
% Reconfigures the scaling routines such that following calls to |
| 6390 |
% \pgfplots@scaleaxes@to@BB@ will enlarge the limit for a specific |
| 6391 |
% axis by an absolute dimension. |
| 6392 |
% |
| 6393 |
% This enlargement is different from standard limit enlargement: |
| 6394 |
% Standard limit enlargement is typically applied (and finished) long |
| 6395 |
% before the scaling routines start. In fact, the result of |
| 6396 |
% enlargelimits is typically the input argument for the scaling |
| 6397 |
% (compare the pgfplots manual (pdf)). |
| 6398 |
% |
| 6399 |
% This here needs a different treatment because "enlarge x limits={abs=1cm}" |
| 6400 |
% has to be applied AFTER the scaling is complete. To this end, it is |
| 6401 |
% applied as the very last scaling step. It is applied after any post |
| 6402 |
% scales, and it only modifies axis limits. |
| 6403 |
% |
| 6404 |
% #1: x,y, or z |
| 6405 |
% #2: 1 if the lower limit shall be enlarged, 0 if not |
| 6406 |
% #3: 1 if the upper limit shall be enlarged, 0 if not |
| 6407 |
% #4: some absolute dimension (like 1cm) by which we want to enlarge |
| 6408 |
% axis limits. |
| 6409 |
\def\pgfplots@enlargelimits@remember@abs@dimension#1#2#3#4{% |
| 6410 |
\expandafter\edef\csname pgfplots@enlargelimits@absdimension@#1\endcsname{#4}% |
| 6411 |
\expandafter\edef\csname pgfplots@enlargelimits@absdimension@#1@minmax\endcsname{{#2}{#3}}% |
| 6412 |
}% |
| 6413 |
\let\pgfplots@enlargelimits@absdimension@x=\pgfutil@empty |
| 6414 |
\let\pgfplots@enlargelimits@absdimension@y=\pgfutil@empty |
| 6415 |
\let\pgfplots@enlargelimits@absdimension@z=\pgfutil@empty |
| 6416 |
|
| 6417 |
% Called as soon as the scaling is completely set up and any |
| 6418 |
% "enlarge #1 limits={abs=1cm}" |
| 6419 |
% enlargements shall be done, i.e. enlargement by unit. |
| 6420 |
% |
| 6421 |
% #1: x,y, or z |
| 6422 |
\def\pgfplots@scaling@apply@enlargelimits@by@dimension#1{% |
| 6423 |
\expandafter\ifx\csname pgfplots@enlargelimits@absdimension@#1\endcsname\pgfutil@empty |
| 6424 |
\else |
| 6425 |
\pgfplotsconvertunittocoordinate{#1}{\csname pgfplots@enlargelimits@absdimension@#1\endcsname}% |
| 6426 |
\edef\pgfplots@loc@TMPa{% |
| 6427 |
\noexpand\pgfplots@enlarge@limit@by@dimension{#1} |
| 6428 |
\csname pgfplots@enlargelimits@absdimension@#1@minmax\endcsname |
| 6429 |
{\pgfmathresult}% |
| 6430 |
}% |
| 6431 |
\pgfplots@loc@TMPa |
| 6432 |
\fi |
| 6433 |
}% |
| 6434 |
|
| 6435 |
|
| 6436 |
% PRECONDITION: |
| 6437 |
% 1. width/height are set |
| 6438 |
% 2. the unit vectors point indicate whether the axis is a standard |
| 6439 |
% box or some skewed plot (their precise direction and magnitude is |
| 6440 |
% irrelevant) |
| 6441 |
% 3. the enlargelimits code has already evaluated the case |
| 6442 |
% "enlargelimits={abs=1cm}" |
| 6443 |
% |
| 6444 |
% POSTCONDITION: |
| 6445 |
% width and/or height might be modified |
| 6446 |
\def\pgfplots@scaling@changewidthheight@for@enlargelimits@by@dimension{% |
| 6447 |
\ifpgfplots@enlargelimits@respect@figure@size |
| 6448 |
% |
| 6449 |
% decide if we need to do anything at all, i.e. if there IS |
| 6450 |
% some option 'enlarge * limits={abs=1cm}' : |
| 6451 |
\pgfplots@loc@tmpfalse |
| 6452 |
\ifx\pgfplots@enlargelimits@absdimension@x\pgfutil@empty |
| 6453 |
\else |
| 6454 |
\pgfplots@loc@tmptrue |
| 6455 |
\fi |
| 6456 |
\ifx\pgfplots@enlargelimits@absdimension@y\pgfutil@empty |
| 6457 |
\else |
| 6458 |
\pgfplots@loc@tmptrue |
| 6459 |
\fi |
| 6460 |
\ifx\pgfplots@enlargelimits@absdimension@z\pgfutil@empty |
| 6461 |
\else |
| 6462 |
\pgfplots@loc@tmptrue |
| 6463 |
\fi |
| 6464 |
% |
| 6465 |
\ifpgfplots@loc@tmp |
| 6466 |
\def\pgfplotsretval{}% |
| 6467 |
% ok. We encountered an option 'enlarge * limits={abs=1cm}' for at least one axis. |
| 6468 |
% and we WANT to keep 'width', 'height'. |
| 6469 |
% |
| 6470 |
% This is not quite trivial because in order to compute |
| 6471 |
% enlarge-by-dimension, we NEED the unit vectors. But the |
| 6472 |
% unit vectors need the limits - a nonlinear problem. |
| 6473 |
% |
| 6474 |
% Since this here is not really a common use-case, I |
| 6475 |
% decided to implement a heuristics which works in most |
| 6476 |
% common cases: for standard 2d axes. It might fail for |
| 6477 |
% skewed axes and it will probably fail for 3d axes. |
| 6478 |
% |
| 6479 |
% My idea is to change width and/or height BEFORE the unit |
| 6480 |
% vectors have been computed. |
| 6481 |
% |
| 6482 |
% First: check if we HAVE a standard 2d axis. |
| 6483 |
\pgfplots@loc@tmpfalse |
| 6484 |
\ifpgfplots@threedim |
| 6485 |
\else |
| 6486 |
\ifdim\pgf@xx=0sp % |
| 6487 |
\else |
| 6488 |
\ifdim\pgf@xy=0sp % |
| 6489 |
\ifdim\pgf@yx=0sp % |
| 6490 |
\ifdim\pgf@yy=0sp % |
| 6491 |
\else |
| 6492 |
\pgfplots@loc@tmptrue |
| 6493 |
\fi |
| 6494 |
\fi |
| 6495 |
\fi |
| 6496 |
\fi |
| 6497 |
\fi |
| 6498 |
% |
| 6499 |
\ifpgfplots@loc@tmp |
| 6500 |
\def\pgfplots@loc@TMPc{{1}{1}}% |
| 6501 |
% |
| 6502 |
% ah - we really *have* a standard boxed axis. |
| 6503 |
% Compute |
| 6504 |
% newwidth = width - enlargevalue |
| 6505 |
% newheight = height - enlargevalue |
| 6506 |
% |
| 6507 |
% newwidth will be stored in \pgfplots@loc@TMPa |
| 6508 |
% and newheight in \pgfplots@loc@TMPb |
| 6509 |
\ifx\pgfplots@enlargelimits@absdimension@x\pgfutil@empty |
| 6510 |
\let\pgfplots@loc@TMPa=\pgfplots@width |
| 6511 |
\else |
| 6512 |
\ifx\pgfplots@enlargelimits@absdimension@x@minmax\pgfplots@loc@TMPc |
| 6513 |
\def\pgfmathresult{2}% |
| 6514 |
\else |
| 6515 |
\def\pgfmathresult{1}% |
| 6516 |
\fi |
| 6517 |
\pgfmathparse{\pgfplots@width - \pgfmathresult * \pgfplots@enlargelimits@absdimension@x}% |
| 6518 |
\edef\pgfplots@loc@TMPa{\pgfmathresult pt}% |
| 6519 |
\fi |
| 6520 |
% |
| 6521 |
\ifx\pgfplots@enlargelimits@absdimension@y\pgfutil@empty |
| 6522 |
\let\pgfplots@loc@TMPb=\pgfplots@height |
| 6523 |
\else |
| 6524 |
\ifx\pgfplots@enlargelimits@absdimension@y@minmax\pgfplots@loc@TMPc |
| 6525 |
\def\pgfmathresult{2}% |
| 6526 |
\else |
| 6527 |
\def\pgfmathresult{1}% |
| 6528 |
\fi |
| 6529 |
\pgfmathparse{\pgfplots@height - \pgfmathresult * \pgfplots@enlargelimits@absdimension@y}% |
| 6530 |
\edef\pgfplots@loc@TMPb{\pgfmathresult pt}% |
| 6531 |
\fi |
| 6532 |
% |
| 6533 |
% OK. if( newwidth>0 && newheight>0 ), we can proceed. |
| 6534 |
\pgfplots@loc@tmpfalse |
| 6535 |
\ifdim\pgfplots@loc@TMPa>10pt % |
| 6536 |
\ifdim\pgfplots@loc@TMPb>10pt % |
| 6537 |
\pgfplots@loc@tmptrue |
| 6538 |
\fi |
| 6539 |
\fi |
| 6540 |
\ifpgfplots@loc@tmp |
| 6541 |
% Ah: newheight>0 && newheight>0 . Good. |
| 6542 |
\let\pgfplots@width=\pgfplots@loc@TMPa |
| 6543 |
\let\pgfplots@height=\pgfplots@loc@TMPb |
| 6544 |
\else |
| 6545 |
\def\pgfplotsretval{enlarge value are bigger than old picture size}% |
| 6546 |
\fi |
| 6547 |
\else |
| 6548 |
\def\pgfplotsretval{size adjust is unavailable for non-standard axes}% |
| 6549 |
\fi |
| 6550 |
\ifx\pgfplotsretval\pgfutil@empty |
| 6551 |
\else |
| 6552 |
\pgfplotswarning{enlargelimits respects figure size failed}\pgfeov% |
| 6553 |
\fi |
| 6554 |
\fi |
| 6555 |
\fi |
| 6556 |
} |
| 6557 |
|
| 6558 |
% this here applies changes required for 'enlarge #1 limits={abs=1cm}', i.e. |
| 6559 |
% for the case of numbers with units. |
| 6560 |
% |
| 6561 |
% The main difference is that it is applied AFTER the scaling of the |
| 6562 |
% axis is complete. |
| 6563 |
% |
| 6564 |
% #1: x,y,or z |
| 6565 |
% #2: 1 if lower limit shall be changed |
| 6566 |
% #3: 1 if upper limit shall be changed |
| 6567 |
% #4: the absolute value |
| 6568 |
\def\pgfplots@enlarge@limit@by@dimension#1#2#3#4{% |
| 6569 |
\begingroup |
| 6570 |
% ATTENTION: this uses similar access patterns as |
| 6571 |
% \pgfplots@enlarge@limit@ifconfigured |
| 6572 |
\def\bool@pgfplots@loc@enlargelimits@min{#2}% |
| 6573 |
\def\bool@pgfplots@loc@enlargelimits@max{#3}% |
| 6574 |
% |
| 6575 |
\let\pgfplots@enlargelimits@relthresh=\pgfutil@empty |
| 6576 |
\def\pgfplots@enlargelimits@absthresh{#4} |
| 6577 |
\def\pgfplots@enlargelimits@curaxis{#1}% |
| 6578 |
% |
| 6579 |
\def\bool@pgfplots@loc@enlargeany{0}% |
| 6580 |
\if1\bool@pgfplots@loc@enlargelimits@min |
| 6581 |
\def\bool@pgfplots@loc@enlargeany{1}% |
| 6582 |
\else |
| 6583 |
\if1\bool@pgfplots@loc@enlargelimits@max |
| 6584 |
\def\bool@pgfplots@loc@enlargeany{1}% |
| 6585 |
\fi |
| 6586 |
\fi |
| 6587 |
\if1\bool@pgfplots@loc@enlargeany |
| 6588 |
\pgfplots@enlarge@limit@for{#1}% |
| 6589 |
\fi |
| 6590 |
\global\let\pgfplots@glob@TMPa=\bool@pgfplots@loc@enlargeany |
| 6591 |
% limits assignments are made globally. |
| 6592 |
\endgroup |
| 6593 |
\if1\pgfplots@glob@TMPa |
| 6594 |
\pgfplots@visphase@notify@changeofcanvaslimits{#1}% |
| 6595 |
\fi |
| 6596 |
} |
| 6597 |
|
| 6598 |
|
| 6599 |
% Helper method inside of \pgfplots@enlarge@limit@ifconfigured. |
| 6600 |
% |
| 6601 |
% It modifies '#1min' and '#1max' (globally!) according to the already prepared |
| 6602 |
% booleans. |
| 6603 |
\def\pgfplots@enlarge@limit@for#1{% |
| 6604 |
\begingroup |
| 6605 |
\expandafter\let\expandafter\pgfplots@@min\csname pgfplots@#1min\endcsname |
| 6606 |
\expandafter\let\expandafter\pgfplots@@max\csname pgfplots@#1max\endcsname |
| 6607 |
\ifx\pgfplots@enlargelimits@relthresh\pgfutil@empty |
| 6608 |
\ifx\pgfplots@enlargelimits@absthresh\pgfutil@empty |
| 6609 |
% ups. No enlargement!? OK, can happen for 'abs=1cm' ... |
| 6610 |
% numbers with unit are processed later (after the scaling |
| 6611 |
% is set up) |
| 6612 |
\pgf@xb=0pt % |
| 6613 |
\else |
| 6614 |
% we have an absolute enlarge value: |
| 6615 |
\let\enlargeabsolute=\pgfplots@enlargelimits@absthresh |
| 6616 |
\pgf@xb=\pgfplots@enlargelimits@absthresh pt |
| 6617 |
\fi |
| 6618 |
\else |
| 6619 |
% we have a relative enlarge value: |
| 6620 |
\pgfmathsubtract@\pgfplots@@max\pgfplots@@min% |
| 6621 |
\pgf@xa=\pgfmathresult pt |
| 6622 |
\pgf@xb=\pgfplots@enlargelimits@relthresh\pgf@xa |
| 6623 |
\edef\enlargeabsolute{\pgf@sys@tonumber{\pgf@xb}}% |
| 6624 |
\fi |
| 6625 |
\ifdim\pgf@xb>0.001pt |
| 6626 |
% the case with |
| 6627 |
% enlargeabsolute ~= 0 |
| 6628 |
% means that \pgfplots@@min ~= \pgfplots@@max. |
| 6629 |
% It is handled in another method. |
| 6630 |
% |
| 6631 |
\if1\bool@pgfplots@loc@enlargelimits@min |
| 6632 |
\pgfmathsubtract@\pgfplots@@min\enlargeabsolute% |
| 6633 |
\expandafter\global\expandafter\let\csname pgfplots@#1min\endcsname=\pgfmathresult |
| 6634 |
\fi |
| 6635 |
\if1\bool@pgfplots@loc@enlargelimits@max |
| 6636 |
\pgfmathadd@\pgfplots@@max\enlargeabsolute% |
| 6637 |
\expandafter\global\expandafter\let\csname pgfplots@#1max\endcsname=\pgfmathresult |
| 6638 |
\fi |
| 6639 |
\fi |
| 6640 |
\endgroup |
| 6641 |
} |
| 6642 |
|
| 6643 |
|
| 6644 |
% Initialises the data scale transformation and applies it to any |
| 6645 |
% user specified options. |
| 6646 |
% |
| 6647 |
% PRECONDITION: |
| 6648 |
% - all axis limits are already transformed |
| 6649 |
% - \pgfplots@set@default@size@options has been called before |
| 6650 |
% - the scaling transformation for direction x is set up |
| 6651 |
% (\pgfplots@set@optimal@datatrafo@for@), |
| 6652 |
% POSTCONDITION: |
| 6653 |
% - any user input (like ticks and tick labels) |
| 6654 |
% EXCEPT unit vectors will reflect the changes. |
| 6655 |
% |
| 6656 |
% Unit vectors will be scaled later. |
| 6657 |
% @see \pgfplots@apply@datatrafo@to@axis@limits |
| 6658 |
\def\pgfplots@check@and@apply@datatrafo@for#1{% |
| 6659 |
\pgfplots@if{pgfplots@apply@datatrafo@#1}{% |
| 6660 |
% Transform axis limits: ALREADY DONE. |
| 6661 |
% |
| 6662 |
% Transform tick limits (if they are set): |
| 6663 |
%\message{#1- display tick limits BEFORE data transformation: [\csname pgfplots@#1tickmin\endcsname:\csname pgfplots@#1tickmax\endcsname]}% |
| 6664 |
\expandafter\ifx\csname pgfplots@#1tickmin\endcsname\pgfutil@empty |
| 6665 |
\else |
| 6666 |
\pgfplotscoordmath{#1}{datascaletrafo}{\csname pgfplots@#1tickmin\endcsname}% |
| 6667 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmin\endcsname=\pgfmathresult |
| 6668 |
\fi |
| 6669 |
% |
| 6670 |
\expandafter\ifx\csname pgfplots@#1tickmax\endcsname\pgfutil@empty |
| 6671 |
\else |
| 6672 |
\pgfplotscoordmath{#1}{datascaletrafo}{\csname pgfplots@#1tickmax\endcsname}% |
| 6673 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmax\endcsname=\pgfmathresult |
| 6674 |
\fi |
| 6675 |
%\message{#1- display tick limits after data transformation: [\csname pgfplots@#1tickmin\endcsname:\csname pgfplots@#1tickmax\endcsname]}% |
| 6676 |
% |
| 6677 |
% Convert any user-specified ticks: |
| 6678 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@#1tick\endcsname}% |
| 6679 |
% this here should also work with 'xtick=\empty', the "No tick" command. |
| 6680 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 6681 |
\else |
| 6682 |
\def\pgfplots@loc@TMPb{data}% |
| 6683 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 6684 |
% we have #1tick = data |
| 6685 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@firstplot@coords@#1\endcsname}% |
| 6686 |
\expandafter\pgfplotsutil@unify@short@csv@list\expandafter{\pgfplots@loc@TMPa}% |
| 6687 |
\let\pgfplots@loc@TMPa=\pgfplotsretval |
| 6688 |
\fi |
| 6689 |
%\message{Converting #1tick='\csname pgfplots@#1tick\endcsname'}% |
| 6690 |
\expandafter\pgfplots@apply@data@scale@trafo@to@user@ticks\expandafter{\pgfplots@loc@TMPa}% |
| 6691 |
{\pgfplotscoordmath{#1}{datascaletrafo}}% |
| 6692 |
\to\pgfplots@loc@TMPc |
| 6693 |
\expandafter\let\csname pgfplots@#1tick\endcsname=\pgfplots@loc@TMPc |
| 6694 |
\fi |
| 6695 |
% |
| 6696 |
% Convert any extra-ticks, see above. |
| 6697 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@extra@#1tick\endcsname}% |
| 6698 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 6699 |
\else |
| 6700 |
\edef\pgfplots@loc@TMPa{{\csname pgfplots@extra@#1tick\endcsname}}% |
| 6701 |
\expandafter\pgfplots@apply@data@scale@trafo@to@user@ticks\pgfplots@loc@TMPa |
| 6702 |
{\pgfplotscoordmath{#1}{datascaletrafo}}% |
| 6703 |
\to\pgfplots@loc@TMPc |
| 6704 |
\expandafter\let\csname pgfplots@extra@#1tick\endcsname=\pgfplots@loc@TMPc |
| 6705 |
\fi |
| 6706 |
% |
| 6707 |
% Convert any minor tick lists in the same way. |
| 6708 |
\pgfkeysgetvalue{/pgfplots/minor #1tick}\pgfplots@loc@TMPa |
| 6709 |
\edef\pgfplots@loc@TMPa{\pgfplots@loc@TMPa}% |
| 6710 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 6711 |
\else |
| 6712 |
\def\pgfplots@loc@TMPb{data}% |
| 6713 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 6714 |
% we have #1tick = data |
| 6715 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@firstplot@coords@#1\endcsname}% |
| 6716 |
\expandafter\pgfplotsutil@unify@short@csv@list\expandafter{\pgfplots@loc@TMPa}% |
| 6717 |
\let\pgfplots@loc@TMPa=\pgfplotsretval |
| 6718 |
\fi |
| 6719 |
\expandafter\pgfplots@apply@data@scale@trafo@to@user@ticks\expandafter{\pgfplots@loc@TMPa}% |
| 6720 |
{\pgfplotscoordmath{#1}{datascaletrafo}}% |
| 6721 |
\to\pgfplots@loc@TMPc |
| 6722 |
\pgfkeyslet{/pgfplots/minor #1tick}\pgfplots@loc@TMPc |
| 6723 |
\fi |
| 6724 |
% |
| 6725 |
% Transform any explicit axis unit scalings: ALREADY DONE |
| 6726 |
}{% |
| 6727 |
% case apply trafo == false: |
| 6728 |
\def\pgfplots@loc@TMPb{data}% |
| 6729 |
\expandafter\ifx\csname pgfplots@#1tick\endcsname\pgfplots@loc@TMPb |
| 6730 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@firstplot@coords@#1\endcsname}% |
| 6731 |
\expandafter\pgfplotsutil@unify@short@csv@list\expandafter{\pgfplots@loc@TMPa}% |
| 6732 |
\expandafter\let\csname pgfplots@#1tick\endcsname=\pgfplotsretval% |
| 6733 |
\fi |
| 6734 |
\pgfkeysgetvalue{/pgfplots/minor #1tick}\pgfplots@loc@TMPa |
| 6735 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 6736 |
\else |
| 6737 |
\def\pgfplots@loc@TMPb{data}% |
| 6738 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 6739 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@firstplot@coords@#1\endcsname}% |
| 6740 |
\expandafter\pgfplotsutil@unify@short@csv@list\expandafter{\pgfplots@loc@TMPa}% |
| 6741 |
\pgfkeyslet{/pgfplots/minor #1tick}\pgfplotsretval |
| 6742 |
\fi |
| 6743 |
\fi |
| 6744 |
}% |
| 6745 |
} |
| 6746 |
|
| 6747 |
\newif\ifpgfplots@determinedefaultvalues@isuniform |
| 6748 |
\newif\ifpgfplots@determinedefaultvalues@needs@check@uniformtick |
| 6749 |
\newif\ifpgfplots@limits@are@computed |
| 6750 |
|
| 6751 |
\def\pgfplots@handle@invalid@range@defaultlimits{% |
| 6752 |
\pgfplotscoordmath{x}{parsenumber}{0}% |
| 6753 |
\global\let\pgfplots@xmin=\pgfmathresult |
| 6754 |
\pgfplotscoordmath{x}{parsenumber}{1}% |
| 6755 |
\global\let\pgfplots@xmax=\pgfmathresult |
| 6756 |
\global\let\pgfplots@data@xmin=\pgfplots@xmin |
| 6757 |
\global\let\pgfplots@data@xmax=\pgfplots@xmax |
| 6758 |
% |
| 6759 |
\pgfplotscoordmath{y}{parsenumber}{0}% |
| 6760 |
\global\let\pgfplots@ymin=\pgfmathresult |
| 6761 |
\pgfplotscoordmath{y}{parsenumber}{1}% |
| 6762 |
\global\let\pgfplots@ymax=\pgfmathresult |
| 6763 |
\global\let\pgfplots@data@ymin=\pgfplots@ymin |
| 6764 |
\global\let\pgfplots@data@ymax=\pgfplots@ymax |
| 6765 |
} |
| 6766 |
\def\pgfplots@handle@invalid@range{% |
| 6767 |
% COMPLETELY EMPTY AXIS: |
| 6768 |
\pgfplotswarning{empty range cleared axis}\pgfplots@loc@TMPa\pgfeov |
| 6769 |
\pgfplots@handle@invalid@range@defaultlimits |
| 6770 |
% |
| 6771 |
\pgfplots@threedimfalse |
| 6772 |
\def\pgfplots@xtick{}% |
| 6773 |
\def\pgfplots@ytick{}% |
| 6774 |
\def\pgfplots@extra@xtick{}% |
| 6775 |
\def\pgfplots@extra@ytick{}% |
| 6776 |
\def\pgfplots@xtickten{}% |
| 6777 |
\def\pgfplots@ytickten{}% |
| 6778 |
% clear all plots! |
| 6779 |
\pgfplots@init@cleared@structures |
| 6780 |
} |
| 6781 |
\def\pgfplots@check@invalid@range{% |
| 6782 |
\pgfplots@limits@are@computedtrue |
| 6783 |
\def\pgfplots@loc@TMPa{}% |
| 6784 |
\ifx\pgfplots@xmin\pgfplots@invalidrange@xmin |
| 6785 |
\pgfplots@limits@are@computedfalse |
| 6786 |
\edef\pgfplots@loc@TMPa{x}% |
| 6787 |
\fi |
| 6788 |
\ifx\pgfplots@xmax\pgfplots@invalidrange@xmax |
| 6789 |
\pgfplots@limits@are@computedfalse |
| 6790 |
\edef\pgfplots@loc@TMPa{x}% |
| 6791 |
\fi |
| 6792 |
\ifx\pgfplots@ymin\pgfplots@invalidrange@ymin |
| 6793 |
\pgfplots@limits@are@computedfalse |
| 6794 |
\edef\pgfplots@loc@TMPa{y}% |
| 6795 |
\fi |
| 6796 |
\ifx\pgfplots@ymax\pgfplots@invalidrange@ymax |
| 6797 |
\pgfplots@limits@are@computedfalse |
| 6798 |
\edef\pgfplots@loc@TMPa{y}% |
| 6799 |
\fi |
| 6800 |
\ifpgfplots@threedim |
| 6801 |
\ifx\pgfplots@zmin\pgfplots@invalidrange@zmin |
| 6802 |
\pgfplots@limits@are@computedfalse |
| 6803 |
\edef\pgfplots@loc@TMPa{z}% |
| 6804 |
\fi |
| 6805 |
\ifx\pgfplots@zmax\pgfplots@invalidrange@zmax |
| 6806 |
\pgfplots@limits@are@computedfalse |
| 6807 |
\edef\pgfplots@loc@TMPa{z}% |
| 6808 |
\fi |
| 6809 |
\fi |
| 6810 |
\ifpgfplots@limits@are@computed |
| 6811 |
\ifx\pgfplots@data@xmin\pgfplots@invalidrange@xmin |
| 6812 |
\global\let\pgfplots@data@xmin=\pgfplots@xmin |
| 6813 |
\fi |
| 6814 |
\ifx\pgfplots@data@xmin\pgfplots@invalidrange@xmax |
| 6815 |
\global\let\pgfplots@data@xmax=\pgfplots@xmax |
| 6816 |
\fi |
| 6817 |
\ifx\pgfplots@data@ymin\pgfplots@invalidrange@ymin |
| 6818 |
\global\let\pgfplots@data@ymin=\pgfplots@ymin |
| 6819 |
\fi |
| 6820 |
\ifx\pgfplots@data@ymin\pgfplots@invalidrange@ymax |
| 6821 |
\global\let\pgfplots@data@ymax=\pgfplots@ymax |
| 6822 |
\fi |
| 6823 |
\ifx\pgfplots@data@zmin\pgfplots@invalidrange@zmin |
| 6824 |
\global\let\pgfplots@data@zmin=\pgfplots@zmin |
| 6825 |
\fi |
| 6826 |
\ifx\pgfplots@data@zmin\pgfplots@invalidrange@zmax |
| 6827 |
\global\let\pgfplots@data@zmax=\pgfplots@zmax |
| 6828 |
\fi |
| 6829 |
\ifpgfplots@clip@limits@x |
| 6830 |
\else |
| 6831 |
% there is a rare change that min > max. |
| 6832 |
% Handle that ... |
| 6833 |
\pgfplotscoordmath{x}{min}{\pgfplots@xmin}{\pgfplots@xmax}% |
| 6834 |
\global\let\pgfplots@xmin=\pgfmathresult |
| 6835 |
\pgfplotscoordmath{x}{max}{\pgfplots@xmin}{\pgfplots@xmax}% |
| 6836 |
\global\let\pgfplots@xmax=\pgfmathresult |
| 6837 |
\fi |
| 6838 |
\ifpgfplots@clip@limits@y |
| 6839 |
\else |
| 6840 |
% |
| 6841 |
\pgfplotscoordmath{y}{min}{\pgfplots@ymin}{\pgfplots@ymax}% |
| 6842 |
\global\let\pgfplots@ymin=\pgfmathresult |
| 6843 |
\pgfplotscoordmath{y}{max}{\pgfplots@ymin}{\pgfplots@ymax}% |
| 6844 |
\global\let\pgfplots@ymax=\pgfmathresult |
| 6845 |
\fi |
| 6846 |
\ifpgfplots@clip@limits@z |
| 6847 |
\else |
| 6848 |
% |
| 6849 |
\ifpgfplots@threedim |
| 6850 |
\pgfplotscoordmath{z}{min}{\pgfplots@zmin}{\pgfplots@zmax}% |
| 6851 |
\global\let\pgfplots@zmin=\pgfmathresult |
| 6852 |
\pgfplotscoordmath{z}{max}{\pgfplots@zmin}{\pgfplots@zmax}% |
| 6853 |
\global\let\pgfplots@zmax=\pgfmathresult |
| 6854 |
\fi |
| 6855 |
\fi |
| 6856 |
\else |
| 6857 |
\pgfplots@handle@invalid@range |
| 6858 |
\fi |
| 6859 |
}% |
| 6860 |
|
| 6861 |
|
| 6862 |
% This method finishes the accumulated information of axis limits and |
| 6863 |
% all internal flag fields. |
| 6864 |
% |
| 6865 |
% PRECONDITION: |
| 6866 |
% - all plots are finally finished; axis and data limits are known. |
| 6867 |
% |
| 6868 |
% POSTCONDITION: |
| 6869 |
% - the scaling transformation is set-up and applied to all user |
| 6870 |
% inputs and axis limits. |
| 6871 |
% - the \pgfplots@[xy][min,max] variables and associated TeX |
| 6872 |
% registers are set up and final. They should not be changed |
| 6873 |
% afterwards. |
| 6874 |
% - any tick lists etc. are final. |
| 6875 |
% |
| 6876 |
\def\pgfplots@determinedefaultvalues{% |
| 6877 |
\pgfplots@check@invalid@range |
| 6878 |
% |
| 6879 |
%\message{untransformed: x = [\pgfplots@xmin:\pgfplots@xmax] y = [\pgfplots@ymin:\pgfplots@ymax]. }% |
| 6880 |
% |
| 6881 |
% |
| 6882 |
\pgfplots@set@default@size@options |
| 6883 |
% |
| 6884 |
\ifpgfplots@threedim |
| 6885 |
\pgfplotsthreedimtrue |
| 6886 |
\else |
| 6887 |
\pgfplotsthreedimfalse |
| 6888 |
\fi |
| 6889 |
% |
| 6890 |
\pgfplots@set@optimal@datatrafos@allaxes |
| 6891 |
% |
| 6892 |
% Now, the data scaling has been set up. |
| 6893 |
% However, it may need to be changed if axis equal and/or unit |
| 6894 |
% vector ratio changes the axis limits considerably. If so, it |
| 6895 |
% will be done in \pgfplots@initsizes |
| 6896 |
\pgfplots@apply@datatrafo@to@axis@limits x% |
| 6897 |
\pgfplots@apply@datatrafo@to@axis@limits y% |
| 6898 |
\ifpgfplots@threedim |
| 6899 |
\pgfplots@apply@datatrafo@to@axis@limits z% |
| 6900 |
\fi |
| 6901 |
% |
| 6902 |
\pgfplots@datascaletrafo@initialisedtrue |
| 6903 |
%\message{transformed: x = [\pgfplots@xmin:\pgfplots@xmax] y = [\pgfplots@ymin:\pgfplots@ymax].}% |
| 6904 |
% |
| 6905 |
% From now on, we can always work with pgfmath. |
| 6906 |
% We simply need to apply the data scaling trafo before doing so. |
| 6907 |
\pgfplots@enlarge@limit@ifconfigured x |
| 6908 |
\pgfplots@avoid@empty@axis@range@for x% |
| 6909 |
% |
| 6910 |
\pgfplots@enlarge@limit@ifconfigured y |
| 6911 |
\pgfplots@avoid@empty@axis@range@for y% |
| 6912 |
|
| 6913 |
\ifpgfplots@threedim |
| 6914 |
\pgfplots@enlarge@limit@ifconfigured z |
| 6915 |
\pgfplots@avoid@empty@axis@range@for z% |
| 6916 |
\fi |
| 6917 |
% |
| 6918 |
\pgfplots@initsizes |
| 6919 |
% |
| 6920 |
\pgfplots@check@and@apply@datatrafo@for x% |
| 6921 |
\pgfplots@check@and@apply@datatrafo@for y% |
| 6922 |
\ifpgfplots@threedim |
| 6923 |
\pgfplots@check@and@apply@datatrafo@for z% |
| 6924 |
\fi |
| 6925 |
% clear structure: |
| 6926 |
\global\let\pgfplots@firstplot@coords@x=\pgfutil@empty |
| 6927 |
\global\let\pgfplots@firstplot@coords@y=\pgfutil@empty |
| 6928 |
\global\let\pgfplots@firstplot@coords@z=\pgfutil@empty |
| 6929 |
% |
| 6930 |
\pgfplots@limits@ready |
| 6931 |
% |
| 6932 |
\pgfplots@set@options@after@survey1% |
| 6933 |
% |
| 6934 |
\pgfplotspoint@initialisation |
| 6935 |
% |
| 6936 |
% |
| 6937 |
\pgfplots@BEGIN@prepare@description@styles |
| 6938 |
% |
| 6939 |
% |
| 6940 |
\pgfplots@init@ticks@for x% |
| 6941 |
\pgfplots@init@ticks@for y% |
| 6942 |
\ifpgfplots@threedim |
| 6943 |
\pgfplots@init@ticks@for z% |
| 6944 |
\fi |
| 6945 |
\pgfplots@init@ticks@ready |
| 6946 |
% |
| 6947 |
% |
| 6948 |
\pgfplots@prepare@ZERO@coordinates |
| 6949 |
% |
| 6950 |
\pgfplots@decide@which@figure@surfaces@are@drawn |
| 6951 |
\pgfplots@init@ticklabelaxisspec |
| 6952 |
% |
| 6953 |
\pgfplots@define@threedim@marks |
| 6954 |
% |
| 6955 |
\pgfplots@clippath@prepare |
| 6956 |
% |
| 6957 |
\pgfplots@ticklabel@maxtickdimen@reset x% |
| 6958 |
\pgfplots@ticklabel@maxtickdimen@reset y% |
| 6959 |
\pgfplots@ticklabel@maxtickdimen@reset z% |
| 6960 |
% |
| 6961 |
\pgfplots@init@axis@shift |
| 6962 |
} |
| 6963 |
|
| 6964 |
% executes '#2' if 'axis #1 line shift' is set and '#3' if not. |
| 6965 |
\def\pgfplots@if@has@axis@shift#1#2#3{% |
| 6966 |
\pgfkeysgetvalue{/pgfplots/axis #1 line shift}\pgfplots@loc@TMPb |
| 6967 |
\ifx\pgfplots@loc@TMPb\pgfutil@empty |
| 6968 |
#3% |
| 6969 |
\else |
| 6970 |
#2% |
| 6971 |
\fi |
| 6972 |
}% |
| 6973 |
|
| 6974 |
\def\pgfplots@init@axis@shift{% |
| 6975 |
\pgfplotsforeachentryinCSV{\pgfplots@loc@TMPa}{x,y,z}{% |
| 6976 |
% check if 'axis #1 line shift' is set and non-zero. |
| 6977 |
\expandafter\pgfplots@if@has@axis@shift\pgfplots@loc@TMPa{% |
| 6978 |
\pgfkeysgetvalue{/pgfplots/axis \pgfplots@loc@TMPa\space line shift}\pgfplots@loc@TMPb |
| 6979 |
\pgfmathparse{\pgfplots@loc@TMPb}% |
| 6980 |
\ifdim\pgfmathresult pt=0pt |
| 6981 |
\def\pgfplots@loc@TMPb{}% |
| 6982 |
\else |
| 6983 |
\ifpgfmathunitsdeclared |
| 6984 |
\else |
| 6985 |
\ifpgfplots@threedim |
| 6986 |
% ... I do not know which axis unit should be |
| 6987 |
% used here. |
| 6988 |
\pgfplots@error{Cannot process 'axis \pgfplots@loc@TMPa\space line shift=\pgfplots@loc@TMPb': please provide a dimension like 10pt. Shifting by axis units is only implemented for 2d axes}% |
| 6989 |
\else |
| 6990 |
% Ah - a shift by axis units. |
| 6991 |
% Ok, then determine the correct axis and |
| 6992 |
% compute the shift. |
| 6993 |
% |
| 6994 |
% This works because the outer normal is the |
| 6995 |
% same as one of the axes. |
| 6996 |
\let\pgfplots@loc@TMPb=\pgfmathresult |
| 6997 |
\if x\pgfplots@loc@TMPa |
| 6998 |
\pgfplotstransformdirectiony{\pgfplots@loc@TMPb}% |
| 6999 |
\let\pgfplots@loc@TMPb=\pgfmathresult |
| 7000 |
\pgfplotsqpointxy{0}{\pgfplots@loc@TMPb}% |
| 7001 |
\else |
| 7002 |
\pgfplotstransformdirectionx{\pgfplots@loc@TMPb}% |
| 7003 |
\let\pgfplots@loc@TMPb=\pgfmathresult |
| 7004 |
\pgfplotsqpointxy{\pgfplots@loc@TMPb}{0}% |
| 7005 |
\fi |
| 7006 |
\pgfmathveclen@{\pgf@sys@tonumber\pgf@x}{\pgf@sys@tonumber\pgf@y}% |
| 7007 |
\ifdim\pgfplots@loc@TMPb pt<0sp |
| 7008 |
% we have lost the sign... restore it. |
| 7009 |
\edef\pgfmathresult{-\pgfmathresult}% |
| 7010 |
\fi |
| 7011 |
\fi |
| 7012 |
\fi |
| 7013 |
% |
| 7014 |
\edef\pgfplots@loc@TMPb{\pgfmathresult}% NO unit here |
| 7015 |
\if z\pgfplots@loc@TMPa |
| 7016 |
\ifpgfplots@threedim |
| 7017 |
\pgfplots@separate@axis@linestrue |
| 7018 |
\fi |
| 7019 |
\else |
| 7020 |
\pgfplots@separate@axis@linestrue |
| 7021 |
\fi |
| 7022 |
\fi |
| 7023 |
% |
| 7024 |
% normalize the value - no need to parse it over and over again: |
| 7025 |
\pgfkeyslet{/pgfplots/axis \pgfplots@loc@TMPa\space line shift}\pgfplots@loc@TMPb |
| 7026 |
}{}% |
| 7027 |
}% |
| 7028 |
}% |
| 7029 |
|
| 7030 |
\def\pgfplots@init@ticks@ready{}% |
| 7031 |
\def\pgfplots@init@ticks@for#1{% |
| 7032 |
\pgfplots@isuniformticktrue |
| 7033 |
\pgfplots@determinedefaultvalues@needs@check@uniformticktrue |
| 7034 |
\expandafter\ifx\csname pgfplots@#1tick\endcsname\pgfutil@empty |
| 7035 |
\pgfplots@assign@default@tick@foraxis{#1}% |
| 7036 |
\fi |
| 7037 |
\ifpgfplots@determinedefaultvalues@needs@check@uniformtick |
| 7038 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tick\endcsname |
| 7039 |
\edef\pgfplots@loc@TMPb{\pgfplots@loc@TMPa}% |
| 7040 |
\ifx\pgfplots@loc@TMPb\pgfutil@empty |
| 7041 |
% there are no ticks left. |
| 7042 |
\pgfplots@isuniformtickfalse |
| 7043 |
\else |
| 7044 |
\pgfplots@if{pgfplots@#1islinear}{% |
| 7045 |
\def\pgfplots@loc@TMPb{\expandafter\pgfplots@checkisuniformLINEARtick\expandafter{\pgfplots@loc@TMPa}}% |
| 7046 |
\expandafter\pgfplots@loc@TMPb\csname pgfplots@tick@distance@#1\endcsname% |
| 7047 |
}{% |
| 7048 |
\expandafter\pgfplots@checkisuniformLOGtick\expandafter{\pgfplots@loc@TMPa}% |
| 7049 |
}% |
| 7050 |
\fi |
| 7051 |
\fi |
| 7052 |
\pgfplots@check@for@minor@ticks{#1}% |
| 7053 |
\ifpgfplots@isuniformtick |
| 7054 |
\else |
| 7055 |
\pgfkeysgetvalue{/pgfplots/minor #1tick}\pgfplots@loc@TMPb |
| 7056 |
\ifx\pgfplots@loc@TMPb\pgfutil@empty |
| 7057 |
\csname pgfplots@#1minorticksfalse\endcsname |
| 7058 |
\csname pgfplots@#1minorgridsfalse\endcsname |
| 7059 |
\fi |
| 7060 |
\fi |
| 7061 |
% |
| 7062 |
\expandafter\ifx\csname pgfplots@#1ticklabel\endcsname\pgfutil@empty |
| 7063 |
\pgfplots@if{pgfplots@#1islinear}{% |
| 7064 |
\expandafter\def\csname pgfplots@#1ticklabel\endcsname{\axisdefaultticklabel}% |
| 7065 |
}{% |
| 7066 |
\expandafter\def\csname pgfplots@#1ticklabel\endcsname{\axisdefaultticklabellog}% |
| 7067 |
}% |
| 7068 |
\fi |
| 7069 |
\expandafter\ifx\csname pgfplots@extra@#1ticklabel\endcsname\pgfutil@empty |
| 7070 |
\pgfutil@namelet{pgfplots@loc@TMPa}{pgfplots@#1ticklabel}% |
| 7071 |
\pgfutil@namelet{pgfplots@loc@TMPb}{pgfplots@user@ticklabel@list@#1}% |
| 7072 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 7073 |
% Ah - someone used '#1ticklabels' (or its friends). |
| 7074 |
% these are bound to specific positions and make no sense in this context. |
| 7075 |
\pgfplots@if{pgfplots@#1islinear}{% |
| 7076 |
\expandafter\def\csname pgfplots@extra@#1ticklabel\endcsname{\axisdefaultticklabel}% |
| 7077 |
}{% |
| 7078 |
\expandafter\def\csname pgfplots@extra@#1ticklabel\endcsname{\axisdefaultticklabellog}% |
| 7079 |
}% |
| 7080 |
\else |
| 7081 |
% inherit the global argument of '#1ticklabel' -- it will probably contain generic code to |
| 7082 |
% typeset labels at any positions. |
| 7083 |
% The "probably" is a buest-guess, though... |
| 7084 |
\pgfutil@namelet{pgfplots@extra@#1ticklabel}{pgfplots@#1ticklabel}% |
| 7085 |
\fi |
| 7086 |
\fi |
| 7087 |
% |
| 7088 |
\if0\csname pgfplots@#1axislinesnum\endcsname\else |
| 7089 |
% axis x line* != box |
| 7090 |
\expandafter\let\csname pgfplots@#1ticklabel@pos\endcsname=\pgfutil@empty |
| 7091 |
\fi |
| 7092 |
\expandafter\ifx\csname pgfplots@#1ticklabel@pos\endcsname\pgfutil@empty |
| 7093 |
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{% |
| 7094 |
\if3\csname pgfplots@#1tickposnum\endcsname% right |
| 7095 |
u% |
| 7096 |
\else |
| 7097 |
l% |
| 7098 |
\fi |
| 7099 |
}% |
| 7100 |
\fi |
| 7101 |
}% |
| 7102 |
|
| 7103 |
\def\pgfplots@check@for@minor@ticks#1{% |
| 7104 |
\pgfkeysgetvalue{/pgfplots/minor #1 tick num}\pgfplots@loc@TMPa |
| 7105 |
\pgfkeysgetvalue{/pgfplots/minor #1tick}\pgfplots@loc@TMPb |
| 7106 |
\pgfplots@if{pgfplots@#1islinear}{% |
| 7107 |
\ifnum\pgfplots@loc@TMPa=0\relax |
| 7108 |
\ifx\pgfplots@loc@TMPb\pgfutil@empty |
| 7109 |
\csname pgfplots@#1minorticksfalse\endcsname |
| 7110 |
\csname pgfplots@#1minorgridsfalse\endcsname |
| 7111 |
\fi |
| 7112 |
\else |
| 7113 |
\csname pgfplots@#1minortickstrue\endcsname |
| 7114 |
\fi |
| 7115 |
}{% |
| 7116 |
}% |
| 7117 |
\ifx\pgfplots@loc@TMPb\pgfutil@empty |
| 7118 |
\else |
| 7119 |
\csname pgfplots@#1minortickstrue\endcsname |
| 7120 |
\fi |
| 7121 |
} |
| 7122 |
|
| 7123 |
% Invoked as soon as all axis limits are ready and final (in TeX |
| 7124 |
% number range, all data scaling is applied at this point). |
| 7125 |
\def\pgfplots@limits@ready{% |
| 7126 |
\pgfplots@limits@ready@tostring{x}{min}% |
| 7127 |
\pgfplots@limits@ready@tostring{x}{max}% |
| 7128 |
\pgfplots@limits@ready@tostring{y}{min}% |
| 7129 |
\pgfplots@limits@ready@tostring{y}{max}% |
| 7130 |
\ifpgfplots@threedim |
| 7131 |
\pgfplots@limits@ready@tostring{z}{min}% |
| 7132 |
\pgfplots@limits@ready@tostring{z}{max}% |
| 7133 |
\fi |
| 7134 |
}% |
| 7135 |
|
| 7136 |
% write a limit into /pgfplots/#1#2 |
| 7137 |
% #1: either x,y or z |
| 7138 |
% #2: either 'min' or 'max' |
| 7139 |
% |
| 7140 |
% \pgfplots@limits@ready@tostring{x}{min} |
| 7141 |
\def\pgfplots@limits@ready@tostring#1#2{% |
| 7142 |
\pgfplots@if{pgfplots@apply@datatrafo@#1}{% |
| 7143 |
\pgfplotscoordmath{#1}{datascaletrafo inverse}{\csname pgfplots@#1#2\endcsname}% |
| 7144 |
}{% |
| 7145 |
\edef\pgfmathresult{\csname pgfplots@#1#2\endcsname}% |
| 7146 |
}% |
| 7147 |
\pgfplotscoordmath{#1}{tostring}{\pgfmathresult}% |
| 7148 |
\pgfkeyslet{/pgfplots/#1#2}\pgfmathresult |
| 7149 |
% this runs \pgfkeyslet{/pgfplots/xmin}\pgfmathresult |
| 7150 |
}% |
| 7151 |
|
| 7152 |
|
| 7153 |
\newif\ifpgfplots@avoid@emptyrange@@range@is@approx@equal |
| 7154 |
% Checks whether axis limits in coordinate #1 are approximately equal. |
| 7155 |
% |
| 7156 |
% If that is the case, force a non-zero width of the range. |
| 7157 |
% |
| 7158 |
\def\pgfplots@avoid@empty@axis@range@for#1{% |
| 7159 |
% Check if axis limits are empty: |
| 7160 |
\begingroup |
| 7161 |
\expandafter\let\expandafter\if@cur@is@scaled\csname ifpgfplots@apply@datatrafo@#1\endcsname |
| 7162 |
\expandafter\let\expandafter\pgfplots@@min\csname pgfplots@#1min\endcsname |
| 7163 |
\expandafter\let\expandafter\pgfplots@@max\csname pgfplots@#1max\endcsname |
| 7164 |
\let\min@d=\pgf@xa |
| 7165 |
\let\max@d=\pgf@xb |
| 7166 |
\let\diff=\pgf@xc |
| 7167 |
\expandafter\min@d\pgfplots@@min pt % |
| 7168 |
\expandafter\max@d\pgfplots@@max pt % |
| 7169 |
\diff=\max@d |
| 7170 |
\advance\diff by-\min@d |
| 7171 |
% FIXME : I need a RELATIVE check here! |
| 7172 |
% but: real number point division is expensive |
| 7173 |
\if@cur@is@scaled |
| 7174 |
% this here should be sufficient because the axis |
| 7175 |
% has absolute values of order O( 10^3 ) or so. |
| 7176 |
\ifdim\diff<0.0001pt |
| 7177 |
\pgfplots@avoid@emptyrange@@range@is@approx@equaltrue |
| 7178 |
\fi |
| 7179 |
\else |
| 7180 |
% there is no data scaling, so I should be much more defensive |
| 7181 |
% with absolute thresholds... |
| 7182 |
\ifdim\diff<0.0001pt |
| 7183 |
\pgfplots@avoid@emptyrange@@range@is@approx@equaltrue |
| 7184 |
\fi |
| 7185 |
\fi |
| 7186 |
\ifpgfplots@avoid@emptyrange@@range@is@approx@equal |
| 7187 |
\begingroup |
| 7188 |
\pgfplotscoordmath{#1}{datascaletrafo inverse to fixed}{\csname pgfplots@#1min\endcsname}% |
| 7189 |
\let\pgfplots@min=\pgfmathresult |
| 7190 |
\pgfplotscoordmath{#1}{datascaletrafo inverse to fixed}{\csname pgfplots@#1max\endcsname}% |
| 7191 |
\let\pgfplots@max=\pgfmathresult |
| 7192 |
\pgfplotswarning{approx empty range enlarged}{#1}{\pgfplots@min}{\pgfplots@max}\pgfeov |
| 7193 |
\endgroup |
| 7194 |
% the case \pgfplots@@min ~= \pgfplots@@max |
| 7195 |
% |
| 7196 |
% enlarge \pgfplots@@max and shrink \min: |
| 7197 |
\ifdim\max@d<0pt% |
| 7198 |
\ifdim\max@d<-1pt% |
| 7199 |
\max@d=0.8\max@d |
| 7200 |
\min@d=1.2\min@d |
| 7201 |
\else |
| 7202 |
\advance\max@d by-1pt% |
| 7203 |
\advance\min@d by1pt% |
| 7204 |
\fi |
| 7205 |
\else |
| 7206 |
\ifdim\max@d>1pt% |
| 7207 |
\max@d=1.2\max@d |
| 7208 |
\min@d=0.8\min@d |
| 7209 |
\else |
| 7210 |
\ifdim\max@d=0pt% |
| 7211 |
\if@cur@is@scaled |
| 7212 |
\expandafter\let\expandafter\min@unscaled\csname pgfplots@#1min@unscaled@as@float\endcsname |
| 7213 |
\expandafter\let\expandafter\max@unscaled\csname pgfplots@#1max@unscaled@as@float\endcsname |
| 7214 |
% **sigh**. That's really work. |
| 7215 |
% |
| 7216 |
% This here happens ALWAYS if min == max for |
| 7217 |
% linear axis because the scaling |
| 7218 |
% transformation will result in T(min) = T(max) = 0 |
| 7219 |
% |
| 7220 |
% -> we need to enlarge limits in floating |
| 7221 |
% point arithmetics. |
| 7222 |
% |
| 7223 |
\pgfplotscoordmath{#1}{parsenumber}{0}% |
| 7224 |
\let\pgfplotsmath@zero=\pgfmathresult |
| 7225 |
% |
| 7226 |
\ifx\max@unscaled\pgfplotsmath@zero |
| 7227 |
% max == 0 |
| 7228 |
\pgfplotscoordmath{#1}{parsenumber}{1}% |
| 7229 |
\let\max@unscaled=\pgfmathresult |
| 7230 |
\pgfplotscoordmath{#1}{parsenumber}{-1}% |
| 7231 |
\let\min@unscaled=\pgfmathresult |
| 7232 |
\else |
| 7233 |
% |
| 7234 |
\pgfplotscoordmath{#1}{parsenumber}{1.2}% |
| 7235 |
\let\pgfplotsmath@scalea=\pgfmathresult |
| 7236 |
\pgfplotscoordmath{#1}{parsenumber}{8e-1}% |
| 7237 |
\let\pgfplotsmath@scaleb=\pgfmathresult |
| 7238 |
% |
| 7239 |
\pgfplotscoordmath{#1}{if less than} |
| 7240 |
{\pgfplotsmath@zero}{\max@unscaled}% |
| 7241 |
{% |
| 7242 |
% 0 < max |
| 7243 |
\pgfplotscoordmath{#1}{op}{multiply} |
| 7244 |
{{\max@unscaled}{\pgfplotsmath@scalea}}% |
| 7245 |
\let\max@unscaled=\pgfmathresult |
| 7246 |
\pgfplotscoordmath{#1}{op}{multiply} |
| 7247 |
{{\min@unscaled}{\pgfplotsmath@scaleb}}% |
| 7248 |
\let\min@unscaled=\pgfmathresult |
| 7249 |
}% |
| 7250 |
{% |
| 7251 |
\pgfplotscoordmath{#1}{op}{multiply} |
| 7252 |
{{\max@unscaled}{\pgfplotsmath@scaleb}}% |
| 7253 |
\let\max@unscaled=\pgfmathresult |
| 7254 |
\pgfplotscoordmath{#1}{op}{multiply} |
| 7255 |
{{\min@unscaled}{\pgfplotsmath@scalea}}% |
| 7256 |
\let\min@unscaled=\pgfmathresult |
| 7257 |
}% |
| 7258 |
\fi |
| 7259 |
\pgfplotscoordmath{#1}{datascaletrafo}{\min@unscaled}% |
| 7260 |
\let\pgfplots@@min=\pgfmathresult |
| 7261 |
\pgfplotscoordmath{#1}{datascaletrafo}{\max@unscaled}% |
| 7262 |
\let\pgfplots@@max=\pgfmathresult |
| 7263 |
\min@d=\pgfplots@@min pt |
| 7264 |
\max@d=\pgfplots@@max pt |
| 7265 |
\else |
| 7266 |
\advance\max@d by1pt |
| 7267 |
\advance\min@d by-1pt |
| 7268 |
\fi |
| 7269 |
\else |
| 7270 |
\advance\max@d by1pt |
| 7271 |
\advance\min@d by-1pt |
| 7272 |
\fi |
| 7273 |
\fi |
| 7274 |
\fi |
| 7275 |
\xdef\pgfplots@glob@TMPa{\pgf@sys@tonumber{\min@d}}% |
| 7276 |
\xdef\pgfplots@glob@TMPb{\pgf@sys@tonumber{\max@d}}% |
| 7277 |
%\pgfplots@message{ -> #1 = \pgfplots@glob@TMPa : \pgfplots@glob@TMPb;}% |
| 7278 |
\else |
| 7279 |
\global\let\pgfplots@glob@TMPa=\pgfplots@@min% |
| 7280 |
\global\let\pgfplots@glob@TMPb=\pgfplots@@max% |
| 7281 |
\fi |
| 7282 |
\endgroup |
| 7283 |
\expandafter\global\expandafter\let\csname pgfplots@#1min\endcsname=\pgfplots@glob@TMPa |
| 7284 |
\expandafter\global\expandafter\let\csname pgfplots@#1max\endcsname=\pgfplots@glob@TMPb |
| 7285 |
} |
| 7286 |
|
| 7287 |
|
| 7288 |
% should be invoked whenever \pgfplots@#1min or \pgfplots@#1max have |
| 7289 |
% been changed during the visualization phase (for example, axis equal |
| 7290 |
% or enlargelimits) |
| 7291 |
\def\pgfplots@visphase@notify@changeofcanvaslimits#1{% |
| 7292 |
\csname pgfplots@#1min@reg\endcsname=\csname pgfplots@#1min\endcsname pt % |
| 7293 |
\csname pgfplots@#1max@reg\endcsname=\csname pgfplots@#1max\endcsname pt % |
| 7294 |
\pgfplots@if{pgfplots@apply@datatrafo@#1}{% |
| 7295 |
\pgfplotscoordmath{#1}{datascaletrafo inverse}{\csname pgfplots@#1min\endcsname}% |
| 7296 |
\expandafter\let\csname pgfplots@#1min@unscaled@as@float\endcsname=\pgfmathresult |
| 7297 |
\pgfplotscoordmath{#1}{datascaletrafo inverse}{\csname pgfplots@#1max\endcsname}% |
| 7298 |
\expandafter\let\csname pgfplots@#1max@unscaled@as@float\endcsname=\pgfmathresult |
| 7299 |
}{}% |
| 7300 |
}% |
| 7301 |
|
| 7302 |
% Invokes #3 if ||D_#1||_CANVAS < ||D_#2||_CANVAS and #4 if that is not the case. |
| 7303 |
% Here D_x = (1,0,0) , D_y = (0,1,0) and D_z=(0,0,1). |
| 7304 |
% |
| 7305 |
% Due to the data scaling transformation, |
| 7306 |
% ||D_a|| = || T(1) * e_a|| |
| 7307 |
% where e_x, e_y, e_z are the lowlevel, transformed unit vectors. |
| 7308 |
% We have |
| 7309 |
% ||D_a|| = T(1) * veclen_a. |
| 7310 |
% Note that the shift in T is not of interest, we only deal with |
| 7311 |
% T_a(x) = 10^{s_a} x. |
| 7312 |
% |
| 7313 |
% Thus, this routine invokes #3 if |
| 7314 |
% ( 10^{s1} * veclen1 < 10^{s2} * veclen2 ) |
| 7315 |
% <=> |
| 7316 |
% ( 10^{s1-s2} * veclen1 < veclen2 ). |
| 7317 |
% |
| 7318 |
% Here s1/s2 are the respective scales of the data scaling |
| 7319 |
% transformation. |
| 7320 |
% |
| 7321 |
% If the condition is false, '#4' is invoked. |
| 7322 |
\def\pgfplots@if@unitveclenlessthan@untransformed#1#2#3#4{% |
| 7323 |
\def\pgfplots@loc@TMPa{0}% |
| 7324 |
\def\pgfplots@loc@TMPb{0}% |
| 7325 |
\pgfplots@if{pgfplots@apply@datatrafo@#1}{% |
| 7326 |
\pgfplots@letcsname{pgfplots@loc@TMPa}={pgfplots@data@scale@trafo@EXPONENT@#1}% |
| 7327 |
}{}% |
| 7328 |
\pgfplots@if{pgfplots@apply@datatrafo@#2}{% |
| 7329 |
\pgfplots@letcsname{pgfplots@loc@TMPb}={pgfplots@data@scale@trafo@EXPONENT@#2}% |
| 7330 |
}{}% |
| 7331 |
\begingroup |
| 7332 |
%\message{[comparison: [#1] < [#2]: 10^\pgfplots@loc@TMPa\space * \csname pgfplots@#1@veclength\endcsname < 10^\pgfplots@loc@TMPb\space * \csname pgfplots@#2@veclength\endcsname]^^J}% |
| 7333 |
\pgf@xb=\csname pgfplots@#2@veclength\endcsname pt |
| 7334 |
% |
| 7335 |
\c@pgf@counta=\pgfplots@loc@TMPa |
| 7336 |
\advance\c@pgf@counta by-\pgfplots@loc@TMPb |
| 7337 |
% |
| 7338 |
\ifnum\c@pgf@counta=0 |
| 7339 |
\pgf@xa=\csname pgfplots@#1@veclength\endcsname pt |
| 7340 |
\else |
| 7341 |
\pgfplotsmathmultiplypowten@{\csname pgfplots@#1@veclength\endcsname}{\c@pgf@counta}% |
| 7342 |
\pgf@xa=\pgfmathresult pt |
| 7343 |
\fi |
| 7344 |
% |
| 7345 |
\ifdim\pgf@xa<\pgf@xb |
| 7346 |
\gdef\pgfplots@glob@TMPc{1}% |
| 7347 |
\else |
| 7348 |
\gdef\pgfplots@glob@TMPc{0}% |
| 7349 |
\fi |
| 7350 |
\endgroup |
| 7351 |
\if1\pgfplots@glob@TMPc #3\else #4\fi |
| 7352 |
}% |
| 7353 |
|
| 7354 |
|
| 7355 |
\def\pgfplots@low@level@shape@INNER@define{% |
| 7356 |
\anchor{image}{\pgfpointorigin}% |
| 7357 |
% |
| 7358 |
% |
| 7359 |
\anchor{center}{\pgfplotsqpointdescriptionxy{0.5}{0.5}}% |
| 7360 |
\anchor{north}{\pgfplotsqpointdescriptionxy{0.5}{1}}% |
| 7361 |
\anchor{north east}{\pgfplotsqpointdescriptionxy{1}{1}}% |
| 7362 |
\anchor{east}{\pgfplotsqpointdescriptionxy{1}{0.5}} |
| 7363 |
\anchor{south east}{\pgfplotsqpointdescriptionxy{1}{0}}% |
| 7364 |
\anchor{south}{\pgfplotsqpointdescriptionxy{0.5}{0}}% |
| 7365 |
\anchor{south west}{\pgfplotsqpointdescriptionxy{0}{0}}% |
| 7366 |
\anchor{west}{\pgfplotsqpointdescriptionxy{0}{0.5}}% |
| 7367 |
\anchor{north west}{\pgfplotsqpointdescriptionxy{0}{1}}% |
| 7368 |
%% |
| 7369 |
\anchor{origin}{\pgfplotspointaxisorigin}% |
| 7370 |
\anchor{above origin}{% |
| 7371 |
\pgfpointintersectionoflines |
| 7372 |
{\pgfplotspointaxisorigin} |
| 7373 |
{\pgfpointadd |
| 7374 |
{\pgfplotspointaxisorigin}% |
| 7375 |
{\pgfplotspointyaxis |
| 7376 |
\pgfplots@assert@not@zero{\pgf@y}{y axis has eyy=0; cannot compute above origin anchor}% |
| 7377 |
}% |
| 7378 |
}% |
| 7379 |
{\pgfplotsqpointdescriptionxy{0}{1}} |
| 7380 |
{\pgfplotsqpointdescriptionxy{1}{1}}% |
| 7381 |
}% |
| 7382 |
\anchor{left of origin}{% |
| 7383 |
\pgfpointintersectionoflines |
| 7384 |
{\pgfplotspointaxisorigin} |
| 7385 |
{\pgfpointadd{\pgfplotspointaxisorigin}{\pgfplotspointxaxis}} |
| 7386 |
{\pgfplotsqpointdescriptionxy{0}{0}} |
| 7387 |
{\pgfplotsqpointdescriptionxy{0}{1}}% |
| 7388 |
}% |
| 7389 |
\anchor{right of origin}{% |
| 7390 |
\pgfpointintersectionoflines |
| 7391 |
{\pgfplotspointaxisorigin} |
| 7392 |
{\pgfpointadd{\pgfplotspointaxisorigin}{\pgfplotspointxaxis}} |
| 7393 |
{\pgfplotsqpointdescriptionxy{1}{0}} |
| 7394 |
{\pgfplotsqpointdescriptionxy{1}{1}}% |
| 7395 |
}% |
| 7396 |
\anchor{below origin}{% |
| 7397 |
\pgfpointintersectionoflines |
| 7398 |
{\pgfplotspointaxisorigin} |
| 7399 |
{\pgfpointadd{\pgfplotspointaxisorigin}{\pgfplotspointyaxis}} |
| 7400 |
{\pgfplotsqpointdescriptionxy{0}{0}} |
| 7401 |
{\pgfplotsqpointdescriptionxy{1}{0}}% |
| 7402 |
}% |
| 7403 |
} |
| 7404 |
|
| 7405 |
% This here is a low-weight node. It can ONLY be used during axis |
| 7406 |
% descriptions and is completely useless otherwise. |
| 7407 |
% |
| 7408 |
% See pgfplots@low@level@shape below. |
| 7409 |
\pgfdeclareshape{pgfplots@low@level@shape@INNER}{% |
| 7410 |
\nodeparts{image}% |
| 7411 |
%% |
| 7412 |
%% |
| 7413 |
\pgfplots@low@level@shape@INNER@define |
| 7414 |
%% |
| 7415 |
%% |
| 7416 |
\anchorborder{}% |
| 7417 |
\backgroundpath{}% |
| 7418 |
\foregroundpath{}% |
| 7419 |
\behindbackgroundpath{}% |
| 7420 |
\beforebackgroundpath{}% |
| 7421 |
\behindforegroundpath{}% |
| 7422 |
\beforeforegroundpath{}% |
| 7423 |
} |
| 7424 |
|
| 7425 |
% This is the main axis shape. |
| 7426 |
% |
| 7427 |
% It has one node part, which is the complete image. It provides a lot |
| 7428 |
% of anchors. |
| 7429 |
\pgfdeclareshape{pgfplots@low@level@shape}{% |
| 7430 |
% The '(0,0)' point is the LOWER LEFT OUTER CORNER. |
| 7431 |
\savedanchor\upperrightcorner{% |
| 7432 |
\pgfplotspointupperrightcorner |
| 7433 |
}% |
| 7434 |
\savedanchor\lowerleftinnercorner{% |
| 7435 |
\pgfplotspointlowerleftinnercorner% |
| 7436 |
}% |
| 7437 |
\savedanchor\innerdiagonal{\pgfplotspointbbdiagonal}% |
| 7438 |
\savedanchor\origin{% |
| 7439 |
\pgfplotspointaxisorigin |
| 7440 |
}% |
| 7441 |
% |
| 7442 |
\nodeparts{image}% |
| 7443 |
\anchor{image}{% |
| 7444 |
\global\pgf@x=0pt % |
| 7445 |
\global\pgf@y=0pt % |
| 7446 |
}% |
| 7447 |
% |
| 7448 |
\anchor{center}{% |
| 7449 |
\pgfpointadd |
| 7450 |
{\lowerleftinnercorner}% |
| 7451 |
{\pgfpointscale |
| 7452 |
{0.5} |
| 7453 |
{\innerdiagonal}}% |
| 7454 |
}% |
| 7455 |
\anchor{north}{% |
| 7456 |
\pgfpointadd |
| 7457 |
{\lowerleftinnercorner} |
| 7458 |
{\innerdiagonal\global\divide\pgf@x by2 }% |
| 7459 |
}% |
| 7460 |
\anchor{north east}{% |
| 7461 |
\pgfpointadd |
| 7462 |
\lowerleftinnercorner |
| 7463 |
\innerdiagonal |
| 7464 |
}% |
| 7465 |
\anchor{east}{% |
| 7466 |
\pgfpointadd |
| 7467 |
\lowerleftinnercorner |
| 7468 |
{\innerdiagonal\global\divide\pgf@y by2 }% |
| 7469 |
}% |
| 7470 |
\anchor{south east}{% |
| 7471 |
\pgfpointadd |
| 7472 |
\lowerleftinnercorner |
| 7473 |
{\innerdiagonal\global\pgf@y=0sp }% |
| 7474 |
}% |
| 7475 |
\anchor{south}{% |
| 7476 |
\pgfpointadd |
| 7477 |
\lowerleftinnercorner |
| 7478 |
{\innerdiagonal\global\divide\pgf@x by2 \global\pgf@y=0sp }% |
| 7479 |
}% |
| 7480 |
\anchor{south west}{\lowerleftinnercorner}% |
| 7481 |
\anchor{west}{% |
| 7482 |
\pgfpointadd |
| 7483 |
\lowerleftinnercorner |
| 7484 |
{\innerdiagonal\global\pgf@x=0sp \global\divide\pgf@y by2 }% |
| 7485 |
} |
| 7486 |
\anchor{north west}{% |
| 7487 |
\pgfpointadd |
| 7488 |
\lowerleftinnercorner |
| 7489 |
{\innerdiagonal\global\pgf@x=0sp }% |
| 7490 |
}% |
| 7491 |
%% |
| 7492 |
\anchor{origin}{% |
| 7493 |
\origin |
| 7494 |
}% |
| 7495 |
\anchor{above origin}{% |
| 7496 |
\pgfpointintersectionoflines |
| 7497 |
{\origin} |
| 7498 |
{\pgfpointadd{\origin}{% |
| 7499 |
\innerdiagonal\global\pgf@x=0sp |
| 7500 |
\pgfplots@assert@not@zero{\pgf@y}{y axis has eyy=0; cannot compute above origin anchor}% |
| 7501 |
}% |
| 7502 |
}% |
| 7503 |
{\pgfpointadd{\lowerleftinnercorner}{\innerdiagonal\global\pgf@x=0sp }} |
| 7504 |
{\pgfpointadd{\lowerleftinnercorner}{\innerdiagonal}}% |
| 7505 |
}% |
| 7506 |
\anchor{left of origin}{% |
| 7507 |
\pgfpointintersectionoflines |
| 7508 |
{\origin} |
| 7509 |
{\pgfpointadd{\origin}{\innerdiagonal\global\multiply\pgf@x by-1 \global\pgf@y=0sp }} |
| 7510 |
{\lowerleftinnercorner} |
| 7511 |
{\pgfpointadd{\lowerleftinnercorner}{\innerdiagonal\global\pgf@x=0sp }}% |
| 7512 |
}% |
| 7513 |
\anchor{right of origin}{% |
| 7514 |
\pgfpointintersectionoflines |
| 7515 |
{\origin} |
| 7516 |
{\pgfpointadd{\origin}{\innerdiagonal\global\pgf@y=0sp }} |
| 7517 |
{\pgfpointadd{\lowerleftinnercorner}{\innerdiagonal\global\pgf@y=0sp }} |
| 7518 |
{\pgfpointadd{\lowerleftinnercorner}{\innerdiagonal}}% |
| 7519 |
}% |
| 7520 |
\anchor{below origin}{% |
| 7521 |
\pgfpointintersectionoflines |
| 7522 |
{\origin} |
| 7523 |
{\pgfpointadd{\origin}{\innerdiagonal\global\pgf@x=0sp \global\multiply\pgf@y by-1 }} |
| 7524 |
{\lowerleftinnercorner} |
| 7525 |
{\pgfpointadd{\lowerleftinnercorner}{\innerdiagonal\global\pgf@y=0sp }}% |
| 7526 |
}% |
| 7527 |
% |
| 7528 |
%% |
| 7529 |
% |
| 7530 |
\anchor{outer north}{% |
| 7531 |
\upperrightcorner |
| 7532 |
\global\pgf@x=.5\pgf@x |
| 7533 |
}% |
| 7534 |
\anchor{outer north east}{\upperrightcorner}% |
| 7535 |
\anchor{outer east}{% |
| 7536 |
\upperrightcorner |
| 7537 |
\global\pgf@y=.5\pgf@y |
| 7538 |
}% |
| 7539 |
\anchor{outer south east}{% |
| 7540 |
\upperrightcorner |
| 7541 |
\global\pgf@y=0pt |
| 7542 |
}% |
| 7543 |
\anchor{outer south}{% |
| 7544 |
\upperrightcorner |
| 7545 |
\global\pgf@x=.5\pgf@x |
| 7546 |
\global\pgf@y=0pt |
| 7547 |
}% |
| 7548 |
\anchor{outer south west}{% |
| 7549 |
\global\pgf@x=0pt |
| 7550 |
\global\pgf@y=0pt |
| 7551 |
}% |
| 7552 |
\anchor{outer west}{% |
| 7553 |
\upperrightcorner |
| 7554 |
\global\pgf@x=0pt |
| 7555 |
\global\pgf@y=.5\pgf@y |
| 7556 |
}% |
| 7557 |
\anchor{outer north west}{% |
| 7558 |
\upperrightcorner |
| 7559 |
\global\pgf@x=0pt |
| 7560 |
}% |
| 7561 |
\anchor{outer center}{% |
| 7562 |
\upperrightcorner |
| 7563 |
\global\pgf@x=.5\pgf@x |
| 7564 |
\global\pgf@y=.5\pgf@y |
| 7565 |
}% |
| 7566 |
% |
| 7567 |
% |
| 7568 |
%% |
| 7569 |
%% |
| 7570 |
\anchor{above north}{% |
| 7571 |
\upperrightcorner |
| 7572 |
\pgfutil@tempdima=\pgf@y |
| 7573 |
\pgfpointadd |
| 7574 |
{\lowerleftinnercorner} |
| 7575 |
{\innerdiagonal\divide\pgf@x by2 }% |
| 7576 |
\global\pgf@y=\pgfutil@tempdima |
| 7577 |
}% |
| 7578 |
\anchor{above north east}{% |
| 7579 |
\upperrightcorner |
| 7580 |
\pgfutil@tempdima=\pgf@y |
| 7581 |
\pgfpointadd |
| 7582 |
\lowerleftinnercorner |
| 7583 |
\innerdiagonal |
| 7584 |
\global\pgf@y=\pgfutil@tempdima |
| 7585 |
}% |
| 7586 |
\anchor{right of north east}{% |
| 7587 |
\upperrightcorner |
| 7588 |
\pgfutil@tempdima=\pgf@x |
| 7589 |
\pgfpointadd |
| 7590 |
\lowerleftinnercorner |
| 7591 |
\innerdiagonal |
| 7592 |
\global\pgf@x=\pgfutil@tempdima |
| 7593 |
}% |
| 7594 |
\anchor{right of east}{% |
| 7595 |
\upperrightcorner |
| 7596 |
\pgfutil@tempdima=\pgf@x |
| 7597 |
\pgfpointadd |
| 7598 |
\lowerleftinnercorner |
| 7599 |
{\innerdiagonal\global\divide\pgf@y by2 }% |
| 7600 |
\global\pgf@x=\pgfutil@tempdima |
| 7601 |
}% |
| 7602 |
\anchor{right of south east}{% |
| 7603 |
\upperrightcorner |
| 7604 |
\pgfutil@tempdima=\pgf@x |
| 7605 |
\pgfpointadd |
| 7606 |
\lowerleftinnercorner |
| 7607 |
{\innerdiagonal\global\pgf@y=0sp }% |
| 7608 |
\global\pgf@x=\pgfutil@tempdima |
| 7609 |
}% |
| 7610 |
\anchor{below south east}{% |
| 7611 |
\pgfpointadd |
| 7612 |
\lowerleftinnercorner |
| 7613 |
{\innerdiagonal\global\pgf@y=0sp }% |
| 7614 |
\global\pgf@y=0pt |
| 7615 |
}% |
| 7616 |
\anchor{below south}{% |
| 7617 |
\pgfpointadd |
| 7618 |
\lowerleftinnercorner |
| 7619 |
{\innerdiagonal\global\divide\pgf@x by2 \global\pgf@y=0sp }% |
| 7620 |
\pgf@y=0pt |
| 7621 |
}% |
| 7622 |
\anchor{below south west}{% |
| 7623 |
\lowerleftinnercorner |
| 7624 |
\global\pgf@y=0pt |
| 7625 |
}% |
| 7626 |
\anchor{left of south west}{% |
| 7627 |
\lowerleftinnercorner |
| 7628 |
\global\pgf@x=0pt |
| 7629 |
}% |
| 7630 |
\anchor{left of west}{% |
| 7631 |
\pgfpointadd |
| 7632 |
\lowerleftinnercorner |
| 7633 |
{\innerdiagonal\global\pgf@x=0sp \global\divide\pgf@y by2 }% |
| 7634 |
\global\pgf@x=0pt |
| 7635 |
}% |
| 7636 |
\anchor{left of north west}{% |
| 7637 |
\pgfpointadd |
| 7638 |
\lowerleftinnercorner |
| 7639 |
{\innerdiagonal\global\pgf@x=0sp }% |
| 7640 |
\global\pgf@x=0pt |
| 7641 |
}% |
| 7642 |
\anchor{above north west}{% |
| 7643 |
\upperrightcorner |
| 7644 |
\pgfutil@tempdima=\pgf@y |
| 7645 |
\pgfpointadd |
| 7646 |
\lowerleftinnercorner |
| 7647 |
{\innerdiagonal\global\pgf@x=0sp }% |
| 7648 |
\global\pgf@y=\pgfutil@tempdima |
| 7649 |
}% |
| 7650 |
%% |
| 7651 |
%% |
| 7652 |
\anchorborder{% |
| 7653 |
% remember the input coords: |
| 7654 |
\edef\pgfplots@loc@TMPa{\pgf@x=\the\pgf@x\space\pgf@y=\the\pgf@y\space}% |
| 7655 |
% |
| 7656 |
% I want to use \pgfpointborderrectangle which expects that |
| 7657 |
% (0,0) is the CENTER. |
| 7658 |
% Ok, then: shift it: |
| 7659 |
\pgfpointadd |
| 7660 |
{\lowerleftinnercorner}% |
| 7661 |
{\pgfpointscale |
| 7662 |
{0.5} |
| 7663 |
{\innerdiagonal}}% |
| 7664 |
\edef\pgfplots@loc@center{\pgf@x=\the\pgf@x\space\pgf@y=\the\pgf@y\space}% |
| 7665 |
\pgfpointadd{% |
| 7666 |
\pgfpointborderrectangle% |
| 7667 |
{\pgfplots@loc@TMPa}% |
| 7668 |
{\pgfpointscale |
| 7669 |
{0.5} |
| 7670 |
{\innerdiagonal}}% |
| 7671 |
}{% |
| 7672 |
% and add the center to undo the local shift: |
| 7673 |
\pgfplots@loc@center |
| 7674 |
}% |
| 7675 |
}% |
| 7676 |
\backgroundpath{% |
| 7677 |
\pgfkeysvalueof{/pgfplots/@backgroundpath@hook/.@cmd}\pgfeov |
| 7678 |
\pgfpathrectangle{\pgfpointorigin}{\upperrightcorner}% |
| 7679 |
}% |
| 7680 |
\foregroundpath{}% |
| 7681 |
\behindbackgroundpath{}% |
| 7682 |
\beforebackgroundpath{}% |
| 7683 |
\behindforegroundpath{}% |
| 7684 |
\beforeforegroundpath{}% |
| 7685 |
} |
| 7686 |
|
| 7687 |
\def\pgfplots@restore@deprecated@lowlevel@shape{% |
| 7688 |
\pgfutil@ifundefined{pgfplots@low@level@shape@deprecated@isdefined}{% |
| 7689 |
\gdef\pgfplots@low@level@shape@deprecated@isdefined{1}% |
| 7690 |
% |
| 7691 |
% all these assignments are global, so it is save to call this |
| 7692 |
% macro inside of scopes: |
| 7693 |
\pgfdeclareshape{pgfplots@low@level@shape@deprecated}{% |
| 7694 |
% The '(0,0)' point is the LOWER LEFT OUTER CORNER. |
| 7695 |
\savedanchor\upperrightcorner{ |
| 7696 |
% FIXME : is this correct? |
| 7697 |
\pgfplotspointupperrightcorner |
| 7698 |
%\global\pgf@x=\wd\pgfnodepartimagebox |
| 7699 |
%\global\pgf@y=\ht\pgfnodepartimagebox |
| 7700 |
}% |
| 7701 |
\savedanchor\lowerleftinnercorner{% |
| 7702 |
\pgfplotspointlowerleftinnercorner% |
| 7703 |
}% |
| 7704 |
\savedanchor\xaxisvec{\pgfplotspointxaxis}% |
| 7705 |
\savedanchor\yaxisvec{\pgfplotspointyaxis}% |
| 7706 |
\savedanchor\origin{% |
| 7707 |
\pgfplotspointaxisorigin |
| 7708 |
}% |
| 7709 |
% |
| 7710 |
\nodeparts{image}% |
| 7711 |
\anchor{image}{% |
| 7712 |
\global\pgf@x=0pt % |
| 7713 |
\global\pgf@y=0pt % |
| 7714 |
}% |
| 7715 |
% |
| 7716 |
% |
| 7717 |
\anchor{center}{% |
| 7718 |
\pgfpointadd |
| 7719 |
{\lowerleftinnercorner}% |
| 7720 |
{\pgfpointscale{0.5}{\pgfpointadd{\xaxisvec}{\yaxisvec}}}% |
| 7721 |
}% |
| 7722 |
\anchor{north}{% |
| 7723 |
\pgfpointadd |
| 7724 |
{\lowerleftinnercorner}% |
| 7725 |
{\pgfpointadd{\yaxisvec}{\pgfpointscale{0.5}{\xaxisvec}}}% |
| 7726 |
}% |
| 7727 |
\anchor{north east}{% |
| 7728 |
\pgfpointadd |
| 7729 |
{\lowerleftinnercorner}% |
| 7730 |
{\pgfpointadd{\yaxisvec}{\xaxisvec}}% |
| 7731 |
}% |
| 7732 |
\anchor{east}{% |
| 7733 |
\pgfpointadd |
| 7734 |
{\lowerleftinnercorner}% |
| 7735 |
{\pgfpointadd{\xaxisvec}{\pgfpointscale{0.5}{\yaxisvec}}}% |
| 7736 |
}% |
| 7737 |
\anchor{south east}{% |
| 7738 |
\pgfpointadd |
| 7739 |
{\lowerleftinnercorner}% |
| 7740 |
{\xaxisvec}% |
| 7741 |
}% |
| 7742 |
\anchor{south}{% |
| 7743 |
\pgfpointadd |
| 7744 |
{\lowerleftinnercorner}% |
| 7745 |
{\pgfpointscale{0.5}{\xaxisvec}}% |
| 7746 |
}% |
| 7747 |
\anchor{south west}{\lowerleftinnercorner}% |
| 7748 |
\anchor{west}{% |
| 7749 |
\pgfpointadd |
| 7750 |
{\lowerleftinnercorner}% |
| 7751 |
{\pgfpointscale{0.5}{\yaxisvec}}% |
| 7752 |
}% |
| 7753 |
\anchor{north west}{% |
| 7754 |
\pgfpointadd |
| 7755 |
{\lowerleftinnercorner}% |
| 7756 |
{\yaxisvec}% |
| 7757 |
}% |
| 7758 |
%% |
| 7759 |
\anchor{origin}{% |
| 7760 |
\origin |
| 7761 |
}% |
| 7762 |
\anchor{above origin}{% |
| 7763 |
\pgfpointintersectionoflines |
| 7764 |
{\origin} |
| 7765 |
{\pgfpointadd{\origin}{\yaxisvec}} |
| 7766 |
{\pgfpointadd{\lowerleftinnercorner}{\yaxisvec}} |
| 7767 |
{\pgfpointadd{\pgfpointadd{\lowerleftinnercorner}{\yaxisvec}}{\xaxisvec}}% |
| 7768 |
}% |
| 7769 |
\anchor{left of origin}{% |
| 7770 |
\pgfpointintersectionoflines |
| 7771 |
{\origin} |
| 7772 |
{\pgfpointadd{\origin}{\pgfpointscale{-1}{\xaxisvec}}} |
| 7773 |
{\lowerleftinnercorner} |
| 7774 |
{\pgfpointadd{\lowerleftinnercorner}{\yaxisvec}}% |
| 7775 |
}% |
| 7776 |
\anchor{right of origin}{% |
| 7777 |
\pgfpointintersectionoflines |
| 7778 |
{\origin} |
| 7779 |
{\pgfpointadd{\origin}{\xaxisvec}} |
| 7780 |
{\pgfpointadd{\lowerleftinnercorner}{\xaxisvec}} |
| 7781 |
{\pgfpointadd{\pgfpointadd{\lowerleftinnercorner}{\xaxisvec}}{\yaxisvec}}% |
| 7782 |
}% |
| 7783 |
\anchor{below origin}{% |
| 7784 |
\pgfpointintersectionoflines |
| 7785 |
{\origin} |
| 7786 |
{\pgfpointadd{\origin}{\pgfpointscale{-1}{\yaxisvec}}} |
| 7787 |
{\lowerleftinnercorner} |
| 7788 |
{\pgfpointadd{\lowerleftinnercorner}{\xaxisvec}}% |
| 7789 |
}% |
| 7790 |
% |
| 7791 |
%% |
| 7792 |
% |
| 7793 |
\anchor{outer north}{% |
| 7794 |
\upperrightcorner |
| 7795 |
\global\pgf@x=.5\pgf@x |
| 7796 |
}% |
| 7797 |
\anchor{outer north east}{\upperrightcorner}% |
| 7798 |
\anchor{outer east}{% |
| 7799 |
\upperrightcorner |
| 7800 |
\global\pgf@y=.5\pgf@y |
| 7801 |
}% |
| 7802 |
\anchor{outer south east}{% |
| 7803 |
\upperrightcorner |
| 7804 |
\global\pgf@y=0pt |
| 7805 |
}% |
| 7806 |
\anchor{outer south}{% |
| 7807 |
\upperrightcorner |
| 7808 |
\global\pgf@x=.5\pgf@x |
| 7809 |
\global\pgf@y=0pt |
| 7810 |
}% |
| 7811 |
\anchor{outer south west}{% |
| 7812 |
\global\pgf@x=0pt |
| 7813 |
\global\pgf@y=0pt |
| 7814 |
}% |
| 7815 |
\anchor{outer west}{% |
| 7816 |
\upperrightcorner |
| 7817 |
\global\pgf@x=0pt |
| 7818 |
\global\pgf@y=.5\pgf@y |
| 7819 |
}% |
| 7820 |
\anchor{outer north west}{% |
| 7821 |
\upperrightcorner |
| 7822 |
\global\pgf@x=0pt |
| 7823 |
}% |
| 7824 |
\anchor{outer center}{% |
| 7825 |
\upperrightcorner |
| 7826 |
\global\pgf@x=.5\pgf@x |
| 7827 |
\global\pgf@y=.5\pgf@y |
| 7828 |
}% |
| 7829 |
% |
| 7830 |
% |
| 7831 |
%% |
| 7832 |
%% |
| 7833 |
\anchor{above north}{% |
| 7834 |
\upperrightcorner |
| 7835 |
\pgfutil@tempdima=\pgf@y |
| 7836 |
\pgfpointadd |
| 7837 |
{\lowerleftinnercorner}% |
| 7838 |
{\pgfpointadd{\yaxisvec}{\pgfpointscale{0.5}{\xaxisvec}}}% |
| 7839 |
\global\pgf@y=\pgfutil@tempdima |
| 7840 |
}% |
| 7841 |
\anchor{above north east}{% |
| 7842 |
\upperrightcorner |
| 7843 |
\pgfutil@tempdima=\pgf@y |
| 7844 |
\pgfpointadd |
| 7845 |
{\lowerleftinnercorner}% |
| 7846 |
{\pgfpointadd{\yaxisvec}{\xaxisvec}}% |
| 7847 |
\global\pgf@y=\pgfutil@tempdima |
| 7848 |
}% |
| 7849 |
\anchor{right of north east}{% |
| 7850 |
\upperrightcorner |
| 7851 |
\pgfutil@tempdima=\pgf@x |
| 7852 |
\pgfpointadd |
| 7853 |
{\lowerleftinnercorner}% |
| 7854 |
{\pgfpointadd{\yaxisvec}{\xaxisvec}}% |
| 7855 |
\global\pgf@x=\pgfutil@tempdima |
| 7856 |
}% |
| 7857 |
\anchor{right of east}{% |
| 7858 |
\upperrightcorner |
| 7859 |
\pgfutil@tempdima=\pgf@x |
| 7860 |
\pgfpointadd |
| 7861 |
{\lowerleftinnercorner}% |
| 7862 |
{\pgfpointadd{\xaxisvec}{\pgfpointscale{0.5}{\yaxisvec}}}% |
| 7863 |
\global\pgf@x=\pgfutil@tempdima |
| 7864 |
}% |
| 7865 |
\anchor{right of south east}{% |
| 7866 |
\upperrightcorner |
| 7867 |
\pgfutil@tempdima=\pgf@x |
| 7868 |
\pgfpointadd |
| 7869 |
{\lowerleftinnercorner}% |
| 7870 |
{\xaxisvec}% |
| 7871 |
\global\pgf@x=\pgfutil@tempdima |
| 7872 |
}% |
| 7873 |
\anchor{below south east}{% |
| 7874 |
\pgfpointadd |
| 7875 |
{\lowerleftinnercorner}% |
| 7876 |
{\xaxisvec}% |
| 7877 |
\global\pgf@y=0pt |
| 7878 |
}% |
| 7879 |
\anchor{below south}{% |
| 7880 |
\pgfpointadd |
| 7881 |
{\lowerleftinnercorner}% |
| 7882 |
{\pgfpointscale{0.5}{\xaxisvec}}% |
| 7883 |
\global\pgf@y=0pt |
| 7884 |
}% |
| 7885 |
\anchor{below south west}{% |
| 7886 |
\lowerleftinnercorner |
| 7887 |
\global\pgf@y=0pt |
| 7888 |
}% |
| 7889 |
\anchor{left of south west}{% |
| 7890 |
\lowerleftinnercorner |
| 7891 |
\global\pgf@x=0pt |
| 7892 |
}% |
| 7893 |
\anchor{left of west}{% |
| 7894 |
\pgfpointadd |
| 7895 |
{\lowerleftinnercorner}% |
| 7896 |
{\pgfpointscale{0.5}{\yaxisvec}}% |
| 7897 |
\global\pgf@x=0pt |
| 7898 |
}% |
| 7899 |
\anchor{left of north west}{% |
| 7900 |
\pgfpointadd |
| 7901 |
{\lowerleftinnercorner}% |
| 7902 |
{\yaxisvec}% |
| 7903 |
\global\pgf@x=0pt |
| 7904 |
}% |
| 7905 |
\anchor{above north west}{% |
| 7906 |
\upperrightcorner |
| 7907 |
\pgfutil@tempdima=\pgf@y |
| 7908 |
\pgfpointadd |
| 7909 |
{\lowerleftinnercorner}% |
| 7910 |
{\yaxisvec}% |
| 7911 |
\global\pgf@y=\pgfutil@tempdima |
| 7912 |
}% |
| 7913 |
%% |
| 7914 |
%% |
| 7915 |
\anchorborder{% |
| 7916 |
% Call a function that computes a border point. Since this |
| 7917 |
% function will modify dimensions like \pgf@x, we must move them to |
| 7918 |
% other dimensions. |
| 7919 |
\pgfutil@tempdima=\pgf@x |
| 7920 |
\pgfutil@tempdimb=\pgf@y |
| 7921 |
\pgfpointborderrectangle% |
| 7922 |
{\pgfpoint{\pgfutil@tempdima}{\pgfutil@tempdimb}}% |
| 7923 |
{\upperrightcorner}% |
| 7924 |
}% |
| 7925 |
\backgroundpath{% |
| 7926 |
\pgfkeysvalueof{/pgfplots/@backgroundpath@hook/.@cmd}\pgfeov |
| 7927 |
\pgfpathrectangle{\pgfpointorigin}{\upperrightcorner}% |
| 7928 |
}% |
| 7929 |
\foregroundpath{}% |
| 7930 |
\behindbackgroundpath{}% |
| 7931 |
\beforebackgroundpath{}% |
| 7932 |
\behindforegroundpath{}% |
| 7933 |
\beforeforegroundpath{}% |
| 7934 |
}% |
| 7935 |
}{}% |
| 7936 |
}% |
| 7937 |
|
| 7938 |
|
| 7939 |
% Defines a new axis type `#1' with initialization code `#2'. |
| 7940 |
% |
| 7941 |
% The name #1 will be available as value for 'axis type=#1' and |
| 7942 |
% furthermore, an environment '\begin{#1axis}' will be available. |
| 7943 |
% |
| 7944 |
% For ConTeXt, the \start#1axis and \stop#1axis commands will be |
| 7945 |
% available. |
| 7946 |
% |
| 7947 |
% #1: the axis type name |
| 7948 |
% #2: initialization TeX code. |
| 7949 |
% |
| 7950 |
% OPTIONAL: you can provide the expected axis coordinate system in |
| 7951 |
% square brackets. |
| 7952 |
% |
| 7953 |
% \pgfplotsdefineaxistype{rectangle}{...} |
| 7954 |
% \pgfplotsdefineaxistype[polar]{polar}{...} |
| 7955 |
\def\pgfplotsdefineaxistype{\pgfutil@ifnextchar[{\pgfplotsdefineaxistype@}{\pgfplotsdefineaxistype@[cart]}}% |
| 7956 |
\def\pgfplotsdefineaxistype@[#1]#2#3{% |
| 7957 |
\expandafter\def\csname pgfplots@axistype@#2\endcsname{% |
| 7958 |
\pgfkeyssetvalue{/pgfplots/@expected axis cs}{#1}% |
| 7959 |
#3% |
| 7960 |
}% |
| 7961 |
\expandafter\def\csname pgfplots@environment@#2axis\endcsname{% |
| 7962 |
\pgfutil@ifnextchar[% |
| 7963 |
{\csname pgfplots@environment@#2axis@\endcsname}% |
| 7964 |
{\csname pgfplots@environment@#2axis@\endcsname[]}% |
| 7965 |
}% |
| 7966 |
\expandafter\long\expandafter\def\csname pgfplots@environment@#2axis@\endcsname[##1]{% |
| 7967 |
\axis[% |
| 7968 |
##1,% |
| 7969 |
data cs=#1,% assume that coordinates provided by \addplot are in the correct coordsystem |
| 7970 |
axis type=#2% active the correct axis type |
| 7971 |
]% |
| 7972 |
}% |
| 7973 |
\expandafter\def\csname endpgfplots@environment@#2axis\endcsname{\endaxis}% |
| 7974 |
\edef\pgfplots@glob@TMPc{\expandafter\noexpand\csname #2axis\endcsname\expandafter\noexpand\csname pgfplots@environment@#2axis\endcsname}% |
| 7975 |
\expandafter |
| 7976 |
\tikzaddtikzonlycommandshortcutlet\pgfplots@glob@TMPc |
| 7977 |
% |
| 7978 |
\edef\pgfplots@glob@TMPc{\expandafter\noexpand\csname end#2axis\endcsname\expandafter\noexpand\csname endpgfplots@environment@#2axis\endcsname}% |
| 7979 |
\expandafter |
| 7980 |
\tikzaddtikzonlycommandshortcutlet\pgfplots@glob@TMPc |
| 7981 |
% |
| 7982 |
% ConTeXt compatibility: |
| 7983 |
\t@pgfplots@toka=\expandafter{\csname #2axis\endcsname}% |
| 7984 |
\t@pgfplots@tokb=\expandafter{\csname end#2axis\endcsname}% |
| 7985 |
\expandafter\edef\csname start#2axis\endcsname{\the\t@pgfplots@toka}% |
| 7986 |
\expandafter\edef\csname stop#2axis\endcsname{\the\t@pgfplots@tokb}% |
| 7987 |
}% |
| 7988 |
|
| 7989 |
\def\pgfplotssetaxistype#1{% |
| 7990 |
\pgfutil@IfUndefined{pgfplots@axistype@#1}{% |
| 7991 |
\pgfplots@error{Sorry, 'axis type=#1' is unknown. Maybe you need to load a proper library first or you misspelled the name? Ignoring it}% |
| 7992 |
}{% |
| 7993 |
\csname pgfplots@axistype@#1\endcsname |
| 7994 |
}% |
| 7995 |
}% |
| 7996 |
|
| 7997 |
% A command which has to be invoked BEFORE \pgfplots@draw@axis to |
| 7998 |
% prepare everything. |
| 7999 |
\def\pgfplots@draw@axis@pre{% |
| 8000 |
% Preparation for axis lines and discontinuities: |
| 8001 |
\pgfplots@drawaxis@lines@preparediscont@for{x}% |
| 8002 |
\pgfplots@drawaxis@lines@preparediscont@for{y}% |
| 8003 |
\ifpgfplots@threedim |
| 8004 |
\pgfplots@drawaxis@lines@preparediscont@for{z}% |
| 8005 |
\fi |
| 8006 |
\ifpgfplots@threedim |
| 8007 |
\pgfplots@separate@axis@linestrue |
| 8008 |
\else |
| 8009 |
\if\pgfplots@xaxislinesnum0\else |
| 8010 |
\pgfplots@separate@axis@linestrue |
| 8011 |
\fi |
| 8012 |
\if\pgfplots@yaxislinesnum0\else |
| 8013 |
\pgfplots@separate@axis@linestrue |
| 8014 |
\fi |
| 8015 |
\fi |
| 8016 |
% compute tick position lists |
| 8017 |
% \pgfplots@prepared@tick@positions@minor@x |
| 8018 |
% and |
| 8019 |
% \pgfplots@prepared@tick@positions@major@x |
| 8020 |
\ifpgfplots@hide@x\else |
| 8021 |
\expandafter\pgfplots@prepare@tick@coordlists@for\expandafter x\expandafter{\pgfplots@xtick}% |
| 8022 |
\fi |
| 8023 |
\ifpgfplots@hide@y\else |
| 8024 |
\expandafter\pgfplots@prepare@tick@coordlists@for\expandafter y\expandafter{\pgfplots@ytick}% |
| 8025 |
\fi |
| 8026 |
\ifpgfplots@threedim |
| 8027 |
\ifpgfplots@hide@z\else |
| 8028 |
\expandafter\pgfplots@prepare@tick@coordlists@for\expandafter z\expandafter{\pgfplots@ztick}% |
| 8029 |
\fi |
| 8030 |
\fi |
| 8031 |
} |
| 8032 |
|
| 8033 |
\def\pgfplots@draw@axis@is@prepared{}% |
| 8034 |
|
| 8035 |
% PRECONDITION: |
| 8036 |
% \pgfplots@draw@axis@pre has been called. |
| 8037 |
\def\pgfplots@draw@axis{% |
| 8038 |
% |
| 8039 |
% |
| 8040 |
% |
| 8041 |
%\message{Ok, I am now in pgfplots@draw@axis; ready to do work. Hide flags: hide x = \ifpgfplots@hide@x true\else false\fi; hide y = \ifpgfplots@hide@y true\else false\fi hide z = \ifpgfplots@hide@z true \else false \fi. Vector length: x = \pgfplots@x@veclength (1/x = \pgfplots@x@inverseveclength). y = \pgfplots@y@veclength (1/y = \pgfplots@y@inverseveclength) z = \pgfplots@z@veclength (1/z = \pgfplots@z@inverseveclength)}% |
| 8042 |
\ifpgfplots@threedim |
| 8043 |
%\if10 |
| 8044 |
\if2\pgfplots@zaxislinesnum |
| 8045 |
% axis z line*=center |
| 8046 |
\pgfplotspointonorientedsurfaceabsetupforsetz{\pgfplots@logical@ZERO@z}{2}% |
| 8047 |
\pgfplots@draw@axis@insurface@symmetric xyz |
| 8048 |
\else |
| 8049 |
% the other cases are handled in |
| 8050 |
% \pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn |
| 8051 |
\pgfplotspointonorientedsurfaceabsetupforsetz{\pgfplots@zmin}{0}% |
| 8052 |
\pgfplots@draw@axis@insurface@symmetric xyz |
| 8053 |
% |
| 8054 |
\pgfplotspointonorientedsurfaceabsetupforsetz{\pgfplots@zmax}{1}% |
| 8055 |
\pgfplots@draw@axis@insurface@symmetric xyz |
| 8056 |
\fi |
| 8057 |
% |
| 8058 |
%\fi\if10 |
| 8059 |
\if2\pgfplots@xaxislinesnum |
| 8060 |
% axis x line*=center |
| 8061 |
\pgfplotspointonorientedsurfaceabsetupforsetx{\pgfplots@logical@ZERO@x}{2}% |
| 8062 |
\pgfplots@draw@axis@insurface@onlyticksandgrid yzx |
| 8063 |
\pgfplots@draw@axis@insurface zyx |
| 8064 |
\else |
| 8065 |
\pgfplotspointonorientedsurfaceabsetupforsetx{\pgfplots@xmin}{0}% |
| 8066 |
\pgfplots@draw@axis@insurface@onlyticksandgrid yzx |
| 8067 |
\pgfplots@draw@axis@insurface zyx |
| 8068 |
% |
| 8069 |
\pgfplotspointonorientedsurfaceabsetupforsetx{\pgfplots@xmax}{1}% |
| 8070 |
\pgfplots@draw@axis@insurface@onlyticksandgrid yzx |
| 8071 |
\pgfplots@draw@axis@insurface zyx |
| 8072 |
\fi |
| 8073 |
%\fi\if10 |
| 8074 |
% |
| 8075 |
\if2\pgfplots@yaxislinesnum |
| 8076 |
\pgfplotspointonorientedsurfaceabsetupforsety{\pgfplots@logical@ZERO@y}{2}% |
| 8077 |
\pgfplots@draw@axis@insurface@onlyticksandgrid xzy |
| 8078 |
\pgfplots@draw@axis@insurface@onlyticksandgrid zxy |
| 8079 |
\else |
| 8080 |
\pgfplotspointonorientedsurfaceabsetupforsety{\pgfplots@ymin}{0}% |
| 8081 |
\pgfplots@draw@axis@insurface@onlyticksandgrid xzy |
| 8082 |
\pgfplots@draw@axis@insurface@onlyticksandgrid zxy |
| 8083 |
% |
| 8084 |
\pgfplotspointonorientedsurfaceabsetupforsety{\pgfplots@ymax}{1}% |
| 8085 |
\pgfplots@draw@axis@insurface@onlyticksandgrid xzy |
| 8086 |
\pgfplots@draw@axis@insurface@onlyticksandgrid zxy |
| 8087 |
\fi |
| 8088 |
%\fi |
| 8089 |
\else |
| 8090 |
% Just use the 2d-point commands (assuming Z=0) |
| 8091 |
\let\pgfplotspointonorientedsurfaceabsetupfor@@xyz=\pgfplotspointonorientedsurfaceabsetupfor@@xy |
| 8092 |
\let\pgfplotspointonorientedsurfaceabsetupfor@@yxz=\pgfplotspointonorientedsurfaceabsetupfor@@yx |
| 8093 |
\pgfplots@draw@axis@insurface@symmetric xyz |
| 8094 |
\fi |
| 8095 |
}% |
| 8096 |
|
| 8097 |
% The complement of \pgfplots@draw@axis which will ALWAYS be drawn on |
| 8098 |
% top of every thing else; it complements the rest. |
| 8099 |
% |
| 8100 |
% This implements only the 3d box=complete feature. |
| 8101 |
% |
| 8102 |
% PRECONDITION: |
| 8103 |
% \pgfplots@draw@axis@pre has been called. |
| 8104 |
\def\pgfplots@draw@axis@post{% |
| 8105 |
\ifpgfplots@threedim |
| 8106 |
\if0\pgfplots@threedimbox@choice |
| 8107 |
% 3d box=background |
| 8108 |
\else |
| 8109 |
\if0\pgfplots@xaxislinesnum |
| 8110 |
\else |
| 8111 |
\def\pgfplots@threedimbox@choice{0}% |
| 8112 |
\fi |
| 8113 |
\if0\pgfplots@yaxislinesnum |
| 8114 |
\else |
| 8115 |
\def\pgfplots@threedimbox@choice{0}% |
| 8116 |
\fi |
| 8117 |
\if0\pgfplots@zaxislinesnum |
| 8118 |
\else |
| 8119 |
\def\pgfplots@threedimbox@choice{0}% |
| 8120 |
\fi |
| 8121 |
\if\pgfplots@threedimbox@choice0% |
| 8122 |
\pgfplots@error{Sorry, your choice for '3d box' and 'axis x line' is incompatible.}% |
| 8123 |
\else |
| 8124 |
% 3d box=complete or complete* |
| 8125 |
\pgfplotsgetlayerforstyle{every 3d box foreground}% |
| 8126 |
\pgfplotsonlayer{\pgfplotsretval}{every 3d box foreground}% |
| 8127 |
\begingroup |
| 8128 |
\pgfplots@layered@graphicsfalse% no distinction of layers here. |
| 8129 |
\pgfplotsset{every 3d box foreground}% |
| 8130 |
\let\pgfplots@drawticklabels@onorientedsurf=\relax |
| 8131 |
\if2\pgfplots@threedimbox@choice |
| 8132 |
\def\pgfplots@ifgridlines@onorientedsurf@should@be@drawn##1##2{% |
| 8133 |
##1% |
| 8134 |
}% |
| 8135 |
\else |
| 8136 |
\let\pgfplots@drawgridlines@onorientedsurf=\relax |
| 8137 |
\fi |
| 8138 |
% |
| 8139 |
\let\pgfplots@drawticklabels@onorientedsurf=\relax |
| 8140 |
% |
| 8141 |
% negate the meaning of this if: |
| 8142 |
\let\pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn@@ORIG=\pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn@% |
| 8143 |
\def\pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn@##1##2##3{% |
| 8144 |
\pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn@@ORIG{##1}{##3}{##2}% |
| 8145 |
}% |
| 8146 |
% |
| 8147 |
% the following code is *almost* the same as if we would |
| 8148 |
% have called |
| 8149 |
% \pgfplots@draw@axis again. |
| 8150 |
% The difference is in the |
| 8151 |
% \pgfplotsifaxissurfaceisforeground checks. |
| 8152 |
% Furthermore, I have removed the case distinctions for |
| 8153 |
% the different axis line combinations. |
| 8154 |
%\if10 |
| 8155 |
% axis z line*=box |
| 8156 |
% |
| 8157 |
\pgfplotsifaxissurfaceisforeground{vv0}{% |
| 8158 |
\pgfplotspointonorientedsurfaceabsetupforsetz{\pgfplots@zmin}{0}% |
| 8159 |
\pgfplots@draw@axis@insurface@symmetric xyz |
| 8160 |
}{}% |
| 8161 |
% |
| 8162 |
\pgfplotsifaxissurfaceisforeground{vv1}{% |
| 8163 |
\pgfplotspointonorientedsurfaceabsetupforsetz{\pgfplots@zmax}{1}% |
| 8164 |
\pgfplots@draw@axis@insurface@symmetric xyz |
| 8165 |
}{}% |
| 8166 |
% |
| 8167 |
%\fi\if10 |
| 8168 |
% axis x line*=box |
| 8169 |
\pgfplotsifaxissurfaceisforeground{0vv}{% |
| 8170 |
\pgfplotspointonorientedsurfaceabsetupforsetx{\pgfplots@xmin}{0}% |
| 8171 |
\pgfplots@draw@axis@insurface@onlyticksandgrid yzx |
| 8172 |
\pgfplots@draw@axis@insurface zyx |
| 8173 |
}{} |
| 8174 |
% |
| 8175 |
\pgfplotsifaxissurfaceisforeground{1vv}{% |
| 8176 |
\pgfplotspointonorientedsurfaceabsetupforsetx{\pgfplots@xmax}{1}% |
| 8177 |
\pgfplots@draw@axis@insurface@onlyticksandgrid yzx |
| 8178 |
\pgfplots@draw@axis@insurface zyx |
| 8179 |
}{} |
| 8180 |
%\fi\if11 |
| 8181 |
% |
| 8182 |
\pgfplotsifaxissurfaceisforeground{v0v}{% |
| 8183 |
\pgfplotspointonorientedsurfaceabsetupforsety{\pgfplots@ymin}{0}% |
| 8184 |
\pgfplots@draw@axis@insurface@onlyticksandgrid xzy |
| 8185 |
\pgfplots@draw@axis@insurface@onlyticksandgrid zxy |
| 8186 |
}{}% |
| 8187 |
% |
| 8188 |
\pgfplotsifaxissurfaceisforeground{v1v}{% |
| 8189 |
\pgfplotspointonorientedsurfaceabsetupforsety{\pgfplots@ymax}{1}% |
| 8190 |
\pgfplots@draw@axis@insurface@onlyticksandgrid xzy |
| 8191 |
\pgfplots@draw@axis@insurface@onlyticksandgrid zxy |
| 8192 |
}{}% |
| 8193 |
%\fi |
| 8194 |
\endgroup |
| 8195 |
\endpgfplotsonlayer |
| 8196 |
% end of 3d box=complete |
| 8197 |
\fi |
| 8198 |
\fi |
| 8199 |
\fi |
| 8200 |
}% |
| 8201 |
|
| 8202 |
\def\pgfplots@define@threedim@marks{% |
| 8203 |
\ifpgfplots@threedim |
| 8204 |
% FIXME : there is always the same arithmetics going on here. I could try to optimize it -- for fixed mark size. |
| 8205 |
\pgfdeclareplotmark{cube} |
| 8206 |
{% |
| 8207 |
\pgfplots@cube@gethalf@x |
| 8208 |
\let\pgfplots@cube@halfx=\pgfmathresult |
| 8209 |
\pgfplots@cube@gethalf@y |
| 8210 |
\let\pgfplots@cube@halfy=\pgfmathresult |
| 8211 |
\pgfplots@cube@gethalf@z |
| 8212 |
\let\pgfplots@cube@halfz=\pgfmathresult |
| 8213 |
% |
| 8214 |
\pgfpathmoveto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8215 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8216 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8217 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8218 |
\pgfpathclose |
| 8219 |
% |
| 8220 |
\pgfpathmoveto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8221 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8222 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8223 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8224 |
\pgfpathclose |
| 8225 |
% |
| 8226 |
\pgfpathmoveto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8227 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8228 |
% |
| 8229 |
\pgfpathmoveto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8230 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8231 |
% |
| 8232 |
\pgfpathmoveto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8233 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8234 |
% |
| 8235 |
\pgfpathmoveto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8236 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8237 |
\pgfusepathqstroke |
| 8238 |
% |
| 8239 |
}% |
| 8240 |
\pgfdeclareplotmark{cube*} |
| 8241 |
{% |
| 8242 |
\pgfplots@cube@gethalf@x |
| 8243 |
\let\pgfplots@cube@halfx=\pgfmathresult |
| 8244 |
\pgfplots@cube@gethalf@y |
| 8245 |
\let\pgfplots@cube@halfy=\pgfmathresult |
| 8246 |
\pgfplots@cube@gethalf@z |
| 8247 |
\let\pgfplots@cube@halfz=\pgfmathresult |
| 8248 |
% |
| 8249 |
\pgfplotsifaxissurfaceisforeground{0vv}{% |
| 8250 |
\pgfpathmoveto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8251 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8252 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8253 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8254 |
\pgfpathclose |
| 8255 |
\pgfusepathqfillstroke |
| 8256 |
}{% |
| 8257 |
\pgfpathmoveto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8258 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8259 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8260 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8261 |
\pgfpathclose |
| 8262 |
\pgfusepathqfillstroke |
| 8263 |
}% |
| 8264 |
\pgfplotsifaxissurfaceisforeground{v0v}{% |
| 8265 |
\pgfpathmoveto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8266 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8267 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8268 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8269 |
\pgfpathclose |
| 8270 |
\pgfusepathqfillstroke |
| 8271 |
}{% |
| 8272 |
\pgfpathmoveto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8273 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8274 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8275 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8276 |
\pgfpathclose |
| 8277 |
\pgfusepathqfillstroke |
| 8278 |
}% |
| 8279 |
\pgfplotsifaxissurfaceisforeground{vv0}{% |
| 8280 |
\pgfpathmoveto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8281 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8282 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8283 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{-\pgfplots@cube@halfz}}% |
| 8284 |
\pgfpathclose |
| 8285 |
\pgfusepathqfillstroke |
| 8286 |
}{% |
| 8287 |
\pgfpathmoveto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8288 |
\pgfpathlineto{\pgfplotsqpointxyz{-\pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8289 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{ \pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8290 |
\pgfpathlineto{\pgfplotsqpointxyz{ \pgfplots@cube@halfx}{-\pgfplots@cube@halfy}{ \pgfplots@cube@halfz}}% |
| 8291 |
\pgfpathclose |
| 8292 |
\pgfusepathqfillstroke |
| 8293 |
}% |
| 8294 |
}% |
| 8295 |
\else |
| 8296 |
\pgfdeclareplotmark{cube}{\pgfuseplotmark{square}}% |
| 8297 |
\pgfdeclareplotmark{cube*}{\pgfuseplotmark{square*}}% |
| 8298 |
\fi |
| 8299 |
} |
| 8300 |
|
| 8301 |
% Defines booleans for every surface of the axis cube indicating |
| 8302 |
% whether they shall be drawn or not. |
| 8303 |
% |
| 8304 |
% For 2D, the only available surface is 'vv0' (x=varying; y=varying; z=zmin) |
| 8305 |
% For 3D, there are surfaces |
| 8306 |
% - 'vv0' 'vv1' |
| 8307 |
% - 'v0v' 'v1v' |
| 8308 |
% ' '0vv' '1vv' |
| 8309 |
% |
| 8310 |
% @see \pgfplotspointonorientedsurfaceabmatchaxisline for details |
| 8311 |
% about those three-character ids. |
| 8312 |
% |
| 8313 |
% @PRECONDITION |
| 8314 |
% |
| 8315 |
% @POSTCONDITION |
| 8316 |
% - for every available surface, a macro '\pgfplots@surfviewdepth@CCC' |
| 8317 |
% is defined to be either 'f' (foreground) or 'b' (background). |
| 8318 |
% Thus, we don't have real TeX booleans, "only" those one-character |
| 8319 |
% strings. |
| 8320 |
% There are high-level routines to check these flags. |
| 8321 |
% - every tick label position will be initialised, i.e. the macros |
| 8322 |
% \pgfplots@[xyz]ticklabelaxisspec |
| 8323 |
% will be initialised. |
| 8324 |
% |
| 8325 |
% ABOUT THE ALGORITHM: |
| 8326 |
% Given \pgfplots@view@dir@threedim, we know the view direction (in 3D!). |
| 8327 |
% Now, we compute the scalar products <n,(1,0,0)'> <n,(0,1,0)'> and |
| 8328 |
% <n,(0,0,1)'> between the view direction n and the unit vectors in 3D |
| 8329 |
% space. Of course, these scalar products are just specific components |
| 8330 |
% of n. Using the sign of the scalar product, we know whether n points |
| 8331 |
% roughly into the same or the opposite direction of each unit vector |
| 8332 |
% and we can deduce foreground and background side surfaces of the |
| 8333 |
% unit cube. The idea is: foreground surfaces won't be drawn, only |
| 8334 |
% background surfaces. |
| 8335 |
% |
| 8336 |
% Given this knowledge, we can also deduce the default axes for tick |
| 8337 |
% labels. |
| 8338 |
% |
| 8339 |
% The operation is relatively fast. |
| 8340 |
\def\pgfplots@decide@which@figure@surfaces@are@drawn{% |
| 8341 |
\expandafter\def\csname pgfplots@surfviewdepth@2vv\endcsname{f}% |
| 8342 |
\expandafter\def\csname pgfplots@surfviewdepth@v2v\endcsname{f}% |
| 8343 |
\expandafter\def\csname pgfplots@surfviewdepth@vv2\endcsname{f}% |
| 8344 |
\ifpgfplots@threedim |
| 8345 |
\pgfplotsmathvectortocomponents\pgfplots@view@dir@threedim{pgfplots@loc@}{default}% |
| 8346 |
% respect reversed axes here. If I am not mistaken, it should |
| 8347 |
% be completely sufficient to flip signs here: |
| 8348 |
\pgfplotscoordmath{default}{if is}{\pgfplots@loc@x}{\if\pgfkeysvalueof{/pgfplots/x dir/value}n+\else-\fi}{% |
| 8349 |
\expandafter\def\csname pgfplots@surfviewdepth@0vv\endcsname{f}% foreground |
| 8350 |
\expandafter\def\csname pgfplots@surfviewdepth@1vv\endcsname{b}% background |
| 8351 |
}{% |
| 8352 |
\expandafter\def\csname pgfplots@surfviewdepth@0vv\endcsname{b}% |
| 8353 |
\expandafter\def\csname pgfplots@surfviewdepth@1vv\endcsname{f}% |
| 8354 |
}% |
| 8355 |
\pgfplotscoordmath{default}{if is}{\pgfplots@loc@y}{\if\pgfkeysvalueof{/pgfplots/y dir/value}n+\else-\fi}{% |
| 8356 |
\expandafter\def\csname pgfplots@surfviewdepth@v0v\endcsname{f}% foreground |
| 8357 |
\expandafter\def\csname pgfplots@surfviewdepth@v1v\endcsname{b}% background |
| 8358 |
}{% |
| 8359 |
\expandafter\def\csname pgfplots@surfviewdepth@v0v\endcsname{b}% |
| 8360 |
\expandafter\def\csname pgfplots@surfviewdepth@v1v\endcsname{f}% |
| 8361 |
}% |
| 8362 |
\pgfplotscoordmath{default}{if is}{\pgfplots@loc@z}{\if\pgfkeysvalueof{/pgfplots/z dir/value}n+\else-\fi}{% |
| 8363 |
\expandafter\def\csname pgfplots@surfviewdepth@vv0\endcsname{f}% foreground |
| 8364 |
\expandafter\def\csname pgfplots@surfviewdepth@vv1\endcsname{b}% background |
| 8365 |
}{% |
| 8366 |
\expandafter\def\csname pgfplots@surfviewdepth@vv0\endcsname{b}% |
| 8367 |
\expandafter\def\csname pgfplots@surfviewdepth@vv1\endcsname{f}% |
| 8368 |
}% |
| 8369 |
\else |
| 8370 |
% FIXME : it might be better to implement that stuff here |
| 8371 |
% implicilty using the 3D algorithms. |
| 8372 |
% |
| 8373 |
% this here is the only important one: |
| 8374 |
\expandafter\def\csname pgfplots@surfviewdepth@vv0\endcsname{b}% |
| 8375 |
% |
| 8376 |
\expandafter\def\csname pgfplots@surfviewdepth@0vv\endcsname{b}% |
| 8377 |
\expandafter\def\csname pgfplots@surfviewdepth@1vv\endcsname{f}% |
| 8378 |
\expandafter\def\csname pgfplots@surfviewdepth@v0v\endcsname{b}% |
| 8379 |
\expandafter\def\csname pgfplots@surfviewdepth@v1v\endcsname{f}% |
| 8380 |
\expandafter\def\csname pgfplots@surfviewdepth@vv1\endcsname{f}% |
| 8381 |
\def\pgfplotsifaxislineisonconvexhull##1##2##3{##2}% ALWAYS TRUE |
| 8382 |
\def\pgfplots@ifaxisline@B@onorientedsurf@should@be@drawn@##1##2##3{##2}% ALWAYS TRUE |
| 8383 |
% |
| 8384 |
\fi |
| 8385 |
} |
| 8386 |
|
| 8387 |
% Initialises the 'pgfplots@[xyz]ticklabelaxisspecs' macro according to |
| 8388 |
% the foreground/background situation of the axis and the '[xyz]ticklabel pos' |
| 8389 |
% keys. |
| 8390 |
\def\pgfplots@init@ticklabelaxisspec{% |
| 8391 |
\ifpgfplots@threedim |
| 8392 |
% |
| 8393 |
% |
| 8394 |
% Now, determine which axis line shall get tick labels. |
| 8395 |
% The strategy is as follows: |
| 8396 |
% - only lines on the convex hull of the 2D projected axis |
| 8397 |
% rectangle can get tick labels, |
| 8398 |
% - for each axis, there are two such choices in the general |
| 8399 |
% case, |
| 8400 |
% - for X and Y: prefer the one on the lower side. |
| 8401 |
% - for Z: prefer the one on the left hand side. |
| 8402 |
% |
| 8403 |
\pgfplotspointcenter |
| 8404 |
\edef\pgfplots@tmp@centerx{\the\pgf@x}% |
| 8405 |
\edef\pgfplots@tmp@centery{\the\pgf@y}% |
| 8406 |
% |
| 8407 |
\pgfplots@init@ticklabelaxisspecfor xy% |
| 8408 |
% |
| 8409 |
\pgfplots@init@ticklabelaxisspecfor yy% |
| 8410 |
% |
| 8411 |
\pgfplots@init@ticklabelaxisspecfor zx% |
| 8412 |
\else |
| 8413 |
\pgfplotspointcenter |
| 8414 |
\edef\pgfplots@tmp@centerx{\the\pgf@x}% |
| 8415 |
\edef\pgfplots@tmp@centery{\the\pgf@y}% |
| 8416 |
% |
| 8417 |
\pgfplots@init@ticklabelaxisspec@twodim@for xy% |
| 8418 |
% |
| 8419 |
\pgfplots@init@ticklabelaxisspec@twodim@for yx% |
| 8420 |
\fi |
| 8421 |
}% |
| 8422 |
|
| 8423 |
% A helper method which is to be invoked ONLY inside of |
| 8424 |
% \pgfplots@init@ticklabelaxisspec. |
| 8425 |
% It does NOT work outside of it. |
| 8426 |
% |
| 8427 |
% It initialises the 'pgfplots@#1ticklabelaxisspec' macro according to |
| 8428 |
% the foreground/background situation of the axis and the '#1ticklabel pos' |
| 8429 |
% key. |
| 8430 |
% |
| 8431 |
% #1: the axis: x,y or z |
| 8432 |
% #2: either x or y. It refers to the PROJECTED coordinate which |
| 8433 |
% should be used to compare the 'lower' and 'upper' arguments of the |
| 8434 |
% |[xyz]ticklabel pos| key. |
| 8435 |
% |
| 8436 |
% PRECONDITION: |
| 8437 |
% \pgfplots@tmp@center[xy] is set. |
| 8438 |
% |
| 8439 |
% POSTCONDITION: |
| 8440 |
% - pgfplots@#1ticklabelaxisspec is set, |
| 8441 |
% |
| 8442 |
% @see also \pgfplots@init@ticklabelaxisspec@twodim@for |
| 8443 |
\def\pgfplots@init@ticklabelaxisspecfor#1#2{% |
| 8444 |
\if#1x% |
| 8445 |
\def\pgfplots@loc@to@threedim##1##2{v##1##2}% |
| 8446 |
\def\pgfplots@loc@axischar@for@first{y}% |
| 8447 |
\else |
| 8448 |
\if#1y% |
| 8449 |
\def\pgfplots@loc@to@threedim##1##2{##1v##2}% |
| 8450 |
\def\pgfplots@loc@axischar@for@first{x}% |
| 8451 |
\else |
| 8452 |
\def\pgfplots@loc@to@threedim##1##2{##1##2v}% |
| 8453 |
\def\pgfplots@loc@axischar@for@first{x}% |
| 8454 |
\fi |
| 8455 |
\fi |
| 8456 |
% |
| 8457 |
% First, compute stuff as if we had a box. Ignore the "center" |
| 8458 |
% styles with a single axis line for now. |
| 8459 |
% |
| 8460 |
\pgfplotsifaxislineisonconvexhull{\pgfplots@loc@to@threedim 00}{% |
| 8461 |
% -> both, v00 or v11 are on CH. |
| 8462 |
% |
| 8463 |
% Decide whether the '{0.5}{0}{0}' point is above or below |
| 8464 |
% the {0.5}{0.5}{0.5} |
| 8465 |
% point. This '<' operation is based on the '#1ticklabel pos' |
| 8466 |
% key, the 2D projection of the axis and the argument '#2'. |
| 8467 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 00}% |
| 8468 |
\pgfqpointscale{0.5}{\csname pgfplotspoint#1axis\endcsname}% |
| 8469 |
\ifdim\csname pgf@#2\endcsname<\csname pgfplots@tmp@center#2\endcsname\relax |
| 8470 |
\if u\csname pgfplots@#1ticklabel@pos\endcsname |
| 8471 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 11}% |
| 8472 |
\fi |
| 8473 |
\else |
| 8474 |
\if l\csname pgfplots@#1ticklabel@pos\endcsname |
| 8475 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 11}% |
| 8476 |
\fi |
| 8477 |
\fi |
| 8478 |
}{% |
| 8479 |
% -> both, v01 or v10 are on CH |
| 8480 |
%-------------------------------------------------- |
| 8481 |
% \pgfplotsifaxislineisonconvexhull{\pgfplots@loc@to@threedim 01}{% FIXME : eliminate sanity assertion if possible |
| 8482 |
% }{% |
| 8483 |
% \pgfplots@error{INTERNAL ERROR}% |
| 8484 |
% }% |
| 8485 |
%-------------------------------------------------- |
| 8486 |
% Decide whether the '{0.5}{1}{0}' point is above or below |
| 8487 |
% the {0.5}{0.5}{0.5} point. Again, the '<' operation is based |
| 8488 |
% on the '#1ticklabel pos' key, the projection and #2. |
| 8489 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 10}% |
| 8490 |
% compute the middle point on \pgfplots@loc@to@threedim 10 |
| 8491 |
\pgfpointadd |
| 8492 |
{\csname pgfplotspoint\pgfplots@loc@axischar@for@first axis\endcsname} |
| 8493 |
{\pgfpointscale{0.5}{\csname pgfplotspoint#1axis\endcsname}}% |
| 8494 |
% |
| 8495 |
\ifdim\csname pgf@#2\endcsname<\csname pgfplots@tmp@center#2\endcsname\relax |
| 8496 |
\if u\csname pgfplots@#1ticklabel@pos\endcsname |
| 8497 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 01}% |
| 8498 |
\fi |
| 8499 |
\else |
| 8500 |
\if l\csname pgfplots@#1ticklabel@pos\endcsname |
| 8501 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 01}% |
| 8502 |
\fi |
| 8503 |
\fi |
| 8504 |
}% |
| 8505 |
% |
| 8506 |
% Now, adapt result to "center" styles: |
| 8507 |
\if2\csname pgfplots@#1axislinesnum\endcsname |
| 8508 |
% axis #1 lines=center . |
| 8509 |
% |
| 8510 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec@box\endcsname{\csname pgfplots@#1ticklabelaxisspec\endcsname}% |
| 8511 |
% |
| 8512 |
% well, for 3d, this implies that all others also have |
| 8513 |
% "center". And since "0" == lower, "1" == upper", "2" == |
| 8514 |
% center, we have to use center: |
| 8515 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 22}% |
| 8516 |
\fi |
| 8517 |
}% |
| 8518 |
\def\pgfplots@init@ticklabelaxisspec@twodim@for#1#2{% |
| 8519 |
% First, compute stuff as if we had a box. Ignore the "center" |
| 8520 |
% styles with a single axis line for now. |
| 8521 |
% |
| 8522 |
\if#1x% |
| 8523 |
\def\pgfplots@loc@to@threedim##1{v##10}% |
| 8524 |
\def\pgfplots@loc@axischar@for@first{y}% |
| 8525 |
\else |
| 8526 |
\def\pgfplots@loc@to@threedim##1{##1v0}% |
| 8527 |
\def\pgfplots@loc@axischar@for@first{x}% |
| 8528 |
\fi |
| 8529 |
% Decide whether the '{0.5}{0}' point is above or below |
| 8530 |
% the {0.5}{0.5} |
| 8531 |
% point. This '<' operation is based on the '#1ticklabel pos' |
| 8532 |
% key, the 2D projection of the axis and the argument '#2'. |
| 8533 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 0}% |
| 8534 |
\pgfqpointscale{0.5}{\csname pgfplotspoint#1axis\endcsname}% |
| 8535 |
\ifdim\csname pgf@#2\endcsname<\csname pgfplots@tmp@center#2\endcsname\relax |
| 8536 |
\if u\csname pgfplots@#1ticklabel@pos\endcsname |
| 8537 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 1}% |
| 8538 |
\fi |
| 8539 |
\else |
| 8540 |
%-------------------------------------------------- |
| 8541 |
%FIXME : I have the impression that this here is DEPRECATED |
| 8542 |
% \if3\csname pgfplots@#1tickposnum\endcsname % is 'right' |
| 8543 |
% \expandafter\def\csname pgfplots@#1tickposnum\endcsname{1}% set to 'left' |
| 8544 |
% \else |
| 8545 |
% \if1\csname pgfplots@#1tickposnum\endcsname % is 'left' |
| 8546 |
% \expandafter\def\csname pgfplots@#1tickposnum\endcsname{3}% set to 'right' |
| 8547 |
% \fi |
| 8548 |
% \fi |
| 8549 |
%-------------------------------------------------- |
| 8550 |
\if l\csname pgfplots@#1ticklabel@pos\endcsname |
| 8551 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 1}% |
| 8552 |
\fi |
| 8553 |
\fi |
| 8554 |
% |
| 8555 |
% Now, adapt result to "center" styles: |
| 8556 |
\if2\csname pgfplots@#1axislinesnum\endcsname |
| 8557 |
% axis #1 lines=center . |
| 8558 |
% |
| 8559 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec@box\endcsname{\csname pgfplots@#1ticklabelaxisspec\endcsname}% |
| 8560 |
% |
| 8561 |
% well, for 3d, this implies that all others also have |
| 8562 |
% "center". And since "0" == lower, "1" == upper", "2" == |
| 8563 |
% center, we have to use center: |
| 8564 |
\expandafter\edef\csname pgfplots@#1ticklabelaxisspec\endcsname{\pgfplots@loc@to@threedim 2}% |
| 8565 |
\fi |
| 8566 |
}% |
| 8567 |
|
| 8568 |
|
| 8569 |
% Processes every tick mark in direction #1 and draws tick lines, tick |
| 8570 |
% labels, grid lines, axis lines and extra ticks. |
| 8571 |
% |
| 8572 |
% #1 : the direction into which tick positions are processed. |
| 8573 |
% #2 : the direction in which tick lines and grid lines shall be drawn. |
| 8574 |
% #3 : the direction which is currently fixed. |
| 8575 |
\def\pgfplots@draw@axis@insurface#1#2#3{% |
| 8576 |
\pgfplots@if{pgfplots@hide@#1}{\relax}{% |
| 8577 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8578 |
\pgfplots@drawgridlines@onorientedsurf |
| 8579 |
% |
| 8580 |
\pgfplots@drawticklines@onorientedsurf |
| 8581 |
% |
| 8582 |
\pgfplots@drawaxis@outerlines@separate@onorientedsurf#1#2% |
| 8583 |
\pgfplots@drawaxis@innerlines@onorientedsurf#1#2#3% |
| 8584 |
% |
| 8585 |
\pgfplots@drawticklabels@onorientedsurf |
| 8586 |
% |
| 8587 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@extra@#1tick\endcsname |
| 8588 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 8589 |
\else |
| 8590 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8591 |
\expandafter\pgfplots@draw@extra@ticks@onorientedsurf\expandafter{\pgfplots@loc@TMPa}% |
| 8592 |
\fi |
| 8593 |
}% |
| 8594 |
}% |
| 8595 |
|
| 8596 |
% A variant of \pgfplots@draw@axis@insurface which is equivalent to |
| 8597 |
% \pgfplots@draw@axis@insurface #1#2#3 |
| 8598 |
% \pgfplots@draw@axis@insurface #2#1#3 |
| 8599 |
% with slightly optimized execution sequence. |
| 8600 |
\def\pgfplots@draw@axis@insurface@symmetric#1#2#3{% |
| 8601 |
\pgfplots@if{pgfplots@hide@#1}{\relax}{% |
| 8602 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8603 |
\pgfplots@drawgridlines@onorientedsurf |
| 8604 |
}% |
| 8605 |
\pgfplots@if{pgfplots@hide@#2}{\relax}{% |
| 8606 |
\pgfplotspointonorientedsurfaceabsetupfor #2#1#3% |
| 8607 |
\pgfplots@drawgridlines@onorientedsurf |
| 8608 |
}% |
| 8609 |
% |
| 8610 |
\pgfplots@if{pgfplots@hide@#1}{\relax}{% |
| 8611 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8612 |
\pgfplots@drawticklines@onorientedsurf |
| 8613 |
}% |
| 8614 |
\pgfplots@if{pgfplots@hide@#2}{\relax}{% |
| 8615 |
\pgfplotspointonorientedsurfaceabsetupfor #2#1#3% |
| 8616 |
\pgfplots@drawticklines@onorientedsurf |
| 8617 |
}% |
| 8618 |
% |
| 8619 |
\ifpgfplots@separate@axis@lines |
| 8620 |
\pgfplots@if{pgfplots@hide@#1}{\relax}{% |
| 8621 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8622 |
\pgfplots@drawaxis@outerlines@separate@onorientedsurf#1#2% |
| 8623 |
\pgfplots@drawaxis@innerlines@onorientedsurf#1#2#3% |
| 8624 |
}% |
| 8625 |
% |
| 8626 |
\pgfplots@if{pgfplots@hide@#2}{\relax}{% |
| 8627 |
\pgfplotspointonorientedsurfaceabsetupfor #2#1#3% |
| 8628 |
\pgfplots@drawaxis@outerlines@separate@onorientedsurf#2#1% |
| 8629 |
\pgfplots@drawaxis@innerlines@onorientedsurf#2#1#3% |
| 8630 |
}% |
| 8631 |
\else |
| 8632 |
% this happens if and only if d=2 and the axis lines are drawn |
| 8633 |
% as box. |
| 8634 |
\pgfplots@drawaxis@outerlines@cycledpath |
| 8635 |
\fi |
| 8636 |
% |
| 8637 |
\pgfplots@if{pgfplots@hide@#1}{\relax}{% |
| 8638 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8639 |
\pgfplots@drawticklabels@onorientedsurf |
| 8640 |
}% |
| 8641 |
\pgfplots@if{pgfplots@hide@#2}{\relax}{% |
| 8642 |
\pgfplotspointonorientedsurfaceabsetupfor #2#1#3% |
| 8643 |
\pgfplots@drawticklabels@onorientedsurf |
| 8644 |
}% |
| 8645 |
% |
| 8646 |
\pgfplots@if{pgfplots@hide@#1}{\relax}{% |
| 8647 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@extra@#1tick\endcsname |
| 8648 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 8649 |
\else |
| 8650 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8651 |
\expandafter\pgfplots@draw@extra@ticks@onorientedsurf\expandafter{\pgfplots@loc@TMPa}% |
| 8652 |
\fi |
| 8653 |
}% |
| 8654 |
\pgfplots@if{pgfplots@hide@#2}{\relax}{% |
| 8655 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@extra@#2tick\endcsname |
| 8656 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 8657 |
\else |
| 8658 |
\pgfplotspointonorientedsurfaceabsetupfor #2#1#3% |
| 8659 |
\expandafter\pgfplots@draw@extra@ticks@onorientedsurf\expandafter{\pgfplots@loc@TMPa}% |
| 8660 |
\fi |
| 8661 |
}% |
| 8662 |
}% |
| 8663 |
|
| 8664 |
\def\pgfplots@draw@axis@insurface@onlyticksandgrid#1#2#3{% |
| 8665 |
\pgfplots@if{pgfplots@hide@#1}{\relax}{% |
| 8666 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8667 |
\pgfplots@drawgridlines@onorientedsurf |
| 8668 |
\pgfplots@drawticklines@onorientedsurf |
| 8669 |
% |
| 8670 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@extra@#1tick\endcsname |
| 8671 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 8672 |
\else |
| 8673 |
\begingroup |
| 8674 |
\let\pgfplots@drawticklabels@onorientedsurf=\relax |
| 8675 |
\pgfplotspointonorientedsurfaceabsetupfor #1#2#3% |
| 8676 |
\expandafter\pgfplots@draw@extra@ticks@onorientedsurf\expandafter{\pgfplots@loc@TMPa}% |
| 8677 |
\endgroup |
| 8678 |
\fi |
| 8679 |
}% |
| 8680 |
}% |
| 8681 |
|
| 8682 |
% Handles the 'every 3d description' style. |
| 8683 |
% |
| 8684 |
% This requires a different type of attention than any other key -- |
| 8685 |
% because all other keys are set in a context where the dimension of |
| 8686 |
% the axis is unknown (it might be 2 or 3 dimensional). |
| 8687 |
% |
| 8688 |
% The idea is: |
| 8689 |
% Call \pgfplots@BEGIN@prepare@description@styles as soon as the |
| 8690 |
% dimension is fixed, but before any style changes of the user |
| 8691 |
% interface are applied. |
| 8692 |
% |
| 8693 |
% Example: |
| 8694 |
% \begin{axis}[xlabel style={}] |
| 8695 |
% will be processed here. The reason: 'every 3d description' will |
| 8696 |
% certainly use a different style for axis labels than the default 2d |
| 8697 |
% style. |
| 8698 |
% |
| 8699 |
% Thus, all style changes which are relevant for 'every 3d description' |
| 8700 |
% have NOT YET been processed (they have been appended to 'every axis'). |
| 8701 |
\def\pgfplots@BEGIN@prepare@description@styles{% |
| 8702 |
\ifpgfplots@threedim |
| 8703 |
\pgfplotsset{every 3d description,every 3d view {\pgfkeysvalueof{/pgfplots/view/az}}{\pgfkeysvalueof{/pgfplots/view/el}}/.try}% |
| 8704 |
\fi |
| 8705 |
\pgfkeysgetvalue{/pgfplots/.unknown/.@cmd}\pgfplots@BEGIN@prepare@description@styles@oldhandler |
| 8706 |
\pgfkeysdef{/pgfplots/.unknown}{}% ignore unknown keys here. |
| 8707 |
\pgfkeysactivatefamily{/pgfplots/style commands}% |
| 8708 |
\pgfkeysactivatefamily{/pgfplots/descriptions}% |
| 8709 |
%\pgfkeys{/pgfplots/every axis/.show code}% |
| 8710 |
\pgfplots@set@keys@from@tikz@style{every axis}% |
| 8711 |
\pgfkeysdeactivatefamily{/pgfplots/descriptions}% |
| 8712 |
\pgfkeysdeactivatefamily{/pgfplots/style commands}% |
| 8713 |
\pgfkeyslet{/pgfplots/.unknown/.@cmd}\pgfplots@BEGIN@prepare@description@styles@oldhandler |
| 8714 |
}% |
| 8715 |
|
| 8716 |
\newif\ifpgfplots@layered@graphics |
| 8717 |
|
| 8718 |
|
| 8719 |
% Shortcut for '\pgfplotsset{set layers={#1}}'. |
| 8720 |
% |
| 8721 |
% USAGE: |
| 8722 |
% 1. \pgfplotssetlayers{<layer config name>} (one declared with /.define layer set) |
| 8723 |
% 2. \pgfplotssetlayers (no braces) |
| 8724 |
% 3. \pgfplotssetlayers{<comma-separated-list-of-layers>} |
| 8725 |
% |
| 8726 |
% This command immediately installs a \pgfsetlayers command. It also prepares following axes. |
| 8727 |
% ATTENTION: this might affect tikzpictures as well. |
| 8728 |
% |
| 8729 |
\def\pgfplotssetlayers{% |
| 8730 |
\pgfutil@ifnextchar\bgroup{\pgfplotssetlayers@}{\pgfplotsset{set layers}}% |
| 8731 |
}% |
| 8732 |
\def\pgfplotssetlayers@#1{% |
| 8733 |
\pgfplotsset{set layers={#1}}% |
| 8734 |
}% |
| 8735 |
|
| 8736 |
% This method checks if '#1' is a well-known layer set. If that is the case, the layer set is initialized. |
| 8737 |
% If there is no such layer set, #1 is assumed to be a comma-separated-list of layer names. |
| 8738 |
% These layers are defined if they do not exist already. |
| 8739 |
% |
| 8740 |
% POSTCONDITION: |
| 8741 |
% - a \pgfsetlayers{<list>} is issued (immediately) |
| 8742 |
% - '/pgfplots/@set layers arg' is defined such that any following axes can initialized their layers. |
| 8743 |
\def\pgfplots@key@set@layers#1{% |
| 8744 |
% |
| 8745 |
% auto detect if '#1' is a defined layer set: |
| 8746 |
\pgfkeysifdefined{#1/list}{% |
| 8747 |
\def\pgfkeyscurrentname{#1}% |
| 8748 |
}{% |
| 8749 |
\pgfkeysifdefined{/pgfplots/layers/#1/list}{% |
| 8750 |
\edef\pgfkeyscurrentname{/pgfplots/layers/#1}% |
| 8751 |
}{% |
| 8752 |
\let\pgfkeyscurrentname\pgfutil@empty |
| 8753 |
}% |
| 8754 |
}% |
| 8755 |
\ifx\pgfkeyscurrentname\pgfutil@empty |
| 8756 |
% OK. The argument is NO layer set configuration. |
| 8757 |
\pgfplots@key@set@layers@{#1}% |
| 8758 |
\pgfkeyslet{/pgfplots/@set layers arg}\pgfutil@empty% |
| 8759 |
\else |
| 8760 |
% OK, The argument is the key name of some '/.define layer set' key. |
| 8761 |
% Remember it for later and initialize the layers: |
| 8762 |
\pgfkeyslet{/pgfplots/@set layers arg}\pgfkeyscurrentname% |
| 8763 |
\pgfkeysgetvalue{\pgfkeyscurrentname/list}\pgfplots@loc@TMPa |
| 8764 |
\expandafter\pgfplots@key@set@layers@\expandafter{\pgfplots@loc@TMPa}% |
| 8765 |
\fi |
| 8766 |
} |
| 8767 |
% a simple method which (immediately) invokes \pgfsetlayers{#1}. |
| 8768 |
% |
| 8769 |
% The only difference is that it creates missing layers on-the-fly. |
| 8770 |
\def\pgfplots@key@set@layers@#1{% |
| 8771 |
\edef\pgfplots@loc@TMPa{#1}% |
| 8772 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 8773 |
% DEFAULT. |
| 8774 |
\pgfsetlayers{main}% |
| 8775 |
\else |
| 8776 |
\def\pgfplots@loc@TMPb{false}% |
| 8777 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 8778 |
% "use layers=false" |
| 8779 |
\pgfsetlayers{main}% |
| 8780 |
\else |
| 8781 |
\def\pgfplots@loc@TMPb{main}% |
| 8782 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 8783 |
% "use layers=main" |
| 8784 |
\pgfsetlayers{main}% |
| 8785 |
\else |
| 8786 |
% declare all layers, and collect the normalised list |
| 8787 |
% into \pgfplots@loc@TMPd |
| 8788 |
\def\pgfplots@loc@TMPd{}% |
| 8789 |
\expandafter\pgfplotsutilforeachcommasep\expandafter{\pgfplots@loc@TMPa}\as\pgfplots@loc@TMPa{% |
| 8790 |
% normalize argument: |
| 8791 |
\edef\pgfplots@loc@TMPa{\pgfplots@loc@TMPa}% |
| 8792 |
\expandafter\pgfplotsutil@trim\expandafter{\pgfplots@loc@TMPa}% |
| 8793 |
\let\pgfplots@loc@TMPa=\pgfplotsretval |
| 8794 |
% |
| 8795 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 8796 |
\else |
| 8797 |
\def\pgfplots@loc@TMPb{main}% |
| 8798 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 8799 |
\else |
| 8800 |
\expandafter\pgfdeclarelayer\expandafter{\pgfplots@loc@TMPa}% |
| 8801 |
\fi |
| 8802 |
\edef\pgfplots@loc@TMPd{\ifx\pgfplots@loc@TMPd\pgfutil@empty\else\pgfplots@loc@TMPd,\fi\pgfplots@loc@TMPa}% |
| 8803 |
\fi |
| 8804 |
}% |
| 8805 |
% activate layers: |
| 8806 |
\pgfplots@log3{Setting layers '\pgfplots@loc@TMPd'...}% |
| 8807 |
\expandafter\pgfsetlayers\expandafter{\pgfplots@loc@TMPd}% |
| 8808 |
\fi |
| 8809 |
\fi |
| 8810 |
\fi |
| 8811 |
}% |
| 8812 |
|
| 8813 |
\def\pgfplots@prepare@layered@graphics{% |
| 8814 |
% check if there are no layers at all. |
| 8815 |
\ifpgfplots@layered@graphics |
| 8816 |
\pgfutil@IfUndefined{pgf@layerlist}{% |
| 8817 |
}{% |
| 8818 |
\ifx\pgf@layerlist\pgfutil@empty |
| 8819 |
\pgfplots@layered@graphicsfalse |
| 8820 |
\else |
| 8821 |
\def\pgfplots@loc@TMPa{main}% |
| 8822 |
\ifx\pgf@layerlist\pgfplots@loc@TMPa |
| 8823 |
\pgfplots@layered@graphicsfalse |
| 8824 |
\fi |
| 8825 |
\fi |
| 8826 |
}% |
| 8827 |
\fi |
| 8828 |
}% |
| 8829 |
|
| 8830 |
% #2: context information (for improved error recovery), optional |
| 8831 |
\def\pgfplotsonlayer#1{% |
| 8832 |
\pgfutil@ifnextchar\bgroup{\pgfplotsonlayer@{#1}}{\pgfplotsonlayer@{#1}{}}% |
| 8833 |
} |
| 8834 |
\def\pgfplotsonlayer@#1#2{% |
| 8835 |
\begingroup |
| 8836 |
\def\b@pgfplotsonlayer@started{0}% |
| 8837 |
\ifpgfplots@layered@graphics |
| 8838 |
\edef\pgfplots@loc@TMPa{#1}% |
| 8839 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 8840 |
\else |
| 8841 |
\def\b@pgfplotsonlayer@started{1}% |
| 8842 |
\pgfonlayer{#1}% |
| 8843 |
\fi |
| 8844 |
\fi |
| 8845 |
}% |
| 8846 |
\def\endpgfplotsonlayer{% |
| 8847 |
\ifpgfplots@layered@graphics |
| 8848 |
\if1\b@pgfplotsonlayer@started |
| 8849 |
\endpgfonlayer |
| 8850 |
\fi |
| 8851 |
\fi |
| 8852 |
\endgroup |
| 8853 |
}% |
| 8854 |
|
| 8855 |
|
| 8856 |
% Searches for the layers of a (set of) style name(s). |
| 8857 |
% |
| 8858 |
% #1 is a style name like 'every major grid'. It can also be a list of |
| 8859 |
% style names. |
| 8860 |
% |
| 8861 |
% The last "on layer" key found in these styles will be used here. |
| 8862 |
% |
| 8863 |
% Note that the "on layer" keys have already been extracted in during |
| 8864 |
% the key filtering procedure. |
| 8865 |
\def\pgfplotsgetlayerforstyle#1{% |
| 8866 |
\let\pgfplotsretval=\pgfutil@empty |
| 8867 |
\ifpgfplots@layered@graphics |
| 8868 |
% this here is the return value: |
| 8869 |
\let\pgfplots@loc@TMPc=\pgfutil@empty |
| 8870 |
% |
| 8871 |
% search list: |
| 8872 |
\pgfplotsutilforeachcommasep{#1}\as\pgfplots@loc@TMPa{% |
| 8873 |
\pgfkeysifdefined{/pgfplots/layers for styles/\pgfplots@loc@TMPa}{% |
| 8874 |
% oh, good: I have already processed the requested |
| 8875 |
% style, and I already know if it has a particular |
| 8876 |
% layer. |
| 8877 |
\pgfkeysgetvalue{/pgfplots/layers for styles/\pgfplots@loc@TMPa}\pgfplots@loc@TMPb |
| 8878 |
}{% |
| 8879 |
% hm. Ok, then process the style. Throw everything |
| 8880 |
% away, keep only the layer. |
| 8881 |
\begingroup |
| 8882 |
\pgfkeyslet{/pgfplots/on layer}\pgfutil@empty |
| 8883 |
\pgfkeysdef{/handlers/.unknown}{}% do nothing |
| 8884 |
\pgfkeysdef{/tikz/.unknown}{}% also, do nothing. |
| 8885 |
\pgfplotsset{#1}% let's hope this works with unknown keys... |
| 8886 |
\pgfkeysgetvalue{/pgfplots/on layer}\pgfplots@loc@TMPb |
| 8887 |
\pgfmath@smuggleone\pgfplots@loc@TMPb |
| 8888 |
\endgroup |
| 8889 |
}% |
| 8890 |
\ifx\pgfplots@loc@TMPb\pgfutil@empty |
| 8891 |
\else |
| 8892 |
% update return value: |
| 8893 |
\let\pgfplots@loc@TMPc=\pgfplots@loc@TMPb |
| 8894 |
\fi |
| 8895 |
}% |
| 8896 |
\let\pgfplotsretval=\pgfplots@loc@TMPc |
| 8897 |
%\message{\string\pgfplotsgetlayerforstyle{#1} = '\pgfplotsretval'^^J}% |
| 8898 |
\fi |
| 8899 |
}% |
| 8900 |
|
| 8901 |
% The purpose of this method is to check for the cases where no cell picture is necessary. |
| 8902 |
% The idea behind this anchor is to insert the axis DIRECTLY into the embedding tikzpicture, without |
| 8903 |
% a posteriori shifting. |
| 8904 |
% |
| 8905 |
% A posteriori shifting == anchors whose dimensions are not fixed |
| 8906 |
% until the complete axis has been "typeset". |
| 8907 |
% |
| 8908 |
% Disabling the cell picture will still prepare ALL anchors correctly, |
| 8909 |
% but it disables many of the anchor choices when it comes to the |
| 8910 |
% alignment of the current axis (in other words: other node can align |
| 8911 |
% using the anchors of this axis, but this axis cannot be aligned based on its anchors). |
| 8912 |
% |
| 8913 |
% The motivation for this feature is to implement multi-axis support together with layered graphics. |
| 8914 |
% |
| 8915 |
% The 'cell picture=false' feature may be interesting for SVG export as |
| 8916 |
% well. |
| 8917 |
\def\pgfplots@prepare@cell@picture{% |
| 8918 |
\pgfplots@ifcellpicture@required{% |
| 8919 |
\pgfplots@has@cell@picturetrue |
| 8920 |
}{% |
| 8921 |
% cell picture=false or cell picture=if necessary |
| 8922 |
% |
| 8923 |
% anchor processing is special in this case! The standard |
| 8924 |
% anchor processing uses a posteriori shifts. This feature |
| 8925 |
% here REQUIRES a priori shifts. |
| 8926 |
% Prepare special handling for these shifts: |
| 8927 |
\pgfplots@has@cell@picturefalse |
| 8928 |
\edef\pgfplots@anchorname@internal{\pgfplots@anchorname}% |
| 8929 |
% |
| 8930 |
% FIXME : do we need to renormalize this here? apparently |
| 8931 |
% not... |
| 8932 |
%\def\pgfplots@anchorname{image}% |
| 8933 |
% |
| 8934 |
\let\pgfplots@BEGIN@cell@picture=\pgfplots@BEGIN@cell@picture@DISABLED |
| 8935 |
\let\pgfplots@END@cell@picture=\pgfplots@END@cell@picture@DISABLED |
| 8936 |
\def\pgfplots@add@named@child@node##1{}% do nothing here |
| 8937 |
\let\pgfplots@finally@correct@child@node@positions=\relax |
| 8938 |
% |
| 8939 |
% translate the coordinate system before the 'current axis' |
| 8940 |
% node is generated. |
| 8941 |
\expandafter\def\expandafter\pgfplots@beforenode\expandafter{\pgfplots@beforenode |
| 8942 |
\setbox\pgfnodepartimagebox=\hbox{}% |
| 8943 |
}% |
| 8944 |
}% |
| 8945 |
} |
| 8946 |
|
| 8947 |
\long\def\pgfplots@ifcellpicture@required#1#2{% |
| 8948 |
\if1\pgfplots@cell@picture@mode |
| 8949 |
% cell picture=true |
| 8950 |
#1\relax |
| 8951 |
\else |
| 8952 |
% cell picture=false | cell picture=if necessary |
| 8953 |
\edef\pgfplots@shapename{pgfplots@low@level@shape@INNER}% |
| 8954 |
\pgfutil@IfUndefined{pgf@anchor@\pgfplots@shapename @\pgfplots@anchorname}{% |
| 8955 |
% we need to compute the anchor a posteriorily. |
| 8956 |
\if0\pgfplots@cell@picture@mode |
| 8957 |
% cell picture=false is forbidden here... |
| 8958 |
\pgfplots@error{Sorry, 'cell picture=false' is UNSUPPORTED for 'anchor=\pgfplots@anchorname'.}% |
| 8959 |
\fi |
| 8960 |
\if2\pgfplots@cell@picture@mode |
| 8961 |
\pgfplots@log5{'cell picture=if necessary' resulted in 'cell picture=true'}% |
| 8962 |
\fi |
| 8963 |
#1\relax |
| 8964 |
}{% |
| 8965 |
\if2\pgfplots@cell@picture@mode |
| 8966 |
\pgfplots@log5{'cell picture=if necessary' resulted in 'cell picture=false'}% |
| 8967 |
\fi |
| 8968 |
% OK, an a priori anchor is available - we do not really need |
| 8969 |
% a cell picture and this is compatible with the input |
| 8970 |
% options: |
| 8971 |
#2\relax |
| 8972 |
}% |
| 8973 |
\fi |
| 8974 |
}% |
| 8975 |
|
| 8976 |
\def\pgfplots@define@preliminary@current@axis@node{% |
| 8977 |
\begingroup |
| 8978 |
\pgfplots@sys@beforenode |
| 8979 |
% create a leight-weight 'current axis' node for anchor references |
| 8980 |
% (which may happen during both, the axis descriptions or any |
| 8981 |
% path/plot commands). |
| 8982 |
\pgfmultipartnode{pgfplots@low@level@shape@INNER}{image}{current axis}{\pgfusepath{discard}}% |
| 8983 |
\endgroup |
| 8984 |
}% |
| 8985 |
|
| 8986 |
\def\pgfplots@BEGIN@cell@picture[#1]{% |
| 8987 |
% |
| 8988 |
\pgfplots@define@preliminary@current@axis@node |
| 8989 |
% |
| 8990 |
\pgfplotsutil@BEGIN@cell@picture[#1]% |
| 8991 |
}% |
| 8992 |
\def\pgfplotsutil@BEGIN@cell@picture[#1]{% |
| 8993 |
\setbox\pgfnodepartimagebox=\hbox\bgroup\bgroup |
| 8994 |
\pgfinterruptpicture |
| 8995 |
\tikzpicture[#1]% |
| 8996 |
% set baseline for sub-picture to default value. |
| 8997 |
% the baseline option will be applied to the OUTER picture. |
| 8998 |
\pgfsetbaseline{\pgf@picminy}% |
| 8999 |
\pgfutil@ifundefined{pgfsettrimleft}{}{% |
| 9000 |
\pgfsettrimleft{\pgf@picminx}% |
| 9001 |
\pgfsettrimright{\pgf@picmaxx}% |
| 9002 |
}% |
| 9003 |
\begingroup |
| 9004 |
\pgfgettransformentries\aa\ab\ba\bb\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 9005 |
\xdef\pgfplots@savedtransformshift{% |
| 9006 |
\global\pgf@x=\pgfplots@loc@TMPa\space |
| 9007 |
\global\pgf@y=\pgfplots@loc@TMPb\space |
| 9008 |
}% |
| 9009 |
\xdef\pgfplots@glob@TMPa{{\aa}{\ab}{\ba}{\bb}}% |
| 9010 |
\endgroup |
| 9011 |
\expandafter\pgfsettransformentries\pgfplots@glob@TMPa{0pt}{0pt}% |
| 9012 |
} |
| 9013 |
|
| 9014 |
\def\pgfplotsutil@END@cell@picture#1{% |
| 9015 |
\xdef\pgfplots@cell@picture@remembered{% |
| 9016 |
\ifpgfrememberpicturepositiononpage |
| 9017 |
\noexpand\pgfrememberpicturepositiononpagetrue |
| 9018 |
\else |
| 9019 |
\noexpand\pgfrememberpicturepositiononpagefalse |
| 9020 |
\fi |
| 9021 |
}% |
| 9022 |
\xdef\pgfplots@cell@pictureid{\pgfpictureid}% |
| 9023 |
\endtikzpicture% |
| 9024 |
\begingroup |
| 9025 |
\ifdim\pgf@picmaxx=-16000pt\relax% |
| 9026 |
\pgf@picmaxx=0pt\relax% |
| 9027 |
\pgf@picminx=0pt\relax% |
| 9028 |
\pgf@picmaxy=0pt\relax% |
| 9029 |
\pgf@picminy=0pt\relax% |
| 9030 |
\fi% |
| 9031 |
#1% |
| 9032 |
\endgroup |
| 9033 |
\endpgfinterruptpicture |
| 9034 |
\egroup\egroup% end of pgfnodepartimagebox |
| 9035 |
% |
| 9036 |
% restore any shift transformations provided to an axis. |
| 9037 |
% These would be lost otherwise. |
| 9038 |
\pgftransformshift{\pgfplots@savedtransformshift}% |
| 9039 |
% |
| 9040 |
% allow positioning of colorbars with this hook. |
| 9041 |
% It is \relax unless this here is a color bar axis. |
| 9042 |
% Its intention is to re-define `\pgfplots@at': |
| 9043 |
\pgfplots@colorbar@position@hook% |
| 9044 |
% |
| 9045 |
\pgftransformshift{\pgfplots@at}% |
| 9046 |
% |
| 9047 |
}% |
| 9048 |
\def\pgfplots@END@cell@picture{% |
| 9049 |
\pgfplotsutil@END@cell@picture{\pgfplots@END@cell@picture@preparepoints}% |
| 9050 |
}% |
| 9051 |
|
| 9052 |
\def\pgfplots@END@cell@picture@preparepoints{% |
| 9053 |
% Protocol sizes for the axis-shape. |
| 9054 |
% That needs to be done globally, do avoid all those |
| 9055 |
% \endgroup's in and after \endpgfinterruptpicture ... |
| 9056 |
% |
| 9057 |
% |
| 9058 |
% \pgfplotspointorigininternal: |
| 9059 |
% used for anchor=<some node inside of the axis> and for |
| 9060 |
% 'cell picture=true' in order to correct remembered node positions: |
| 9061 |
\xdef\pgfplotspointorigininternal{\global\pgf@x=\the\pgf@picminx\space\global\pgf@y=\the\pgf@picminy\space}% |
| 9062 |
% |
| 9063 |
\ifpgfplots@deprecated@anchors |
| 9064 |
\pgfplotspointminminmin |
| 9065 |
\else |
| 9066 |
\pgfplotspointbblowerleft |
| 9067 |
\fi |
| 9068 |
\pgf@xa=\pgf@x |
| 9069 |
\pgf@ya=\pgf@y |
| 9070 |
\pgf@pos@transform\pgf@xa\pgf@ya |
| 9071 |
\advance\pgf@xa by-\pgf@picminx |
| 9072 |
\advance\pgf@ya by-\pgf@picminy |
| 9073 |
\xdef\pgfplotspointlowerleftinnercorner{% |
| 9074 |
\global\pgf@x=\the\pgf@xa\space |
| 9075 |
\global\pgf@y=\the\pgf@ya\space |
| 9076 |
}% |
| 9077 |
% |
| 9078 |
\global\pgf@x=\pgf@picmaxx |
| 9079 |
\global\pgf@y=\pgf@picmaxy |
| 9080 |
\global\advance\pgf@x by-\pgf@picminx |
| 9081 |
\global\advance\pgf@y by-\pgf@picminy |
| 9082 |
\xdef\pgfplotspointupperrightcorner{\global\pgf@x=\the\pgf@x\space\global\pgf@y=\the\pgf@y\space}% |
| 9083 |
% |
| 9084 |
\pgfplotspointaxisorigin |
| 9085 |
\pgf@pos@transform\pgf@x\pgf@y |
| 9086 |
\global\advance\pgf@x by-\pgf@picminx |
| 9087 |
\global\advance\pgf@y by-\pgf@picminy |
| 9088 |
\xdef\pgfplotspointaxisorigin{\global\pgf@x=\the\pgf@x\space\global\pgf@y=\the\pgf@y\space}% |
| 9089 |
} |
| 9090 |
|
| 9091 |
% this here is essentially the same as |
| 9092 |
% \pgfpointanchor{current axis}{#1} |
| 9093 |
% but it does not need a node. |
| 9094 |
\def\pgfplotspointdescriptionbyanchor#1{% |
| 9095 |
\begingroup |
| 9096 |
\edef\pgfplotspointdescriptionbyanchor@{#1}% |
| 9097 |
\gdef\pgfplots@glob@TMPa{0}% |
| 9098 |
% do a linear search through all anchors of |
| 9099 |
% shape pgfplots@low@level@shape@INNER : |
| 9100 |
\def\anchor##1##2{% |
| 9101 |
\def\pgfplots@loc@TMPa{##1}% |
| 9102 |
\ifx\pgfplots@loc@TMPa\pgfplotspointdescriptionbyanchor@ |
| 9103 |
\pgf@process{##2}% |
| 9104 |
\gdef\pgfplots@glob@TMPa{1}% |
| 9105 |
\fi |
| 9106 |
}% |
| 9107 |
\pgfplots@low@level@shape@INNER@define |
| 9108 |
\if0\pgfplots@glob@TMPa |
| 9109 |
\pgfplots@error{The anchor '#1' is unsupported in this context.}% |
| 9110 |
\fi |
| 9111 |
\endgroup |
| 9112 |
}% |
| 9113 |
|
| 9114 |
\def\pgfplots@BEGIN@cell@picture@DISABLED[#1]{% |
| 9115 |
\begingroup |
| 9116 |
\pgfinterruptboundingbox |
| 9117 |
% |
| 9118 |
% |
| 9119 |
% allow positioning of colorbars with this hook. |
| 9120 |
% It is \relax unless this here is a color bar axis. |
| 9121 |
% Its intention is to re-define `\pgfplots@at': |
| 9122 |
\pgfplots@colorbar@position@hook% |
| 9123 |
% |
| 9124 |
% prepare a priori anchor transformation (see |
| 9125 |
% \pgfplots@prepare@cell@picture for details): |
| 9126 |
% FIXME : \pgfplotspointdescriptionbyanchor invokes |
| 9127 |
% \pgfplotsqpointdescriptionxy{<x>}{<y>} -- but it is not |
| 9128 |
% merely a direction, it uses an offset. Is that correct!? |
| 9129 |
\pgfqpointscale{-1}{\pgfplotspointdescriptionbyanchor{\pgfplots@anchorname@internal}}% |
| 9130 |
\xdef\pgfplots@anchor@expanded{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}% |
| 9131 |
% |
| 9132 |
\scope[% |
| 9133 |
/utils/exec={% |
| 9134 |
% seems that \scope requires this complicated |
| 9135 |
% formulation: |
| 9136 |
\tikz@addtransform{% |
| 9137 |
\pgftransformshift{\pgfplots@cell@picture@DISABLED@shifts}% |
| 9138 |
}% |
| 9139 |
},% |
| 9140 |
#1,% |
| 9141 |
]% |
| 9142 |
\pgfplots@define@preliminary@current@axis@node |
| 9143 |
}% |
| 9144 |
\def\pgfplots@END@cell@picture@DISABLED{% |
| 9145 |
\pgfplots@END@cell@picture@preparepoints% |
| 9146 |
\endscope% |
| 9147 |
\endpgfinterruptboundingbox |
| 9148 |
\endgroup |
| 9149 |
\global\let\pgfplots@cell@picture@remembered=\relax |
| 9150 |
\global\let\pgfplots@cell@pictureid=\pgfutil@empty |
| 9151 |
% |
| 9152 |
% we need to re-add these trafos here since the \scope of the |
| 9153 |
% "not-cell-picture" is closed. But not the anchor which has to be |
| 9154 |
% handled by \pgfmultipartnode. See |
| 9155 |
% \pgfplots@cell@picture@DISABLED@shifts |
| 9156 |
\pgftransformshift{\pgfplots@at}% |
| 9157 |
}% |
| 9158 |
|
| 9159 |
\def\pgfplots@cell@picture@DISABLED@shifts{% |
| 9160 |
\pgfpointadd{\pgfplots@at}{\pgfplots@anchor@expanded}% |
| 9161 |
}% |
| 9162 |
|
| 9163 |
\def\pgfplots@BEGIN@init@and@draw@axis{% |
| 9164 |
% |
| 9165 |
% |
| 9166 |
\pgfplots@draw@axis@pre |
| 9167 |
\pgfplots@draw@axis@is@prepared |
| 9168 |
\scope |
| 9169 |
% |
| 9170 |
\pgfkeysgetvalue{/pgfplots/axis background/.@cmd}\pgfplots@loc@TMPa |
| 9171 |
\ifx\pgfplots@loc@TMPa\pgfplots@empty@style@key |
| 9172 |
\else |
| 9173 |
\pgfplotsgetlayerforstyle{/pgfplots/axis background,/pgfplots/axis background@}% |
| 9174 |
\pgfplotsonlayer{\pgfplotsretval}{axis background}% |
| 9175 |
\path[/pgfplots/axis background,/pgfplots/axis background@] \pgfextra{\pgfplots@clippath@install{}};% |
| 9176 |
\endpgfplotsonlayer |
| 9177 |
\fi |
| 9178 |
% |
| 9179 |
\ifpgfplots@axis@on@top |
| 9180 |
\else |
| 9181 |
\pgfplots@draw@axis |
| 9182 |
\fi |
| 9183 |
% CLIPPING: |
| 9184 |
\ifpgfplots@clip |
| 9185 |
\if1\pgfplots@clipmode |
| 9186 |
% 'clip=true' and 'clip/mode=global': |
| 9187 |
\pgfplots@clippath@install{\pgfusepath{clip}}% |
| 9188 |
\fi |
| 9189 |
\fi |
| 9190 |
\pgfplotspointbb@assertvaluesexist% |
| 9191 |
} |
| 9192 |
|
| 9193 |
% something which is invoked after a clippath segment is complete. |
| 9194 |
% #1 should be something like \pgfusepath{clip} |
| 9195 |
\def\pgfplots@clippath@use@#1{% |
| 9196 |
\ifx\pgfplotspoint@bb@@@\relax |
| 9197 |
% remember the axis dimensions: |
| 9198 |
\ifdim\pgf@pathmaxx=-16000pt |
| 9199 |
\else |
| 9200 |
\begingroup |
| 9201 |
\pgf@xa=\pgf@pathmaxx |
| 9202 |
\advance\pgf@xa by-\pgf@pathminx |
| 9203 |
\pgf@ya=\pgf@pathmaxy |
| 9204 |
\advance\pgf@ya by-\pgf@pathminy |
| 9205 |
\xdef\pgfplots@glob@TMPa{{\the\pgf@pathminx}{\the\pgf@pathminy}{\the\pgf@xa}{\the\pgf@ya}}% |
| 9206 |
\endgroup |
| 9207 |
\global\let\pgfplotspoint@bb@@@=\pgfplots@glob@TMPa |
| 9208 |
\fi |
| 9209 |
\fi |
| 9210 |
#1% |
| 9211 |
}% |
| 9212 |
\def\pgfplots@clippath@prepare@for@axistype{% |
| 9213 |
\ifpgfplots@threedim |
| 9214 |
% FIXME : this can't be done in three dimensions. :-( |
| 9215 |
% -> for 3d, I need to clip at least the 2d projection. |
| 9216 |
% |
| 9217 |
% -> Identify the convex hull of the 2D projection: |
| 9218 |
\pgfplotsifaxissurfaceisforeground{0vv}{% |
| 9219 |
\pgfplotsifaxissurfaceisforeground{v0v}{% |
| 9220 |
\pgfplotsifaxissurfaceisforeground{vv0}{% |
| 9221 |
% ok. Do NOT use the intersection lines |
| 9222 |
% - 00v |
| 9223 |
% - 0v0 |
| 9224 |
% - v00 |
| 9225 |
% so, use |
| 9226 |
% 010 (01v) 011 |
| 9227 |
% 011 (0v1) 001 |
| 9228 |
% 001 (v01) 101 |
| 9229 |
% 101 (10v) 100 |
| 9230 |
% 100 (1v0) 110 |
| 9231 |
% 110 (v10) 011 (cycle) |
| 9232 |
\def\pgfplots@clippath@install##1{% |
| 9233 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9234 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9235 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9236 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9237 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9238 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9239 |
\pgfpathclose |
| 9240 |
\pgfplots@clippath@use@{##1}% |
| 9241 |
}% |
| 9242 |
}{% |
| 9243 |
% foreground surfs: 0vv, v0v, vv1 |
| 9244 |
% |
| 9245 |
% ok. Do NOT use the intersection lines |
| 9246 |
% - 00v |
| 9247 |
% - 0v1 |
| 9248 |
% - v01 |
| 9249 |
% so, use |
| 9250 |
% 010 (01v) 011 |
| 9251 |
% 011 (v11) 111 |
| 9252 |
% 111 (1v1) 101 |
| 9253 |
% 101 (10v) 100 |
| 9254 |
% 100 (v00) 000 |
| 9255 |
% 000 (0v0) 010 (cycle) |
| 9256 |
\def\pgfplots@clippath@install##1{\relax% |
| 9257 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9258 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9259 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9260 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9261 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9262 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9263 |
\pgfpathclose |
| 9264 |
\pgfplots@clippath@use@{##1}% |
| 9265 |
}% |
| 9266 |
}% |
| 9267 |
}{% |
| 9268 |
\pgfplotsifaxissurfaceisforeground{vv0}{% |
| 9269 |
% foreground surfs: 0vv, v1v, vv0 |
| 9270 |
% |
| 9271 |
% ok. Do NOT use the intersection lines |
| 9272 |
% - 01v |
| 9273 |
% - 0v0 |
| 9274 |
% - v10 |
| 9275 |
% so, use |
| 9276 |
% 000 (00v) 001 |
| 9277 |
% 001 (0v1) 011 |
| 9278 |
% 011 (v11) 111 |
| 9279 |
% 111 (11v) 110 |
| 9280 |
% 110 (1v0) 100 |
| 9281 |
% 100 (v00) 000 (cycle) |
| 9282 |
\def\pgfplots@clippath@install##1{% |
| 9283 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9284 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9285 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9286 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9287 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9288 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9289 |
\pgfpathclose |
| 9290 |
\pgfplots@clippath@use@{##1}% |
| 9291 |
}% |
| 9292 |
}{% |
| 9293 |
% foreground surfs: 0vv, v1v, vv1 |
| 9294 |
% |
| 9295 |
% ok. Do NOT use the intersection lines |
| 9296 |
% - 01v |
| 9297 |
% - 0v1 |
| 9298 |
% - v11 |
| 9299 |
% so, use |
| 9300 |
% 000 (00v) 001 |
| 9301 |
% 001 (v01) 101 |
| 9302 |
% 101 (1v1) 111 |
| 9303 |
% 111 (11v) 110 |
| 9304 |
% 110 (v10) 010 |
| 9305 |
% 010 (0v0) 000 (cycle) |
| 9306 |
\def\pgfplots@clippath@install##1{% |
| 9307 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9308 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9309 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9310 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9311 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9312 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9313 |
\pgfpathclose |
| 9314 |
\pgfplots@clippath@use@{##1}% |
| 9315 |
}% |
| 9316 |
}% |
| 9317 |
}% |
| 9318 |
}{% |
| 9319 |
\pgfplotsifaxissurfaceisforeground{v0v}{% |
| 9320 |
\pgfplotsifaxissurfaceisforeground{vv0}{% |
| 9321 |
% foreground surfs: 1vv, v0v, vv0. |
| 9322 |
% |
| 9323 |
% Thus: DON'T use the intersection lines |
| 9324 |
% - 10v |
| 9325 |
% - 1v0 |
| 9326 |
% - v00 |
| 9327 |
% So, use |
| 9328 |
% 110 (11v) 111 |
| 9329 |
% 111 (1v1) 101 |
| 9330 |
% 101 (v01) 001 |
| 9331 |
% 001 (00v) 000 |
| 9332 |
% 000 (0v0) 010 |
| 9333 |
% 010 (v10) 110 (cycle) |
| 9334 |
\def\pgfplots@clippath@install##1{% |
| 9335 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9336 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9337 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9338 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9339 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9340 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9341 |
\pgfpathclose |
| 9342 |
\pgfplots@clippath@use@{##1}% |
| 9343 |
}% |
| 9344 |
}{% |
| 9345 |
% foreground surfs: 1vv, v0v, vv1 |
| 9346 |
% Thus: DON'T use the intersection lines |
| 9347 |
% - 10v |
| 9348 |
% - 1v1 |
| 9349 |
% - v01 |
| 9350 |
% So, use |
| 9351 |
% 110 (11v) 111 |
| 9352 |
% 111 (v11) 011 |
| 9353 |
% 011 (0v1) 001 |
| 9354 |
% 001 (00v) 000 |
| 9355 |
% 000 (v00) 100 |
| 9356 |
% 100 (1v0) 110 (cycle) |
| 9357 |
\def\pgfplots@clippath@install##1{% |
| 9358 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9359 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9360 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9361 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9362 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9363 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9364 |
\pgfpathclose |
| 9365 |
\pgfplots@clippath@use@{##1}% |
| 9366 |
}% |
| 9367 |
}% |
| 9368 |
}{% |
| 9369 |
\pgfplotsifaxissurfaceisforeground{vv0}{% |
| 9370 |
% foreground surfs: 1vv, v1v, vv0 |
| 9371 |
% Thus: DON'T use the intersection lines |
| 9372 |
% - 11v |
| 9373 |
% - 1v0 |
| 9374 |
% - v10 |
| 9375 |
% So, use |
| 9376 |
% 100 (10v) 101 |
| 9377 |
% 101 (1v1) 111 |
| 9378 |
% 111 (v11) 011 |
| 9379 |
% 011 (01v) 010 |
| 9380 |
% 010 (0v0) 000 |
| 9381 |
% 000 (v00) 100 (cycle) |
| 9382 |
\def\pgfplots@clippath@install##1{% |
| 9383 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9384 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9385 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9386 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9387 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9388 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9389 |
\pgfpathclose |
| 9390 |
\pgfplots@clippath@use@{##1}% |
| 9391 |
}% |
| 9392 |
}{% |
| 9393 |
% foreground surfs: 1vv, v1v, vv1 |
| 9394 |
% Thus: DON'T use the intersection lines |
| 9395 |
% - 11v |
| 9396 |
% - 1v1 |
| 9397 |
% - v11 |
| 9398 |
% So, use |
| 9399 |
% 100 (10v) 101 |
| 9400 |
% 101 (v01) 001 |
| 9401 |
% 001 (0v1) 011 |
| 9402 |
% 011 (01v) 010 |
| 9403 |
% 010 (v10) 110 |
| 9404 |
% 110 (1v0) 100 (cycle) |
| 9405 |
\def\pgfplots@clippath@install##1{% |
| 9406 |
\pgfpathmoveto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmin}}% |
| 9407 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9408 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymin}{\pgfplots@zmax}}% |
| 9409 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmax}}% |
| 9410 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmin}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9411 |
\pgfpathlineto{\pgfplotsqpointxyz{\pgfplots@xmax}{\pgfplots@ymax}{\pgfplots@zmin}}% |
| 9412 |
\pgfpathclose |
| 9413 |
\pgfplots@clippath@use@{##1}% |
| 9414 |
}% |
| 9415 |
}% |
| 9416 |
}% |
| 9417 |
}% |
| 9418 |
|
| 9419 |
\else |
| 9420 |
\pgfplotsqpointxy{\pgfplots@xmin}{\pgfplots@ymin}% |
| 9421 |
\edef\pgfplots@loc@TMPa{\global\pgf@x=\the\pgf@x\space\global\pgf@y=\the\pgf@y\space}% |
| 9422 |
\pgfplotsqpointxy{\pgfplots@xmax}{\pgfplots@ymin}% |
| 9423 |
\edef\pgfplots@loc@TMPb{\global\pgf@x=\the\pgf@x\space\global\pgf@y=\the\pgf@y\space}% |
| 9424 |
\pgfplotsqpointxy{\pgfplots@xmax}{\pgfplots@ymax}% |
| 9425 |
\edef\pgfplots@loc@TMPc{\global\pgf@x=\the\pgf@x\space\global\pgf@y=\the\pgf@y\space}% |
| 9426 |
\pgfplotsqpointxy{\pgfplots@xmin}{\pgfplots@ymax}% |
| 9427 |
\edef\pgfplots@loc@TMPd{\global\pgf@x=\the\pgf@x\space\global\pgf@y=\the\pgf@y\space}% |
| 9428 |
\begingroup |
| 9429 |
\toks0=\expandafter{\pgfplots@loc@TMPa}% |
| 9430 |
\toks1=\expandafter{\pgfplots@loc@TMPb}% |
| 9431 |
\toks2=\expandafter{\pgfplots@loc@TMPc}% |
| 9432 |
\toks3=\expandafter{\pgfplots@loc@TMPd}% |
| 9433 |
\xdef\pgfplots@glob@TMPa##1{% |
| 9434 |
\noexpand\pgfpathmoveto{\the\toks0 }% |
| 9435 |
\noexpand\pgfpathlineto{\the\toks1 }% |
| 9436 |
\noexpand\pgfpathlineto{\the\toks2 }% |
| 9437 |
\noexpand\pgfpathlineto{\the\toks3 }% |
| 9438 |
\noexpand\pgfpathclose |
| 9439 |
\noexpand\pgfplots@clippath@use@{##1}% |
| 9440 |
}% |
| 9441 |
\endgroup |
| 9442 |
\let\pgfplots@clippath@install=\pgfplots@glob@TMPa |
| 9443 |
\fi |
| 9444 |
}% |
| 9445 |
% Defines \pgfplots@clippath@install. |
| 9446 |
% @PRECONDITION the axis limits must be ready. |
| 9447 |
\def\pgfplots@clippath@prepare{% |
| 9448 |
\pgfplots@clippath@prepare@for@axistype |
| 9449 |
% now, the \pgfplots@clippath@install routine should be ready. |
| 9450 |
% |
| 9451 |
% it is used to compute the bounding box. prepare that: |
| 9452 |
\global\let\pgfplotspoint@bb@@@=\relax |
| 9453 |
% |
| 9454 |
% Now, I SET the clip path temporarily and record the low level |
| 9455 |
% protocol. |
| 9456 |
% This low level protocol is used to create a highly optimized |
| 9457 |
% clip path routine; it will be used quite often. |
| 9458 |
% |
| 9459 |
\let\pgfplots@clippath@install@pathcmd=\pgfplots@clippath@install |
| 9460 |
\iffalse |
| 9461 |
% FIXME : this was an idea to optimize the installation of the |
| 9462 |
% clip path (cache the protocolled version). FIX IT |
| 9463 |
% |
| 9464 |
\pgf@resetpathsizes% FIXME: this here should not be necessary! |
| 9465 |
\pgfsysprotocol@getcurrentprotocol\pgfplots@loc@TMPa% |
| 9466 |
\begingroup |
| 9467 |
% when I do this work, I can as well compute the bounding |
| 9468 |
% box (done in \pgfplots@clippath@use@) |
| 9469 |
\pgfinterruptboundingbox |
| 9470 |
\pgf@relevantforpicturesizetrue |
| 9471 |
% |
| 9472 |
\pgfsysprotocol@bufferedtrue% |
| 9473 |
\pgfsysprotocol@setcurrentprotocol\pgfutil@empty% |
| 9474 |
% \pgfplots@clippath@install@pathcmd{\pgfusepath{clip}}% |
| 9475 |
\pgfsysprotocol@getcurrentprotocol\pgfplots@loc@TMPa% |
| 9476 |
\global\let\pgfplots@glob@TMPa=\pgfplots@loc@TMPa |
| 9477 |
\endpgfinterruptboundingbox |
| 9478 |
\endgroup |
| 9479 |
\let\pgfplots@clippath@install@clip@protocolled=\pgfplots@glob@TMPa |
| 9480 |
\pgfsysprotocol@setcurrentprotocol\pgfplots@loc@TMPa% |
| 9481 |
\fi |
| 9482 |
% |
| 9483 |
% Replace \pgfplots@clippath@install by one which makes use of the |
| 9484 |
% optimized version (if ##1=\pgfusepath{clip}) |
| 9485 |
\def\pgfplots@clippath@install##1{% |
| 9486 |
\def\pgfplots@loc@TMPa{##1}% |
| 9487 |
\let\pgfplots@clippath@install@aftergroup=\pgfutil@empty |
| 9488 |
% the 'clip' path has been precomputed because it is often |
| 9489 |
% used: FIXME: unfinished, see above |
| 9490 |
%\expandafter\pgfsys@invoke\expandafter{\pgfplots@clippath@install@clip@protocolled}% |
| 9491 |
\ifx\pgfplots@loc@TMPa\pgfplots@clippath@install@test |
| 9492 |
\if0\pgfplots@clip@BB@mode |
| 9493 |
% clip bounding box=default tikz |
| 9494 |
\else |
| 9495 |
% clip bounding box=upper bound |
| 9496 |
% |
| 9497 |
% do NOT take the clip path into account for the bounding |
| 9498 |
% box! That is very strange when you hide the axis. |
| 9499 |
% |
| 9500 |
% note that we do not need it: the path's BB will be |
| 9501 |
% extracted anyway by this BB code. |
| 9502 |
% |
| 9503 |
% However, we will use the clip path's BB as |
| 9504 |
% *upper bound* - but only after the paths in the |
| 9505 |
% current scope have been completed. |
| 9506 |
% The implementation of this upper bound is hooked |
| 9507 |
% into '\endscope': |
| 9508 |
\edef\pgfplots@clippath@install@aftergroup{% |
| 9509 |
\ifpgf@relevantforpicturesize |
| 9510 |
\noexpand\pgf@relevantforpicturesizetrue |
| 9511 |
\else |
| 9512 |
\noexpand\pgf@relevantforpicturesizefalse |
| 9513 |
\fi |
| 9514 |
\noexpand\pgfplots@clippath@install@BB@upper@bound |
| 9515 |
}% |
| 9516 |
\pgf@relevantforpicturesizefalse |
| 9517 |
% |
| 9518 |
\fi |
| 9519 |
\fi |
| 9520 |
\pgf@resetpathsizes% FIXME: this here should not be necessary! |
| 9521 |
\pgfplots@clippath@install@pathcmd{##1}% |
| 9522 |
\pgfplots@clippath@install@aftergroup |
| 9523 |
}% |
| 9524 |
% |
| 9525 |
}% |
| 9526 |
\def\pgfplots@clippath@install@test{\pgfusepath{clip}}% |
| 9527 |
|
| 9528 |
% This is the main part of the implementation for |
| 9529 |
% 'clip bounding box=upper bound' : it collects the bounding box of everything inside of |
| 9530 |
% the clipped area. Then in the associated \endscope, it clips that bounding box to the expected |
| 9531 |
% clip path -- and protocols that size. |
| 9532 |
\def\pgfplots@clippath@install@BB@upper@bound{% |
| 9533 |
\tikzset{ |
| 9534 |
execute at end scope=\pgfplots@clippath@install@BB@update, |
| 9535 |
% |
| 9536 |
% no special handling for nested scopes: |
| 9537 |
% unnecessary; tikz handles that on its own: |
| 9538 |
%execute at begin scope=\let\pgfplots@clippath@install@BB@update=\relax, |
| 9539 |
}% |
| 9540 |
\pgfinterruptboundingbox |
| 9541 |
% count everything in the current scope into a separate bounding box |
| 9542 |
}% |
| 9543 |
|
| 9544 |
\def\pgfplots@clippath@install@BB@update{% |
| 9545 |
% we are inside of \endscope. |
| 9546 |
% |
| 9547 |
% this here is the BB of the current scope! |
| 9548 |
% More precisely: in *the* scope in which we started the clip |
| 9549 |
% path, not in nested scopes. |
| 9550 |
% |
| 9551 |
\ifdim\pgf@picminx=16000pt % |
| 9552 |
\xdef\pgfplots@glob@TMPa{}% |
| 9553 |
\else |
| 9554 |
\xdef\pgfplots@glob@TMPa{% |
| 9555 |
{\the\pgf@picminx}% |
| 9556 |
{\the\pgf@picminy}% |
| 9557 |
{\the\pgf@picmaxx}% |
| 9558 |
{\the\pgf@picmaxy}% |
| 9559 |
}% |
| 9560 |
\fi |
| 9561 |
\endpgfinterruptboundingbox |
| 9562 |
\ifx\pgfplots@glob@TMPa\pgfutil@empty |
| 9563 |
\else |
| 9564 |
\expandafter\pgfplots@clippath@install@BB@update@\pgfplots@glob@TMPa |
| 9565 |
\fi |
| 9566 |
}% |
| 9567 |
|
| 9568 |
\def\pgfplots@clippath@install@BB@update@#1#2#3#4{% |
| 9569 |
\pgfqpoint{#1}{#2}% |
| 9570 |
\pgfplots@clip@to@clippath% |
| 9571 |
\pgf@protocolsizes{\pgf@x}{\pgf@y}% |
| 9572 |
% |
| 9573 |
\pgfqpoint{#3}{#4}% |
| 9574 |
\pgfplots@clip@to@clippath% |
| 9575 |
\pgf@protocolsizes{\pgf@x}{\pgf@y}% |
| 9576 |
}% |
| 9577 |
|
| 9578 |
\def\pgfplots@clip@to@clippath{% |
| 9579 |
\pgf@xa=\pgf@x |
| 9580 |
\pgf@ya=\pgf@y |
| 9581 |
\begingroup\pgf@process{\pgfplotspointbblowerleft\pgf@pos@transform\pgf@x\pgf@y}\endgroup% |
| 9582 |
\ifdim\pgf@xa<\pgf@x \pgf@xa=\pgf@x \fi |
| 9583 |
\ifdim\pgf@ya<\pgf@y \pgf@ya=\pgf@y \fi |
| 9584 |
% |
| 9585 |
\begingroup\pgf@process{\pgfplotspointbbupperright\pgf@pos@transform\pgf@x\pgf@y}\endgroup |
| 9586 |
\ifdim\pgf@xa>\pgf@x \pgf@xa=\pgf@x \fi |
| 9587 |
\ifdim\pgf@ya>\pgf@y \pgf@ya=\pgf@y \fi |
| 9588 |
% |
| 9589 |
\pgfqpoint{\pgf@xa}{\pgf@ya}% |
| 9590 |
}% |
| 9591 |
|
| 9592 |
|
| 9593 |
\def\pgfplotspointbb@assertvaluesexist{% |
| 9594 |
\ifx\pgfplotspoint@bb@@@\relax |
| 9595 |
% (RE)COMPUTE: |
| 9596 |
% |
| 9597 |
% Determine tight 2D bounding box for the axis as such: |
| 9598 |
\begingroup |
| 9599 |
% hm. seems as if it is sufficient to set |
| 9600 |
% \pgf@relevantforpicturesizefalse. but it does not hurt; I |
| 9601 |
% will see to it eventually. Perhaps. |
| 9602 |
\pgfinterruptboundingbox |
| 9603 |
\pgf@relevantforpicturesizetrue |
| 9604 |
\pgfplots@clippath@install{\pgfusepath{discard}} |
| 9605 |
\endpgfinterruptboundingbox |
| 9606 |
\endgroup |
| 9607 |
\fi |
| 9608 |
}% |
| 9609 |
|
| 9610 |
% Point commands which expand to the bounding box which contains at |
| 9611 |
% least the (projected) visible part of the axis |
| 9612 |
\def\pgfplotspointbblowerleft{% |
| 9613 |
\pgfplotspointbb@assertvaluesexist |
| 9614 |
\expandafter\pgfplotspointbblowerleft@\pgfplotspoint@bb@@@ |
| 9615 |
}% |
| 9616 |
\def\pgfplotspointbbupperright{% |
| 9617 |
\pgfpointadd{\pgfplotspointbblowerleft}{\pgfplotspointbbdiagonal}% |
| 9618 |
}% |
| 9619 |
\def\pgfplotspointbbdiagonal{% |
| 9620 |
\pgfplotspointbb@assertvaluesexist |
| 9621 |
\expandafter\pgfplotspointbbdiagonal@\pgfplotspoint@bb@@@ |
| 9622 |
}% |
| 9623 |
\let\pgfplotspoint@bb@@@=\relax |
| 9624 |
\def\pgfplotspointbblowerleft@#1#2#3#4{\global\pgf@x=#1 \global\pgf@y=#2 }% |
| 9625 |
\def\pgfplotspointbbdiagonal@#1#2#3#4{\global\pgf@x=#3 \global\pgf@y=#4 }% |
| 9626 |
|
| 9627 |
% #1: a complete \pgfusepath command what to do with the clip path. |
| 9628 |
\def\pgfplots@clippath@install#1{% |
| 9629 |
\pgfplots@error{Can't install a clippath here - the command has not yet been prepared.}% |
| 9630 |
}% |
| 9631 |
|
| 9632 |
|
| 9633 |
% Generates a path representing the outline of the axis. |
| 9634 |
% Example: |
| 9635 |
% |
| 9636 |
% \pgfplotspathaxisoutline |
| 9637 |
% \pgfusepath{clip} |
| 9638 |
\def\pgfplotspathaxisoutline{% |
| 9639 |
\pgfplots@clippath@install{}% |
| 9640 |
}% |
| 9641 |
|
| 9642 |
% This is the counterpart for \pgfplots@BEGIN@init@and@draw@axis |
| 9643 |
\def\pgfplots@END@init@and@draw@axis{% |
| 9644 |
\endscope% |
| 9645 |
% |
| 9646 |
\ifpgfplots@axis@on@top |
| 9647 |
\pgfplots@draw@axis |
| 9648 |
\fi |
| 9649 |
\pgfplots@draw@axis@post |
| 9650 |
% |
| 9651 |
\pgfplots@markers@visphase@after@axis |
| 9652 |
\global\pgfplotslistnewempty\pgfplots@stored@plotlist% delete contents. |
| 9653 |
% |
| 9654 |
\begingroup |
| 9655 |
\pgfkeysvalueof{/pgfplots/after end axis/.@cmd}\pgfeov% |
| 9656 |
\endgroup |
| 9657 |
% |
| 9658 |
} |
| 9659 |
|
| 9660 |
% Writes output to \pgfmathresult |
| 9661 |
% #1: the tick list (not a macro!) |
| 9662 |
% #2: the axis |
| 9663 |
\def\pgfplots@filter@input@ticks@with@log#1#2{% |
| 9664 |
\let\pgfplots@glob@TMPa=\pgfutil@empty |
| 9665 |
\foreach \pgfplots@loc@TMPb in {#1} {% |
| 9666 |
\pgfplotscoordmath{float}{parse}{\pgfplots@loc@TMPb}% |
| 9667 |
\pgfmathfloattofixed{\pgfmathresult}% |
| 9668 |
\let\pgfplots@loc@TMPb=\pgfmathresult |
| 9669 |
% |
| 9670 |
\pgfplotscoordmath{#2}{log}{\pgfplots@loc@TMPb}% |
| 9671 |
\ifx\pgfplots@glob@TMPa\pgfutil@empty |
| 9672 |
\xdef\pgfplots@glob@TMPa{\pgfmathresult}% |
| 9673 |
\else |
| 9674 |
\xdef\pgfplots@glob@TMPa{\pgfplots@glob@TMPa,\pgfmathresult}% |
| 9675 |
\fi |
| 9676 |
}% |
| 9677 |
\let\pgfmathresult=\pgfplots@glob@TMPa |
| 9678 |
} |
| 9679 |
|
| 9680 |
% Writes output to \pgfmathresult |
| 9681 |
% #1: the input ticks |
| 9682 |
% #2: the transformation command key as macro |
| 9683 |
\def\pgfplots@filter@input@ticks@with@highleveltrafo#1#2{% |
| 9684 |
\let\pgfplots@glob@TMPa=\pgfutil@empty |
| 9685 |
\foreach \pgfplots@loc@TMPb in {#1} {% |
| 9686 |
\expandafter#2\expandafter{\pgfplots@loc@TMPb}\pgfeov% |
| 9687 |
\ifx\pgfplots@glob@TMPa\pgfutil@empty |
| 9688 |
\xdef\pgfplots@glob@TMPa{\pgfmathresult}% |
| 9689 |
\else |
| 9690 |
\xdef\pgfplots@glob@TMPa{\pgfplots@glob@TMPa,\pgfmathresult}% |
| 9691 |
\fi |
| 9692 |
}% |
| 9693 |
\let\pgfmathresult=\pgfplots@glob@TMPa |
| 9694 |
} |
| 9695 |
|
| 9696 |
% definition of 'axis cs': |
| 9697 |
\tikzdeclarecoordinatesystem{axis}{\edef\pgfplots@loc@TMPa{#1}\expandafter\pgfplots@evalute@tikz@coord@system@interface\pgfplots@loc@TMPa,\pgfplots@coord@end} |
| 9698 |
\def\pgfplotspointaxisxy#1#2{\pgfplots@evalute@tikz@coord@system@interface{#1},{#2},\pgfplots@coord@end}% |
| 9699 |
\def\pgfplotspointaxisxyz#1#2#3{\pgfplots@evalute@tikz@coord@system@interface{#1},{#2},{#3},\pgfplots@coord@end}% |
| 9700 |
\def\pgfplotsqpointaxisxy#1#2{% |
| 9701 |
\edef\pgfplotspointaxis@restore{% |
| 9702 |
\ifpgfplots@plot@coords@mathparser |
| 9703 |
\noexpand\pgfplots@plot@coords@mathparsertrue |
| 9704 |
\else |
| 9705 |
\noexpand\pgfplots@plot@coords@mathparserfalse |
| 9706 |
\fi |
| 9707 |
}% |
| 9708 |
\pgfplots@plot@coords@mathparserfalse |
| 9709 |
% |
| 9710 |
\pgfplotspointaxisxy{#1}{#2}% |
| 9711 |
% |
| 9712 |
\pgfplotspointaxis@restore |
| 9713 |
} |
| 9714 |
\def\pgfplotsqpointaxisxyz#1#2#3{% |
| 9715 |
\edef\pgfplotspointaxis@restore{% |
| 9716 |
\ifpgfplots@plot@coords@mathparser |
| 9717 |
\noexpand\pgfplots@plot@coords@mathparsertrue |
| 9718 |
\else |
| 9719 |
\noexpand\pgfplots@plot@coords@mathparserfalse |
| 9720 |
\fi |
| 9721 |
}% |
| 9722 |
\pgfplots@plot@coords@mathparserfalse |
| 9723 |
% |
| 9724 |
\pgfplotspointaxisxyz{#1}{#2}{#3}% |
| 9725 |
% |
| 9726 |
\pgfplotspointaxis@restore |
| 9727 |
} |
| 9728 |
|
| 9729 |
% definition of 'normalized axis cs': |
| 9730 |
\tikzdeclarecoordinatesystem{normalized axis}{\edef\pgfplots@loc@TMPa{#1}\expandafter\pgfplots@evalute@tikz@coord@system@interface@normalized\pgfplots@loc@TMPa,\pgfplots@coord@end} |
| 9731 |
\def\pgfplotspointnormalizedaxisxy#1#2{\pgfplots@evalute@tikz@coord@system@interface@normalized{#1},{#2},\pgfplots@coord@end}% |
| 9732 |
\def\pgfplotspointnormalizedaxisxyz#1#2#3{\pgfplots@evalute@tikz@coord@system@interface@normalized{#1},{#2},{#3},\pgfplots@coord@end}% |
| 9733 |
|
| 9734 |
\tikzdeclarecoordinatesystem{axis direction}{% |
| 9735 |
\edef\pgfplots@loc@TMPa{% |
| 9736 |
\noexpand\pgfplots@evalute@tikz@coord@system@interface[ noshift]% |
| 9737 |
#1,\noexpand\pgfplots@coord@end |
| 9738 |
}% |
| 9739 |
\pgfplots@loc@TMPa |
| 9740 |
} |
| 9741 |
\def\pgfplotspointaxisdirectionxy#1#2{\pgfplots@evalute@tikz@coord@system@interface[ noshift]{#1},{#2},\pgfplots@coord@end}% |
| 9742 |
\def\pgfplotspointaxisdirectionxyz#1#2#3{\pgfplots@evalute@tikz@coord@system@interface[ noshift]{#1},{#2},{#3},\pgfplots@coord@end}% |
| 9743 |
|
| 9744 |
% rel axis cs: |
| 9745 |
\tikzdeclarecoordinatesystem{rel axis}{\edef\pgfplots@loc@TMPa{#1}\expandafter\pgfplots@evalute@tikz@coord@system@interface@rel\pgfplots@loc@TMPa,\pgfplots@coord@end} |
| 9746 |
\def\pgfplotspointrelaxisxy#1#2{\pgfplots@evalute@tikz@coord@system@interface@rel{#1},{#2},\pgfplots@coord@end}% |
| 9747 |
\def\pgfplotspointrelaxisxyz#1#2#3{\pgfplots@evalute@tikz@coord@system@interface@rel{#1},{#2},{#3},\pgfplots@coord@end}% |
| 9748 |
|
| 9749 |
% axis description cs: |
| 9750 |
\tikzdeclarecoordinatesystem{axis description}{\edef\pgfplots@loc@TMPa{#1}\expandafter\pgfplots@evalute@tikz@coord@system@interface@axis@description\pgfplots@loc@TMPa\pgfplots@coord@end} |
| 9751 |
\def\pgfplots@evalute@tikz@coord@system@interface@axis@description#1,#2\pgfplots@coord@end{\pgfplotspointdescriptionxy{#1}{#2}} |
| 9752 |
|
| 9753 |
\def\pgfplotstransformcoordinatex#1{\pgfplots@evalute@tikz@coord@system@interface@for[]{x}{#1}}% |
| 9754 |
\def\pgfplotstransformcoordinatey#1{\pgfplots@evalute@tikz@coord@system@interface@for[]{y}{#1}}% |
| 9755 |
\def\pgfplotstransformcoordinatez#1{\pgfplots@evalute@tikz@coord@system@interface@for[]{z}{#1}}% |
| 9756 |
|
| 9757 |
\def\pgfplotstransformdirectionx#1{\pgfplots@evalute@tikz@coord@system@interface@for[ noshift]{x}{#1}}% |
| 9758 |
\def\pgfplotstransformdirectiony#1{\pgfplots@evalute@tikz@coord@system@interface@for[ noshift]{y}{#1}}% |
| 9759 |
\def\pgfplotstransformdirectionz#1{\pgfplots@evalute@tikz@coord@system@interface@for[ noshift]{z}{#1}}% |
| 9760 |
|
| 9761 |
\def\pgfplots@declare@mathfunctions{% |
| 9762 |
\pgfmathdeclarefunction{transformdirectionx}{1}{\pgfplotstransformdirectionx{##1}}% |
| 9763 |
\pgfmathdeclarefunction{transformdirectiony}{1}{\pgfplotstransformdirectiony{##1}}% |
| 9764 |
\pgfmathdeclarefunction{transformdirectionz}{1}{\pgfplotstransformdirectionz{##1}}% |
| 9765 |
% |
| 9766 |
\pgfmathdeclarefunction{transformcoordinatex}{1}{\pgfplotstransformcoordinatex{##1}}% |
| 9767 |
\pgfmathdeclarefunction{transformcoordinatey}{1}{\pgfplotstransformcoordinatey{##1}}% |
| 9768 |
\pgfmathdeclarefunction{transformcoordinatez}{1}{\pgfplotstransformcoordinatez{##1}}% |
| 9769 |
}% |
| 9770 |
|
| 9771 |
% Assigns \pgfmathresult := canvas coordinate (#3) for axis #2. |
| 9772 |
% |
| 9773 |
% A "canvas coordinate" here means an argument for \pgfplotsqpointxyz. |
| 9774 |
% |
| 9775 |
% #1: a command suffix which will be handed over to the datascale |
| 9776 |
% #2: an axis (x,y, or z) |
| 9777 |
% #3: the high-level coordinate which should be transformed |
| 9778 |
% trafo (typically an empty string) |
| 9779 |
\long\def\pgfplots@evalute@tikz@coord@system@interface@for[#1]#2#3{% |
| 9780 |
\pgfkeysgetvalue{/pgfplots/#2 coord trafo/.@cmd}\pgfplots@loc@TMPc |
| 9781 |
\ifx\pgfplots@loc@TMPc\pgfplots@empty@command@key |
| 9782 |
\edef\pgfmathresult{#3}% do not expand it - might contain unexpandable input for coord trafo. |
| 9783 |
\else |
| 9784 |
\pgfplots@loc@TMPc{#3}\pgfeov |
| 9785 |
\fi |
| 9786 |
\ifpgfplots@plot@coords@mathparser |
| 9787 |
\pgfplotscoordmath{default}{parse}{\pgfmathresult}% |
| 9788 |
\fi |
| 9789 |
\let\pgfplots@loc@TMPc=\pgfmathresult% FIXME: is that necessary? I doubt it... but just to make sure... |
| 9790 |
\csname ifpgfplots@#2islinear\endcsname |
| 9791 |
\pgfplotscoordmath{#2}{parsenumber}{\pgfplots@loc@TMPc}% |
| 9792 |
\pgfplots@if{pgfplots@apply@datatrafo@#2}{% |
| 9793 |
\pgfplotscoordmath{#2}{datascaletrafo#1}{\pgfmathresult}% |
| 9794 |
}{}% |
| 9795 |
\else |
| 9796 |
\pgfplotscoordmath{#2}{log}{\pgfplots@loc@TMPc}% |
| 9797 |
\fi |
| 9798 |
} |
| 9799 |
|
| 9800 |
\long\def\pgfplots@evalute@tikz@coord@system@interface@for@normalized[#1]#2#3{% |
| 9801 |
\edef\pgfmathresult{#3}% |
| 9802 |
\pgfplotscoordmath{default}{parse}{\pgfmathresult}% |
| 9803 |
\let\pgfplots@loc@TMPc=\pgfmathresult% FIXME: is that necessary? I doubt it... but just to make sure... |
| 9804 |
\pgfplotscoordmath{#2}{parsenumber}{\pgfplots@loc@TMPc}% |
| 9805 |
\csname ifpgfplots@#2islinear\endcsname |
| 9806 |
\pgfplots@if{pgfplots@apply@datatrafo@#2}{% |
| 9807 |
\pgfplotscoordmath{#2}{datascaletrafo#1}{\pgfmathresult}% |
| 9808 |
}{}% |
| 9809 |
\else |
| 9810 |
% OK, assume it *is* in the normalized format. |
| 9811 |
\fi |
| 9812 |
} |
| 9813 |
|
| 9814 |
\def\pgfplots@evalute@tikz@coord@system@interface{% |
| 9815 |
\begingroup |
| 9816 |
\pgfutil@ifnextchar[% |
| 9817 |
{\pgfplots@evalute@tikz@coord@system@interface@x}% |
| 9818 |
{\pgfplots@evalute@tikz@coord@system@interface@x[]}% |
| 9819 |
} |
| 9820 |
\def\pgfplots@evalute@tikz@coord@system@interface@x[#1]#2,{% |
| 9821 |
\def\pgfplots@evaluate@tikz@coord@opts{#1}% |
| 9822 |
\def\pgfplots@evaluate@tikz@coord@x{#2}% |
| 9823 |
\pgfplots@evalute@tikz@coord@system@interface@xy% |
| 9824 |
}% |
| 9825 |
|
| 9826 |
\def\pgfplots@evalute@tikz@coord@system@interface@xy#1,{% |
| 9827 |
\def\pgfplots@evaluate@tikz@coord@y{#1}% |
| 9828 |
\pgfutil@ifnextchar\pgfplots@coord@end{% |
| 9829 |
% ah - we have no Z component. ok. |
| 9830 |
\let\pgfplots@evaluate@tikz@coord@z\pgfutil@empty |
| 9831 |
% jump to the end of the state machine: |
| 9832 |
\pgfplots@evalute@tikz@coord@system@interface@@@@@ |
| 9833 |
}{% |
| 9834 |
\pgfplots@evalute@tikz@coord@system@interface@xyz |
| 9835 |
}% |
| 9836 |
}% |
| 9837 |
|
| 9838 |
\def\pgfplots@evalute@tikz@coord@system@interface@xyz#1,{% |
| 9839 |
\def\pgfplots@evaluate@tikz@coord@z{#1}% |
| 9840 |
\pgfplots@evalute@tikz@coord@system@interface@@@@@ |
| 9841 |
}% |
| 9842 |
|
| 9843 |
% equals only itself in \ifx: |
| 9844 |
\def\pgfplots@coord@end{\pgfplots@coord@end} |
| 9845 |
|
| 9846 |
\long\def\pgfplots@evalute@tikz@coord@system@interface@@@@@#1\pgfplots@coord@end{% |
| 9847 |
%\begingroup <--- has already been opened at the beginning of the state machine |
| 9848 |
\pgfplots@evalute@tikz@coord@system@interface@tocoords[\pgfplots@evaluate@tikz@coord@opts]% |
| 9849 |
\xdef\pgfplots@glob@TMPa{\pgfplots@evaluate@tikz@coord@x}% |
| 9850 |
\xdef\pgfplots@glob@TMPb{\pgfplots@evaluate@tikz@coord@y}% |
| 9851 |
\xdef\pgfplots@glob@TMPc{\pgfplots@evaluate@tikz@coord@z}% |
| 9852 |
\endgroup |
| 9853 |
\ifx\pgfplots@glob@TMPc\pgfutil@empty |
| 9854 |
\pgfplotsqpointxy{\pgfplots@glob@TMPa}{\pgfplots@glob@TMPb}% |
| 9855 |
\else |
| 9856 |
\pgfplotsqpointxyz{\pgfplots@glob@TMPa}{\pgfplots@glob@TMPb}{\pgfplots@glob@TMPc}% |
| 9857 |
\fi |
| 9858 |
} |
| 9859 |
|
| 9860 |
% Defines \pgfplots@evaluate@tikz@coord@[xyz] |
| 9861 |
\def\pgfplots@evalute@tikz@coord@system@interface@tocoords[#1]{% |
| 9862 |
\def\pgfplots@evalute@tikz@coord@@##1##2{% |
| 9863 |
\pgfplots@evalute@tikz@coord@system@interface@for[#1]{##2}{##1}% |
| 9864 |
}% |
| 9865 |
\expandafter\pgfplots@evalute@tikz@coord@@\expandafter{\pgfplots@evaluate@tikz@coord@x}{x}% |
| 9866 |
\let\pgfplots@evaluate@tikz@coord@x=\pgfmathresult |
| 9867 |
\expandafter\pgfplots@evalute@tikz@coord@@\expandafter{\pgfplots@evaluate@tikz@coord@y}{y}% |
| 9868 |
\let\pgfplots@evaluate@tikz@coord@y=\pgfmathresult |
| 9869 |
% |
| 9870 |
\ifx\pgfplots@evaluate@tikz@coord@z\pgfutil@empty |
| 9871 |
\else |
| 9872 |
\expandafter\pgfplots@evalute@tikz@coord@@\expandafter{\pgfplots@evaluate@tikz@coord@z}{z}% |
| 9873 |
\let\pgfplots@evaluate@tikz@coord@z=\pgfmathresult |
| 9874 |
\fi |
| 9875 |
}% |
| 9876 |
|
| 9877 |
\def\pgfplots@evalute@tikz@coord@system@interface@rel{% |
| 9878 |
\begingroup |
| 9879 |
\let\pgfplots@evalute@tikz@coord@system@interface@@@@@=\pgfplots@evalute@tikz@coord@system@interface@@@@@rel |
| 9880 |
\pgfutil@ifnextchar[% |
| 9881 |
{\pgfplots@evalute@tikz@coord@system@interface@x}% |
| 9882 |
{\pgfplots@evalute@tikz@coord@system@interface@x[]}% |
| 9883 |
} |
| 9884 |
|
| 9885 |
\long\def\pgfplots@evalute@tikz@coord@system@interface@@@@@rel#1\pgfplots@coord@end{% |
| 9886 |
%\begingroup <--- has already been opened at the beginning of the state machine |
| 9887 |
\pgfkeys{/pgf/fpu=false}% |
| 9888 |
\pgfmathparse{\pgfplots@evaluate@tikz@coord@x}% |
| 9889 |
\let\pgfplots@evaluate@tikz@coord@x=\pgfmathresult |
| 9890 |
\pgfmathparse{\pgfplots@evaluate@tikz@coord@y}% |
| 9891 |
\let\pgfplots@evaluate@tikz@coord@y=\pgfmathresult |
| 9892 |
\ifx\pgfplots@evaluate@tikz@coord@z\pgfutil@empty |
| 9893 |
\else |
| 9894 |
\pgfmathparse{\pgfplots@evaluate@tikz@coord@z}% |
| 9895 |
\let\pgfplots@evaluate@tikz@coord@z=\pgfmathresult |
| 9896 |
\fi |
| 9897 |
% |
| 9898 |
\pgfplotspointxaxis |
| 9899 |
\pgf@xx=\pgf@x |
| 9900 |
\pgf@xy=\pgf@y |
| 9901 |
% |
| 9902 |
\pgfplotspointyaxis |
| 9903 |
\pgf@yx=\pgf@x |
| 9904 |
\pgf@yy=\pgf@y |
| 9905 |
% |
| 9906 |
\ifpgfplots@allow@reversal@of@rel@axis@cs |
| 9907 |
\if\pgfkeysvalueof{/pgfplots/x dir/value}r% |
| 9908 |
\pgf@xa=-\pgfplots@evaluate@tikz@coord@x pt |
| 9909 |
\advance\pgf@xa by1pt |
| 9910 |
\edef\pgfplots@evaluate@tikz@coord@x{\pgf@sys@tonumber\pgf@xa}% |
| 9911 |
\fi |
| 9912 |
\if\pgfkeysvalueof{/pgfplots/y dir/value}r% |
| 9913 |
\pgf@xa=-\pgfplots@evaluate@tikz@coord@y pt |
| 9914 |
\advance\pgf@xa by1pt |
| 9915 |
\edef\pgfplots@evaluate@tikz@coord@y{\pgf@sys@tonumber\pgf@xa}% |
| 9916 |
\fi |
| 9917 |
\fi |
| 9918 |
% |
| 9919 |
\ifx\pgfplots@evaluate@tikz@coord@z\pgfutil@empty |
| 9920 |
\pgfpointadd |
| 9921 |
{\pgfplotspointminminmin}% |
| 9922 |
{\pgfplotsqpointxy{\pgfplots@evaluate@tikz@coord@x}{\pgfplots@evaluate@tikz@coord@y}}% |
| 9923 |
\else |
| 9924 |
\ifpgfplots@allow@reversal@of@rel@axis@cs |
| 9925 |
\if\pgfkeysvalueof{/pgfplots/z dir/value}r% |
| 9926 |
\pgf@xa=-\pgfplots@evaluate@tikz@coord@z pt |
| 9927 |
\advance\pgf@xa by1pt |
| 9928 |
\edef\pgfplots@evaluate@tikz@coord@z{\pgf@sys@tonumber\pgf@xa}% |
| 9929 |
\fi |
| 9930 |
\fi |
| 9931 |
\pgfplotspointzaxis |
| 9932 |
\pgf@zx=\pgf@x |
| 9933 |
\pgf@zy=\pgf@y |
| 9934 |
\pgfpointadd |
| 9935 |
{\pgfplotspointminminmin}% |
| 9936 |
{\pgfplotsqpointxyz{\pgfplots@evaluate@tikz@coord@x}{\pgfplots@evaluate@tikz@coord@y}{\pgfplots@evaluate@tikz@coord@z}}% |
| 9937 |
\fi |
| 9938 |
\pgf@process{}% |
| 9939 |
\endgroup |
| 9940 |
} |
| 9941 |
|
| 9942 |
\def\pgfplots@evalute@tikz@coord@system@interface@normalized{% |
| 9943 |
\begingroup |
| 9944 |
\let\pgfplots@evalute@tikz@coord@system@interface@for=\pgfplots@evalute@tikz@coord@system@interface@for@normalized |
| 9945 |
\pgfutil@ifnextchar[% |
| 9946 |
{\pgfplots@evalute@tikz@coord@system@interface@x}% |
| 9947 |
{\pgfplots@evalute@tikz@coord@system@interface@x[]}% |
| 9948 |
} |
| 9949 |
|
| 9950 |
% In case of (semi-) logplots, this command will |
| 9951 |
% - assign a filter which invokes \pgfmathlog@{} for each coordinate |
| 9952 |
% - replace any user-specified coordinate by its log. |
| 9953 |
% |
| 9954 |
% All subsequent commands will then work with logarithmic coordinates. |
| 9955 |
% |
| 9956 |
% PRECONDITION: |
| 9957 |
% - The user input options have been set correctly, |
| 9958 |
% - the options have been set, but are not applied |
| 9959 |
% |
| 9960 |
% POSTCONDITION: |
| 9961 |
% - any user input has been parsed |
| 9962 |
% - any user input for log-axis has been replaced by its log if |
| 9963 |
% necessary |
| 9964 |
% - coordinate filters are prepared |
| 9965 |
% |
| 9966 |
% See also: |
| 9967 |
% \pgfplots@check@and@apply@datatrafo@for |
| 9968 |
\def\pgfplots@prepare@coord@filtering@for#1{% |
| 9969 |
\pgfkeysgetvalue{/pgfplots/#1 coord trafo/.@cmd}\pgfplots@loc@TMPc |
| 9970 |
\expandafter\let\csname pgfplots@highlevel@trafo@#1\endcsname=\pgfplots@loc@TMPc |
| 9971 |
\ifx\pgfplots@loc@TMPc\pgfplots@empty@command@key |
| 9972 |
% no high-level external coord trafos. |
| 9973 |
% Simply use identity: |
| 9974 |
\expandafter\def\csname pgfplots@prepare@#1coord\endcsname##1{% |
| 9975 |
\edef\pgfmathresult{##1}% |
| 9976 |
}% |
| 9977 |
\else |
| 9978 |
% Apply external coordinate trafo to all input values: |
| 9979 |
\expandafter\edef\csname pgfplots@prepare@#1coord\endcsname##1{% |
| 9980 |
% do not expand it here - might contain unexpandable |
| 9981 |
% material which is processed by the #1 coord trafo: |
| 9982 |
% FIXME : this might produce an endless loop if ##1 = \pgfmathresult! |
| 9983 |
\noexpand\def\noexpand\pgfmathresult{##1}% |
| 9984 |
% this becomes |
| 9985 |
\expandafter\noexpand\csname pgfplots@highlevel@trafo@#1\endcsname{##1}\noexpand\pgfeov |
| 9986 |
% |
| 9987 |
% ensure that it is expanded. |
| 9988 |
\noexpand\edef\noexpand\pgfmathresult{\noexpand\pgfmathresult}% |
| 9989 |
}% |
| 9990 |
% |
| 9991 |
% The transformation is now \pgfplots@loc@TMPc |
| 9992 |
% |
| 9993 |
% any user-specified axis limits: |
| 9994 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1min\endcsname |
| 9995 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 9996 |
\else |
| 9997 |
\expandafter\pgfplots@loc@TMPc\expandafter{\pgfplots@loc@TMPa}\pgfeov% |
| 9998 |
\expandafter\global\expandafter\let\csname pgfplots@#1min\endcsname=\pgfmathresult |
| 9999 |
\fi |
| 10000 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1max\endcsname |
| 10001 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10002 |
\else |
| 10003 |
\expandafter\pgfplots@loc@TMPc\expandafter{\pgfplots@loc@TMPa}\pgfeov% |
| 10004 |
\expandafter\global\expandafter\let\csname pgfplots@#1max\endcsname=\pgfmathresult |
| 10005 |
\fi |
| 10006 |
% |
| 10007 |
% any user-specified tick limits: |
| 10008 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tickmin\endcsname |
| 10009 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10010 |
\else |
| 10011 |
\expandafter\pgfplots@loc@TMPc\expandafter{\pgfplots@loc@TMPa}\pgfeov% |
| 10012 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmin\endcsname=\pgfmathresult |
| 10013 |
\fi |
| 10014 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tickmax\endcsname |
| 10015 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10016 |
\else |
| 10017 |
\expandafter\pgfplots@loc@TMPc\expandafter{\pgfplots@loc@TMPa}\pgfeov% |
| 10018 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmax\endcsname=\pgfmathresult |
| 10019 |
\fi |
| 10020 |
% |
| 10021 |
% any user specified axis ticks: |
| 10022 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@#1tick\endcsname}% |
| 10023 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10024 |
\else |
| 10025 |
\def\pgfplots@loc@TMPb{data}% |
| 10026 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 10027 |
% #1tick=data is handled elsewhere... |
| 10028 |
\else |
| 10029 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tick\endcsname |
| 10030 |
\expandafter\pgfplots@filter@input@ticks@with@highleveltrafo\expandafter{\pgfplots@loc@TMPa}{\pgfplots@loc@TMPc}% |
| 10031 |
\expandafter\edef\csname pgfplots@#1tick\endcsname{\pgfmathresult}% |
| 10032 |
\fi |
| 10033 |
\fi |
| 10034 |
% |
| 10035 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@extra@#1tick\endcsname |
| 10036 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10037 |
\else |
| 10038 |
\expandafter\pgfplots@filter@input@ticks@with@highleveltrafo\expandafter{\pgfplots@loc@TMPa}{\pgfplots@loc@TMPc}% |
| 10039 |
\expandafter\edef\csname pgfplots@extra@#1tick\endcsname{\pgfmathresult}% |
| 10040 |
\fi |
| 10041 |
% |
| 10042 |
\pgfkeysgetvalue{/pgfplots/minor #1tick}\pgfplots@loc@TMPa |
| 10043 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10044 |
\else |
| 10045 |
\expandafter\pgfplots@filter@input@ticks@with@highleveltrafo\expandafter{\pgfplots@loc@TMPa}{\pgfplots@loc@TMPc}% |
| 10046 |
\pgfkeyslet{/pgfplots/minor #1tick}\pgfmathresult |
| 10047 |
\fi |
| 10048 |
\fi |
| 10049 |
% |
| 10050 |
\pgfkeysgetvalue{/pgfplots/#1filter}\pgfplots@loc@TMPa |
| 10051 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10052 |
\else |
| 10053 |
\expandafter\let\csname pgfplots@#1filter@backwcompat\endcsname=\pgfplots@loc@TMPa |
| 10054 |
\t@pgfplots@tokc={/pgfplots/#1filter is deprecated. Please use /pgfplots/#1 filter/.code={\def\pgfmathresult{\#1}}}% |
| 10055 |
\pgfplots@warning{\the\t@pgfplots@tokc}% |
| 10056 |
\pgfkeys{/pgfplots/#1 filter/.code={\csname pgfplots@#1filter@backwcompat\endcsname{##1}\to\pgfmathresult}}% |
| 10057 |
\fi |
| 10058 |
\csname ifpgfplots@#1islinear\endcsname |
| 10059 |
\pgfplotssetcoordmathfor{#1}{float}% |
| 10060 |
\csname pgfplots@apply@datatrafo@#1true\endcsname |
| 10061 |
\pgfplots@apply@datatrafotrue |
| 10062 |
\ifpgfplots@apply@datatrafo |
| 10063 |
% Check for any existing axis limits: |
| 10064 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1min\endcsname |
| 10065 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10066 |
\else |
| 10067 |
\pgfplotscoordmath{#1}{parse}{\pgfplots@loc@TMPa}% |
| 10068 |
\expandafter\global\expandafter\let\csname pgfplots@#1min\endcsname=\pgfmathresult |
| 10069 |
\fi |
| 10070 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1max\endcsname |
| 10071 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10072 |
\else |
| 10073 |
\pgfplotscoordmath{#1}{parse}{\pgfplots@loc@TMPa}% |
| 10074 |
\expandafter\global\expandafter\let\csname pgfplots@#1max\endcsname=\pgfmathresult |
| 10075 |
\fi |
| 10076 |
% Check for any existing tick limits: |
| 10077 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tickmin\endcsname |
| 10078 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10079 |
\else |
| 10080 |
\pgfplotscoordmath{#1}{parse}{\pgfplots@loc@TMPa}% |
| 10081 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmin\endcsname=\pgfmathresult |
| 10082 |
\fi |
| 10083 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tickmax\endcsname |
| 10084 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10085 |
\else |
| 10086 |
\pgfplotscoordmath{#1}{parse}{\pgfplots@loc@TMPa}% |
| 10087 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmax\endcsname=\pgfmathresult |
| 10088 |
\fi |
| 10089 |
\fi |
| 10090 |
\else |
| 10091 |
\pgfplotssetcoordmathfor{#1}{pgfbasic}% |
| 10092 |
% |
| 10093 |
% This here could be done using a high level coord trafo as |
| 10094 |
% well! However, I don't want to risk accidentally overwritten |
| 10095 |
% keys, so I replicate it here. |
| 10096 |
\pgfplots@if{pgfplots@disablelogfilter@#1}{\relax}{% |
| 10097 |
% Prepare the log to use for axis '#1'. |
| 10098 |
% |
| 10099 |
\pgfkeysgetvalue{/pgfplots/log basis #1}\pgfplots@loc@TMPa% |
| 10100 |
\edef\pgfplots@loc@TMPa{\pgfplots@loc@TMPa}% |
| 10101 |
\def\pgfplots@loc@TMPb{e}% |
| 10102 |
\ifx\pgfplots@loc@TMPb\pgfplots@loc@TMPa |
| 10103 |
% log basis x=e : same as empty value. |
| 10104 |
\let\pgfplots@loc@TMPa=\pgfutil@empty |
| 10105 |
\fi |
| 10106 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10107 |
% log basis x={} (initial setting:) |
| 10108 |
\else |
| 10109 |
% use a different basis. |
| 10110 |
\pgfplotscoordmath{#1}{set log basis}{\pgfplots@loc@TMPa}% |
| 10111 |
% |
| 10112 |
% generate default ticks in the 'log basis', not base 10: |
| 10113 |
\pgfplotsset{/pgfplots/log basis ticks=#1}% |
| 10114 |
% |
| 10115 |
\ifdim\pgfkeysvalueof{/pgfplots/log basis #1}pt=10pt |
| 10116 |
\else |
| 10117 |
\pgfplots@identify@log@minor@tick@posfalse |
| 10118 |
\csname pgfplots@#1minorticksfalse\endcsname |
| 10119 |
\csname pgfplots@#1minorgridsfalse\endcsname |
| 10120 |
\expandafter\def\csname pgfplots@#1minortickstrue\endcsname{\pgfplots@error{Sorry, minor ticks are not supported for this log basis.}}% |
| 10121 |
\expandafter\def\csname pgfplots@#1minorgridstrue\endcsname{\pgfplots@error{Sorry, minor grid lines are not supported for this log basis.}}% |
| 10122 |
\fi |
| 10123 |
\pgfkeyslet{/pgfplots/log basis #1/.@cmd}\pgfplots@cant@set@in@this@context |
| 10124 |
%%% |
| 10125 |
% Ok, now, I have prepared everything for the new |
| 10126 |
% log basis! |
| 10127 |
\fi |
| 10128 |
% |
| 10129 |
% any user-specified axis limits: |
| 10130 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1min\endcsname |
| 10131 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10132 |
\else |
| 10133 |
\pgfplotscoordmath{default}{parse}{\pgfplots@loc@TMPa}% |
| 10134 |
\pgfplotscoordmath{#1}{log}{\pgfmathresult}% |
| 10135 |
\pgfplotscoordmath{#1}{if is bounded}{\pgfmathresult}{% |
| 10136 |
}{% |
| 10137 |
\pgfplotswarning{illegal user argument in log axis}{#1min}{\csname pgfplots@#1min\endcsname}\pgfeov% |
| 10138 |
}% |
| 10139 |
\expandafter\global\expandafter\let\csname pgfplots@#1min\endcsname=\pgfmathresult |
| 10140 |
\fi |
| 10141 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1max\endcsname |
| 10142 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10143 |
\else |
| 10144 |
\pgfplotscoordmath{default}{parse}{\pgfplots@loc@TMPa}% |
| 10145 |
\pgfplotscoordmath{#1}{log}{\pgfmathresult}% |
| 10146 |
\pgfplotscoordmath{#1}{if is bounded}{\pgfmathresult}{% |
| 10147 |
}{% |
| 10148 |
\pgfplotswarning{illegal user argument in log axis}{#1max}{\csname pgfplots@#1max\endcsname}\pgfeov% |
| 10149 |
}% |
| 10150 |
\expandafter\global\expandafter\let\csname pgfplots@#1max\endcsname=\pgfmathresult |
| 10151 |
\fi |
| 10152 |
% |
| 10153 |
% any user-specified tick limits: |
| 10154 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tickmin\endcsname |
| 10155 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10156 |
\else |
| 10157 |
\pgfplotscoordmath{#1}{log}{\pgfplots@loc@TMPa}% |
| 10158 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmin\endcsname=\pgfmathresult |
| 10159 |
\fi |
| 10160 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tickmax\endcsname |
| 10161 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10162 |
\else |
| 10163 |
\pgfplotscoordmath{#1}{log}{\pgfplots@loc@TMPa}% |
| 10164 |
\expandafter\global\expandafter\let\csname pgfplots@#1tickmax\endcsname=\pgfmathresult |
| 10165 |
\fi |
| 10166 |
% |
| 10167 |
% any user specified axis ticks: |
| 10168 |
\edef\pgfplots@loc@TMPa{\csname pgfplots@#1tick\endcsname}% |
| 10169 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10170 |
\else |
| 10171 |
\def\pgfplots@loc@TMPb{data}% |
| 10172 |
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb |
| 10173 |
% #1tick=data is handled elsewhere... |
| 10174 |
\else |
| 10175 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@#1tick\endcsname |
| 10176 |
\expandafter\pgfplots@filter@input@ticks@with@log\expandafter{\pgfplots@loc@TMPa}{#1}% |
| 10177 |
\expandafter\edef\csname pgfplots@#1tick\endcsname{\pgfmathresult}% |
| 10178 |
\fi |
| 10179 |
\fi |
| 10180 |
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfplots@extra@#1tick\endcsname |
| 10181 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10182 |
\else |
| 10183 |
\expandafter\pgfplots@filter@input@ticks@with@log\expandafter{\pgfplots@loc@TMPa}{#1}% |
| 10184 |
\expandafter\edef\csname pgfplots@extra@#1tick\endcsname{\pgfmathresult}% |
| 10185 |
\fi |
| 10186 |
% |
| 10187 |
\pgfkeysgetvalue{/pgfplots/minor #1tick}\pgfplots@loc@TMPa |
| 10188 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10189 |
\else |
| 10190 |
\expandafter\pgfplots@filter@input@ticks@with@log\expandafter{\pgfplots@loc@TMPa}{#1}% |
| 10191 |
\pgfkeyslet{/pgfplots/minor #1tick}\pgfmathresult |
| 10192 |
\fi |
| 10193 |
% |
| 10194 |
% append logarithm to prepare coord. |
| 10195 |
% |
| 10196 |
\t@pgfplots@toka={% |
| 10197 |
\ifx\pgfmathresult\pgfutil@empty |
| 10198 |
\else |
| 10199 |
\pgfplots@if{pgfplots@disablelogfilter@#1}{% |
| 10200 |
\pgfplotscoordmath{#1}{parsenumber}{\pgfmathresult}% |
| 10201 |
% FIXME : check for unbounded arguments! |
| 10202 |
}{% |
| 10203 |
\pgfplotscoordmath{#1}{log}{\pgfmathresult}% |
| 10204 |
\pgfplotscoordmath{#1}{if is bounded}{\pgfmathresult}{}{% |
| 10205 |
\def\pgfplots@unbounded@dir{#1}% |
| 10206 |
}% |
| 10207 |
}% |
| 10208 |
\fi |
| 10209 |
}% |
| 10210 |
\pgfkeysgetvalue{/pgfplots/#1 coord trafo/.@cmd}\pgfplots@loc@TMPc |
| 10211 |
\ifx\pgfplots@loc@TMPc\pgfplots@empty@command@key |
| 10212 |
\expandafter\edef\csname pgfplots@prepare@#1coord\endcsname##1{% |
| 10213 |
\noexpand\edef\noexpand\pgfmathresult{##1}% |
| 10214 |
\the\t@pgfplots@toka |
| 10215 |
}% |
| 10216 |
\else |
| 10217 |
% This is a bit complicated... but it works: APPEND |
| 10218 |
% the log stuff to the existing prepare method. |
| 10219 |
\t@pgfplots@tokb=\expandafter\expandafter\expandafter{% |
| 10220 |
\csname pgfplots@prepare@#1coord\endcsname{##1}% |
| 10221 |
}% |
| 10222 |
\expandafter\edef\csname pgfplots@prepare@#1coord\endcsname##1{% |
| 10223 |
\the\t@pgfplots@tokb |
| 10224 |
\the\t@pgfplots@toka |
| 10225 |
}% |
| 10226 |
\fi |
| 10227 |
}% |
| 10228 |
\fi |
| 10229 |
} |
| 10230 |
|
| 10231 |
\def\pgfplots@create@axis@descriptions{% |
| 10232 |
\begingroup |
| 10233 |
% |
| 10234 |
\pgfplots@change@pgfpoints@to@descriptioncs |
| 10235 |
% |
| 10236 |
\pgfplots@create@axis@descriptions@ |
| 10237 |
\endgroup |
| 10238 |
} |
| 10239 |
|
| 10240 |
\def\pgfplots@create@axis@descriptions@{% |
| 10241 |
\begingroup |
| 10242 |
\ifpgfplots@hide@x |
| 10243 |
\else |
| 10244 |
\ifpgfplots@units@use% |
| 10245 |
\pgfplots@show@label{x}{\pgfplots@label@units{x}}% |
| 10246 |
\else% |
| 10247 |
\pgfkeysgetvalue{/pgfplots/xlabel}{\pgfplots@label@}% |
| 10248 |
\ifx\pgfplots@label@\pgfutil@empty |
| 10249 |
\else |
| 10250 |
\pgfplots@show@label{x}{\pgfplots@label@}% |
| 10251 |
\fi |
| 10252 |
\fi |
| 10253 |
\fi |
| 10254 |
\ifpgfplots@hide@y |
| 10255 |
\else |
| 10256 |
\ifpgfplots@units@use% |
| 10257 |
\pgfplots@show@label{y}{\pgfplots@label@units{y}}% |
| 10258 |
\else% |
| 10259 |
\pgfkeysgetvalue{/pgfplots/ylabel}{\pgfplots@label@}% |
| 10260 |
\ifx\pgfplots@label@\pgfutil@empty |
| 10261 |
\else |
| 10262 |
\pgfplots@show@label{y}{\pgfplots@label@}% |
| 10263 |
\fi |
| 10264 |
\fi |
| 10265 |
\fi |
| 10266 |
\ifpgfplots@threedim |
| 10267 |
\ifpgfplots@hide@z |
| 10268 |
\else |
| 10269 |
\ifpgfplots@units@use% |
| 10270 |
\pgfplots@show@label{z}{\pgfplots@label@units{z}}% |
| 10271 |
\else% |
| 10272 |
\pgfkeysgetvalue{/pgfplots/zlabel}{\pgfplots@label@}% |
| 10273 |
\ifx\pgfplots@label@\pgfutil@empty |
| 10274 |
\else |
| 10275 |
\pgfplots@show@label{z}{\pgfplots@label@}% |
| 10276 |
\fi |
| 10277 |
\fi |
| 10278 |
\fi |
| 10279 |
\fi |
| 10280 |
\endgroup |
| 10281 |
% |
| 10282 |
\pgfkeysgetvalue{/pgfplots/title}\pgfplots@loc@TMPa |
| 10283 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10284 |
\else |
| 10285 |
\expandafter\pgfplots@show@title\expandafter{\pgfplots@loc@TMPa}% |
| 10286 |
\fi |
| 10287 |
\pgfplots@createlegend |
| 10288 |
% |
| 10289 |
\pgfkeysvalueof{/pgfplots/extra description/.@cmd}\pgfeov% |
| 10290 |
% |
| 10291 |
} |
| 10292 |
|
| 10293 |
% Invokes '#1' foreach key which should be saved by a color bar. |
| 10294 |
% |
| 10295 |
% The current key name is available as '##1', the macro under which |
| 10296 |
% the key is / should be saved as '##2'. |
| 10297 |
\def\pgfplots@colorbar@foreach@saved@key#1{% |
| 10298 |
\def\pgfplots@colorbar@foreach@saved@key@body##1##2{#1}% |
| 10299 |
\pgfplotsutilforeachcommasep{% |
| 10300 |
{/pgfplots/colorbar/draw/.@cmd}\pgfplots@savedstyle@colorbar@draw,% |
| 10301 |
{/pgfplots/every colorbar/.@cmd}\pgfplots@savedstyle@colorbar,% |
| 10302 |
{/pgfplots/colorbar shift/.@cmd}\pgfplots@savedstyle@colorbarshift,% |
| 10303 |
{/pgfplots/colorbar horizontal/lowlevel/.@cmd}\pgfplots@savedstyle@colorbar@horizontal,% |
| 10304 |
{/pgfplots/colorbar vertical/lowlevel/.@cmd}\pgfplots@savedstyle@colorbar@vertical,% |
| 10305 |
{/pgfplots/every tick/.@cmd}\pgfplots@savedstyle@tick,% |
| 10306 |
{/pgfplots/every minor tick/.@cmd}\pgfplots@savedstyle@minortick,% |
| 10307 |
{/pgfplots/every major tick/.@cmd}\pgfplots@savedstyle@majortick,% |
| 10308 |
{/pgfplots/every axis grid/.@cmd}\pgfplots@savedstyle@grid,% |
| 10309 |
{/pgfplots/every minor grid/.@cmd}\pgfplots@savedstyle@minorgrid,% |
| 10310 |
{/pgfplots/every major grid/.@cmd}\pgfplots@savedstyle@majorgrid,% |
| 10311 |
{/pgfplots/every tick label/.@cmd}\pgfplots@savedstyle@ticklabel,% |
| 10312 |
{/pgfplots/every tick label/.@cmd}\pgfplots@savedstyle@ticklabel% |
| 10313 |
}% |
| 10314 |
\as\pgfplots@colorbar@foreach@saved@key@@ |
| 10315 |
{% |
| 10316 |
\expandafter\pgfplots@colorbar@foreach@saved@key@body\pgfplots@colorbar@foreach@saved@key@@ |
| 10317 |
}% |
| 10318 |
}% |
| 10319 |
\def\pgfplots@colorbar@restore@saved@keys{% |
| 10320 |
\pgfplots@colorbar@foreach@saved@key{% |
| 10321 |
\pgfkeyslet{##1}##2% |
| 10322 |
}% |
| 10323 |
}% |
| 10324 |
|
| 10325 |
% Defines '#1' to be a macro which, upon execution, draws the color |
| 10326 |
% bar for the current axis. It also handles any required style |
| 10327 |
% inheritance and option preparation issues. |
| 10328 |
% |
| 10329 |
% The important thing is: the macro is expected to be invoked after |
| 10330 |
% the current TeX group (scope). Thus, the complete state is |
| 10331 |
% represented inside of '#1' (and maybe some global variables). |
| 10332 |
\def\pgfplots@colorbar@move@outside@scope@with@globalmacro#1{% |
| 10333 |
\pgfplotspointbbdiagonal |
| 10334 |
\edef\pgfplots@loc@TMPa{\the\pgf@x}% |
| 10335 |
\edef\pgfplots@loc@TMPb{\the\pgf@y}% |
| 10336 |
\pgfkeyslet{/pgfplots/parent axis width}{\pgfplots@loc@TMPa}% |
| 10337 |
\pgfkeyslet{/pgfplots/parent axis height}{\pgfplots@loc@TMPb}% |
| 10338 |
% |
| 10339 |
\pgfkeysgetvalue{/pgfplots/colorbar to name}\pgfplots@colorbar@toname |
| 10340 |
% |
| 10341 |
\pgfnodealias{parent axis}{current axis}% |
| 10342 |
% |
| 10343 |
% FIXME : |
| 10344 |
% I would really prefer to find a different way to move these |
| 10345 |
% variables out of the current scope. But expansion leads to |
| 10346 |
% mistakes with '#' characters ... :-( |
| 10347 |
\pgfplots@colorbar@foreach@saved@key{% |
| 10348 |
\pgfkeysgetvalue{##1}\pgfplots@loc@TMPa |
| 10349 |
\global\let##2=\pgfplots@loc@TMPa |
| 10350 |
}% |
| 10351 |
% |
| 10352 |
\toks1={}% |
| 10353 |
\ifx\pgfplots@colorbar@toname\pgfutil@empty |
| 10354 |
\else |
| 10355 |
\toks1={% |
| 10356 |
\pgfplots@colorbar@get@rid@of@at@parent@axis |
| 10357 |
}% |
| 10358 |
\pgfplots@colorbar@foreach@saved@key{% |
| 10359 |
\pgfplots@command@with@args@to@string##2\pgfplots@loc@TMPa |
| 10360 |
\pgfplots@auxwrite{% |
| 10361 |
\noexpand\expandafter |
| 10362 |
\noexpand\long |
| 10363 |
\noexpand\expandafter |
| 10364 |
\noexpand\gdef |
| 10365 |
\noexpand\csname pgfplots@colorbar@\pgfplots@colorbar@toname @\noexpand\string\noexpand##2\noexpand\endcsname% |
| 10366 |
\pgfplots@loc@TMPa |
| 10367 |
}% |
| 10368 |
\edef\pgfplots@loc@TMPa{% |
| 10369 |
\the\toks1 |
| 10370 |
\noexpand\expandafter |
| 10371 |
\noexpand\let |
| 10372 |
\noexpand\expandafter |
| 10373 |
\noexpand##2% |
| 10374 |
\noexpand\csname pgfplots@colorbar@\pgfplots@colorbar@toname @\noexpand\string\noexpand##2\noexpand\endcsname% |
| 10375 |
}% |
| 10376 |
\toks1=\expandafter{\pgfplots@loc@TMPa}% |
| 10377 |
}% |
| 10378 |
\fi |
| 10379 |
% % |
| 10380 |
% we have to do a lot of work to move *some* of the current |
| 10381 |
% settings out of the current TeX group: |
| 10382 |
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@loc@TMPa |
| 10383 |
\expandafter\pgfplotscolormapserializetomacro\expandafter{\pgfplots@loc@TMPa}{\pgfplots@serializedcolormap}% |
| 10384 |
\toks0=\expandafter{\pgfplots@serializedcolormap}% |
| 10385 |
% |
| 10386 |
\pgfkeysgetvalue{/pgfplots/colorbar addplot}\pgfplots@loc@TMPa |
| 10387 |
\toks2=\expandafter{\pgfplots@loc@TMPa}% |
| 10388 |
% |
| 10389 |
\ifx\pgfplots@colorbar@src@metamin\pgfutil@empty |
| 10390 |
\global\let\pgfplots@colorbar@src@metamin=\pgfplots@axiswide@metamin |
| 10391 |
\global\let\pgfplots@colorbar@src@metamax=\pgfplots@axiswide@metamax |
| 10392 |
\fi |
| 10393 |
% |
| 10394 |
\ifx\pgfplots@colorbar@src@metamax\pgfplots@invalidrange@metamax |
| 10395 |
\pgfplotswarning{colorbar uninitialised}\pgfeov |
| 10396 |
\pgfmathfloatparsenumber{0}% |
| 10397 |
\global\let\pgfplots@colorbar@src@metamin=\pgfmathresult |
| 10398 |
\pgfmathfloatparsenumber{1}% |
| 10399 |
\global\let\pgfplots@colorbar@src@metamax=\pgfmathresult |
| 10400 |
\fi |
| 10401 |
% |
| 10402 |
% normalize format: |
| 10403 |
\pgfplotscoordmath{meta}{tostring}{\pgfplots@colorbar@src@metamin}% |
| 10404 |
\global\let\pgfplots@colorbar@src@metamin=\pgfmathresult |
| 10405 |
\pgfplotscoordmath{meta}{tostring}{\pgfplots@colorbar@src@metamax}% |
| 10406 |
\global\let\pgfplots@colorbar@src@metamax=\pgfmathresult |
| 10407 |
% |
| 10408 |
\pgfplots@assemble@ref@picture |
| 10409 |
{\pgfplots@colorbar@draw} |
| 10410 |
{\tikz[/pgfplots/every colorbar to name picture/.try]{\pgfplots@colorbar@draw}}% |
| 10411 |
\toks3=\expandafter{\pgfplotsretval}% |
| 10412 |
% |
| 10413 |
\xdef#1{% |
| 10414 |
\noexpand\begingroup |
| 10415 |
\noexpand\def\noexpand\pgfplots@colorbar@draw{% |
| 10416 |
\the\toks0 % restore colormap definition |
| 10417 |
\noexpand\def\noexpand\pgfplots@colorbar@toname{\pgfplots@colorbar@toname}% |
| 10418 |
\the\toks1 % definitions for 'colorbar to name' |
| 10419 |
% |
| 10420 |
% restore relevant styles and variables: |
| 10421 |
\noexpand\pgfplots@colorbar@restore@saved@keys |
| 10422 |
\noexpand\pgfkeyssetvalue{/pgfplots/point meta min}{\pgfplots@colorbar@src@metamin}% |
| 10423 |
\noexpand\pgfkeyssetvalue{/pgfplots/point meta max}{\pgfplots@colorbar@src@metamax}% |
| 10424 |
\noexpand\pgfkeyssetvalue{/pgfplots/colormap name}{\pgfkeysvalueof{/pgfplots/colormap name}}% |
| 10425 |
\noexpand\pgfkeyssetvalue{/pgfplots/parent axis width}{\pgfkeysvalueof{/pgfplots/parent axis width}}% |
| 10426 |
\noexpand\pgfkeyssetvalue{/pgfplots/parent axis height}{\pgfkeysvalueof{/pgfplots/parent axis height}}% |
| 10427 |
\noexpand\pgfkeyssetvalue{/pgfplots/colorbar/width}{\pgfkeysvalueof{/pgfplots/colorbar/width}}% |
| 10428 |
\noexpand\pgfkeyssetvalue{/pgfplots/colorbar addplot}{\the\toks2 }% |
| 10429 |
\noexpand\def\noexpand\pgfplots@colormap@access{\pgfplots@colormap@access}% |
| 10430 |
\noexpand\pgfkeyssetvalue{/pgfplots/colorbar pos*}{\pgfkeysvalueof{/pgfplots/colorbar pos*}}% |
| 10431 |
% just to make sure that colorbar sampled respects it: |
| 10432 |
\noexpand\pgfkeyssetvalue{/pgfplots/mark list fill}{\pgfkeysvalueof{/pgfplots/mark list fill}}% |
| 10433 |
\noexpand\pgfplots@colorbar@define@hook% |
| 10434 |
\noexpand\pgfplots@colorbar@draw@ |
| 10435 |
\ifx\pgfplots@colorbar@toname\pgfutil@empty |
| 10436 |
\noexpand\pgfnodealias{current colorbar axis}{current axis}% |
| 10437 |
\noexpand\pgfnodealias{current axis}{parent axis}% |
| 10438 |
\fi |
| 10439 |
}% |
| 10440 |
\the\toks3 |
| 10441 |
\noexpand\endgroup |
| 10442 |
}% |
| 10443 |
\ifx\pgfplots@colorbar@toname\pgfutil@empty |
| 10444 |
\else |
| 10445 |
% finalize the 'colorbar to name' feature |
| 10446 |
\toks0=\expandafter{#1}% |
| 10447 |
\pgfplots@auxwrite{% |
| 10448 |
\noexpand\expandafter |
| 10449 |
\noexpand\gdef\noexpand\csname pgfplots@colorbar@to@name@\pgfplots@colorbar@toname\endcsname{\the\toks0}}% |
| 10450 |
\xdef#1{}% NOP. |
| 10451 |
% |
| 10452 |
% make sure \ref{<colorbarname>} works: |
| 10453 |
\pgfplots@label{\pgfplots@colorbar@toname}{pgfplots@colorbar@to@name@}% |
| 10454 |
\fi |
| 10455 |
}% |
| 10456 |
|
| 10457 |
\newif\ifpgfplotscolorbarCMYKworkaround |
| 10458 |
\pgfplotscolorbarCMYKworkaroundtrue |
| 10459 |
|
| 10460 |
\def\pgfplots@colorbar@draw@reconfigure@if@needed@legacy{% |
| 10461 |
\pgfkeysgetvalue{/pgfplots/colorbar/draw/.@cmd}\pgfplots@loc@TMPa |
| 10462 |
\ifx\pgfplots@loc@TMPa\pgfplots@colorbar@draw@legacyimpl |
| 10463 |
\begingroup |
| 10464 |
\pgfkeysalso{/pgfplots/.search also=/tikz}% |
| 10465 |
% we need to activate this style because the decision |
| 10466 |
% below may depend on it (and will, for example for |
| 10467 |
% contour filled) |
| 10468 |
\pgfplotsset{every colorbar}% |
| 10469 |
\pgfplots@init@collect@firstplotastick% |
| 10470 |
% |
| 10471 |
% Ah-- the default colorbar implementation is active! We may need to substitute it by a better one. |
| 10472 |
% Check that: |
| 10473 |
\def\b@pgfplots@colorbar@fallback@to@sampled{0}% |
| 10474 |
% |
| 10475 |
\ifpgfplots@collect@firstplot@astick |
| 10476 |
% xtick={data} requires samples: |
| 10477 |
% see also call hierarchy of \pgfplots@colorbar@positions@to@samplesat |
| 10478 |
\def\b@pgfplots@colorbar@fallback@to@sampled{1}% |
| 10479 |
\fi |
| 10480 |
% |
| 10481 |
\ifpgfplotscolorbarCMYKworkaround |
| 10482 |
% the default implementation for colorbars is based on |
| 10483 |
% \pgfplotscolormaptoshadingspec. |
| 10484 |
% This, in turn, does NOT work for CMYK. |
| 10485 |
% |
| 10486 |
% This here detects that case and switches to the (visually) |
| 10487 |
% equivalent 'colorbar sampled={surf,shader=interp}' style. |
| 10488 |
\if1\pgfplotscolormaptoshadingspectorgb |
| 10489 |
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@loc@TMPb |
| 10490 |
\pgfplotscolormapgetcolorspace{\pgfplots@loc@TMPb}% |
| 10491 |
\def\pgfplots@loc@TMPa{cmyk}% |
| 10492 |
\ifx\pgfplots@loc@TMPa\pgfplotsretval |
| 10493 |
\pgfutil@ifundefined{pgfplots@colorbar@CMYK@\pgfplots@loc@TMPb}{% |
| 10494 |
\pgfplotswarning{colorbar CMYK unsupported}{\pgfplots@loc@TMPb}\pgfeov% |
| 10495 |
\expandafter\gdef\csname pgfplots@colorbar@CMYK@\pgfplots@loc@TMPb\endcsname{1}% |
| 10496 |
}{}% |
| 10497 |
\def\b@pgfplots@colorbar@fallback@to@sampled{1}% |
| 10498 |
\fi |
| 10499 |
\fi |
| 10500 |
\fi |
| 10501 |
% |
| 10502 |
\if c\pgfplots@colormap@access |
| 10503 |
% colormap access=piecewise constant |
| 10504 |
% In this case, we want a sampled colorbar. |
| 10505 |
\def\b@pgfplots@colorbar@fallback@to@sampled{1}% |
| 10506 |
% |
| 10507 |
\fi |
| 10508 |
\pgfmath@smuggleone\b@pgfplots@colorbar@fallback@to@sampled |
| 10509 |
\endgroup |
| 10510 |
% |
| 10511 |
\if 1\b@pgfplots@colorbar@fallback@to@sampled |
| 10512 |
\edef\pgfplots@loc@TMPa{% |
| 10513 |
\noexpand\pgfplotsset{% |
| 10514 |
colorbar sampled={% |
| 10515 |
surf,% |
| 10516 |
shader=interp,% |
| 10517 |
% 2x2 samples are enough since "shader=interp" |
| 10518 |
% automatically handles the correct interpolation scheme: |
| 10519 |
samples=2,% |
| 10520 |
}% |
| 10521 |
}% |
| 10522 |
}% |
| 10523 |
\pgfplots@loc@TMPa |
| 10524 |
\fi |
| 10525 |
\fi |
| 10526 |
}% |
| 10527 |
|
| 10528 |
\def\pgfplots@colorbar@draw@reconfigure@if@needed{% |
| 10529 |
\pgfplots@colorbar@draw@reconfigure@if@needed@legacy |
| 10530 |
\pgfplotsset{% |
| 10531 |
/pgfplots/every axis plot post/.append code={% |
| 10532 |
\ifpgfplots@collect@firstplot@astick |
| 10533 |
% Oh! Someone wrote 'ytick=data. We want the precise positions. |
| 10534 |
% |
| 10535 |
% Note that this check needs to be done late: it must |
| 10536 |
% be after \begin{axis} -- and since many colorbar |
| 10537 |
% styles overwrite 'samples', we even have to run it |
| 10538 |
% after cycle list options! |
| 10539 |
% |
| 10540 |
% That's why it is in 'every axis plot post': |
| 10541 |
\pgfplots@colorbar@positions@to@samplesat |
| 10542 |
\fi |
| 10543 |
}% |
| 10544 |
}% |
| 10545 |
}% |
| 10546 |
|
| 10547 |
% Defines and sets 'samples at' such that it resembles the colormap |
| 10548 |
% positions. |
| 10549 |
\def\pgfplots@colorbar@positions@to@samplesat{% |
| 10550 |
\pgfplots@colorbar@positions@to@samplesat@ |
| 10551 |
\edef\pgfplots@loc@TMPa{samples at={\pgfplotsretval}}% |
| 10552 |
\expandafter\pgfplotsset\expandafter{\pgfplots@loc@TMPa}% |
| 10553 |
} |
| 10554 |
% Sets \pgfplotsretval such that it contains an argument for 'samples at' |
| 10555 |
\def\pgfplots@colorbar@positions@to@samplesat@{% |
| 10556 |
\pgfkeysgetvalue{/pgfplots/point meta min}\pgfplots@loc@TMPa |
| 10557 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10558 |
\pgfplots@error{Please define 'point meta min' and 'point meta max' before using 'samples at colormap pos'}% |
| 10559 |
\fi |
| 10560 |
\pgfkeysgetvalue{/pgfplots/point meta max}\pgfplots@loc@TMPa |
| 10561 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 10562 |
\pgfplots@error{Please define 'point meta min' and 'point meta max' before using 'samples at colormap pos'}% |
| 10563 |
\fi |
| 10564 |
% |
| 10565 |
\edef\pgfplots@loc@TMPb{% |
| 10566 |
\noexpand\pgfplotscolormapgetpositions |
| 10567 |
[{\pgfkeysvalueof{/pgfplots/point meta min}}:{\pgfkeysvalueof{/pgfplots/point meta max}}]% |
| 10568 |
{\pgfkeysvalueof{/pgfplots/colormap name}}% |
| 10569 |
}% |
| 10570 |
\pgfplots@loc@TMPb |
| 10571 |
}% |
| 10572 |
|
| 10573 |
% A utility method which draws a standalone colorbar for visualization |
| 10574 |
% purposes. |
| 10575 |
% |
| 10576 |
% Example: |
| 10577 |
% \pgfplotscolorbardrawstandalone[colorbar horizontal,colormap access=const] |
| 10578 |
% |
| 10579 |
% \pgfplotscolorbardrawstandalone[colorbar horizontal,point meta max=1000] |
| 10580 |
% |
| 10581 |
\def\pgfplotscolorbardrawstandalone{% |
| 10582 |
\pgfutil@ifnextchar[{\pgfplotscolorbardrawstandalone@opt}{\pgfplotscolorbardrawstandalone@opt[]}% |
| 10583 |
}% |
| 10584 |
\def\pgfplotscolorbardrawstandalone@opt[#1]{% |
| 10585 |
\pgfplots@ifintikzpicture{% |
| 10586 |
\pgfplotscolorbardrawstandalone@opt@[#1]% |
| 10587 |
}{% |
| 10588 |
\begin{tikzpicture}% |
| 10589 |
\pgfplotscolorbardrawstandalone@opt@[#1]% |
| 10590 |
\end{tikzpicture}% |
| 10591 |
}% |
| 10592 |
} |
| 10593 |
\def\pgfplotscolorbardrawstandalone@opt@[#1]{% |
| 10594 |
\coordinate (parent axis) at (0,0); |
| 10595 |
\pgfplotsset{% |
| 10596 |
point meta min=0,% |
| 10597 |
point meta max=1000,% |
| 10598 |
parent axis width/.initial=6cm,% |
| 10599 |
parent axis height/.initial=6cm,% |
| 10600 |
#1,% |
| 10601 |
colorbar/standalone draw,% |
| 10602 |
}% |
| 10603 |
}% |
| 10604 |
|
| 10605 |
|
| 10606 |
\def\pgfplots@colorbar@draw@{% |
| 10607 |
\pgfplots@colorbar@draw@reconfigure@if@needed |
| 10608 |
% |
| 10609 |
% FIXME : the semicolon after ';' has a fixed catcode, namely |
| 10610 |
% the one assigned while pgfplots.code.tex has been read. |
| 10611 |
% |
| 10612 |
% The \pgfplots@checkandpreparefor@active@semicolon gets |
| 10613 |
% confused if the catcodes change... this here is a |
| 10614 |
% work-around for babel support. |
| 10615 |
\let\pgfplots@checkandpreparefor@active@semicolon\relax |
| 10616 |
% |
| 10617 |
% make sure that 'every colorbar' is checked by the key-filtering |
| 10618 |
% stuff: we want to find 'ymode=log' inside of it. |
| 10619 |
% Note that we have to change it here because only the colorbar |
| 10620 |
% should expand 'every colorbar' that early in the processing: |
| 10621 |
\pgfkeys{/pgfplots/every colorbar/.belongs to family=/pgfplots/scale}% |
| 10622 |
% |
| 10623 |
\pgfkeysvalueof{/pgfplots/colorbar/draw/.@cmd}\pgfeov |
| 10624 |
} |
| 10625 |
|
| 10626 |
\def\pgfplotsifnodeexists#1#2#3{% |
| 10627 |
\pgfutil@IfUndefined{pgf@sh@ns@#1}{#3}{#2}% |
| 10628 |
}% |
| 10629 |
|
| 10630 |
\def\pgfplots@colorbar@get@rid@of@at@parent@axis{% |
| 10631 |
\pgfkeysgetvalue{/pgfplots/at/.@cmd}\pgfplots@at@orig |
| 10632 |
\pgfkeyslet{/pgfplots/at/orig/.@cmd}\pgfplots@at@orig |
| 10633 |
% |
| 10634 |
\pgfkeysgetvalue{/pgfplots/colorbar to name/at/.@cmd}\pgfplots@colorbar@toname@at |
| 10635 |
\pgfkeyslet{/pgfplots/at/.@cmd}\pgfplots@colorbar@toname@at |
| 10636 |
% |
| 10637 |
\let\pgfplots@colorbar@get@rid@of@at@parent@axis=\relax% already applied in this scope. |
| 10638 |
}% |
| 10639 |
\pgfkeysdef{/pgfplots/colorbar to name/at}{% |
| 10640 |
% automatically search-and-replace 'parent axis' which |
| 10641 |
% is not defined for a detached colorbar: |
| 10642 |
\pgfutil@in@{parent axis}{#1}% |
| 10643 |
\ifpgfutil@in@ |
| 10644 |
\pgfplots@invoke@pgfkeyscode{/pgfplots/at/orig/.@cmd}{(0pt,0pt)}% |
| 10645 |
\else |
| 10646 |
\pgfplots@invoke@pgfkeyscode{/pgfplots/at/orig/.@cmd}{#1}% |
| 10647 |
\fi |
| 10648 |
}% |
| 10649 |
\let\pgfplots@colorbar@position@hook\relax |
| 10650 |
\def\pgfplots@colorbar@define@hook{% |
| 10651 |
\ifx\pgfplots@colorbar@toname\pgfutil@empty |
| 10652 |
\def\pgfplots@colorbar@position@hook{% |
| 10653 |
% I patch \pgfplots@at... |
| 10654 |
\let\pgfplots@at@orig=\pgfplots@at |
| 10655 |
% |
| 10656 |
% ... and I patch \pgfplotspointdescriptionxy (but only INSIDE |
| 10657 |
% of \pgfplots@at) ... |
| 10658 |
\let\pgfplotspointdescriptionxy@orig=\pgfplotspointdescriptionxy |
| 10659 |
\let\pgfplotsqpointdescriptionxy@orig=\pgfplotsqpointdescriptionxy |
| 10660 |
\def\pgfplots@colorbar@position@prepare@CS{% |
| 10661 |
% ... which needs to set up ONLY \pgfplotspoint@bb@@@, |
| 10662 |
% nothing more. |
| 10663 |
\pgfpointanchor{parent axis}{south west}% |
| 10664 |
\edef\pgfplotspoint@bb@@@{% |
| 10665 |
{\the\pgf@x}% |
| 10666 |
{\the\pgf@y}% |
| 10667 |
{\pgfkeysvalueof{/pgfplots/parent axis width}}% |
| 10668 |
{\pgfkeysvalueof{/pgfplots/parent axis height}}% |
| 10669 |
}% |
| 10670 |
}% |
| 10671 |
% |
| 10672 |
% Install replacements: |
| 10673 |
\def\pgfplots@at{% |
| 10674 |
\begingroup |
| 10675 |
\def\pgfplotspointdescriptionxy########1########2{% |
| 10676 |
\pgfplots@colorbar@position@prepare@CS |
| 10677 |
\pgfplotspointdescriptionxy@orig{########1}{########2}% |
| 10678 |
}% |
| 10679 |
\def\pgfplotsqpointdescriptionxy########1########2{% |
| 10680 |
\pgfplots@colorbar@position@prepare@CS |
| 10681 |
\pgfplotsqpointdescriptionxy@orig{########1}{########2}% |
| 10682 |
}% |
| 10683 |
\pgfplots@deprecated@anchorsfalse |
| 10684 |
\pgfplots@change@pgfpoints@to@descriptioncs |
| 10685 |
\pgf@process{\pgfplots@at@orig}% |
| 10686 |
\endgroup |
| 10687 |
}% |
| 10688 |
}% |
| 10689 |
\else |
| 10690 |
% nothing to do for colorbar to name: |
| 10691 |
\let\pgfplots@colorbar@position@hook=\relax |
| 10692 |
\fi |
| 10693 |
}% |
| 10694 |
|
| 10695 |
% Parses all options in #1 which are known in the currently active families. |
| 10696 |
% |
| 10697 |
% The result will be stored back into the TikZ-style named #1 without |
| 10698 |
% further processing. |
| 10699 |
% |
| 10700 |
% Example: |
| 10701 |
% \tikzstyle{every axis}=[xmin=0,xmax=1,line width=1pt |
| 10702 |
% \pgfplots@set@keys@from@tikz@style\tmpmacro{every axis}{/pgfplots} |
| 10703 |
% |
| 10704 |
% - sets axis options 'xmin' and 'xmax' |
| 10705 |
% - calls \tikzstyle{every axis}={line width=1pt} |
| 10706 |
% |
| 10707 |
% I assume that this method is called within local TeX groups so |
| 10708 |
% nothing will be destroyed outside. |
| 10709 |
% |
| 10710 |
% #1: A style name. |
| 10711 |
\def\pgfplots@set@keys@from@tikz@style#1{% |
| 10712 |
\let\pgfplots@rmopts=\pgfutil@empty |
| 10713 |
\pgfqkeysfiltered{/pgfplots}{/pgfplots/#1}% |
| 10714 |
\pgfplots@set@keymacro@to@style\pgfplots@rmopts{#1}% |
| 10715 |
} |
| 10716 |
|
| 10717 |
% Invokes \pgfplots@set@keys@from@tikz@style and handles the "on |
| 10718 |
% layer" key. |
| 10719 |
% |
| 10720 |
% More precisely, it stores any "on layer" value found in style "#1" |
| 10721 |
% in |
| 10722 |
% /pgfplots/layers for styles/#1. |
| 10723 |
% |
| 10724 |
% If there is no such value, it will store the empty string (main |
| 10725 |
% layer) |
| 10726 |
\def\pgfplots@set@keys@from@tikz@style@and@handle@layer#1{% |
| 10727 |
\pgfkeyslet{/pgfplots/on layer}\pgfutil@empty |
| 10728 |
\pgfplots@set@keys@from@tikz@style{#1}% |
| 10729 |
\pgfkeysgetvalue{/pgfplots/on layer}\pgfplots@loc@TMPa |
| 10730 |
\pgfkeyslet{/pgfplots/layers for styles/#1}\pgfplots@loc@TMPa |
| 10731 |
}% |
| 10732 |
|
| 10733 |
% The same as \pgfplots@set@keys@from@tikz@style but this one appends |
| 10734 |
% unmatched options to style #2. |
| 10735 |
% |
| 10736 |
% #1: A style name. |
| 10737 |
% #2: A style name which will be filled with unprocessed options. |
| 10738 |
\def\pgfplots@set@keys@from@tikz@style@append@to#1#2{% |
| 10739 |
\let\pgfplots@rmopts=\pgfutil@empty |
| 10740 |
\pgfqkeysfiltered{/pgfplots}{/pgfplots/#1}% |
| 10741 |
\pgfplots@append@keymacro@to@style\pgfplots@rmopts{#2}% |
| 10742 |
} |
| 10743 |
|
| 10744 |
% #1: A sequence of options. |
| 10745 |
% #2: A style name which will be filled with unprocessed options. |
| 10746 |
\def\pgfplots@set@keys@and@append@remaining@to@style#1#2{% |
| 10747 |
\let\pgfplots@rmopts=\pgfutil@empty |
| 10748 |
\pgfqkeysfiltered{/pgfplots}{#1}% |
| 10749 |
\pgfplots@append@keymacro@to@style\pgfplots@rmopts{#2}% |
| 10750 |
}% |
| 10751 |
|
| 10752 |
% #1: input macro |
| 10753 |
\def\pgfplots@setkeys@from@macro#1{% |
| 10754 |
\let\pgfplots@rmopts=\pgfutil@empty |
| 10755 |
\def\pgfplots@loc@TMPa{\pgfqkeysfiltered{/pgfplots}}% |
| 10756 |
\expandafter\pgfplots@loc@TMPa\expandafter{#1}% |
| 10757 |
} |
| 10758 |
|
| 10759 |
% #1: macro |
| 10760 |
% #2: style name |
| 10761 |
\long\def\pgfplots@append@keymacro@to@style#1#2{% |
| 10762 |
\ifx#1\pgfutil@empty |
| 10763 |
\else |
| 10764 |
\t@pgfplots@toka={#2/.append style=}% |
| 10765 |
\t@pgfplots@tokb=\expandafter{#1}% |
| 10766 |
\edef\pgfplots@setkeys@TMP{\the\t@pgfplots@toka{\the\t@pgfplots@tokb}}% |
| 10767 |
\expandafter\pgfplotsset\expandafter{\pgfplots@setkeys@TMP}% |
| 10768 |
\fi |
| 10769 |
%\pgfplots@message{tikzstyle{#2}+=[#1]}% |
| 10770 |
} |
| 10771 |
|
| 10772 |
% #1: macro |
| 10773 |
% #2: style name |
| 10774 |
\long\def\pgfplots@set@keymacro@to@style#1#2{% |
| 10775 |
\ifx#1\pgfutil@empty |
| 10776 |
\pgfplotsset{#2/.code={{}}}% |
| 10777 |
\else |
| 10778 |
\t@pgfplots@toka={#2/.style=}% |
| 10779 |
\t@pgfplots@tokb=\expandafter{#1}% |
| 10780 |
\edef\pgfplots@setkeys@TMP{\the\t@pgfplots@toka{\the\t@pgfplots@tokb}}% |
| 10781 |
\expandafter\pgfplotsset\expandafter{\pgfplots@setkeys@TMP}% |
| 10782 |
\fi |
| 10783 |
%\pgfplots@message{tikzstyle{#2}=[#1]}% |
| 10784 |
} |
| 10785 |
|
| 10786 |
% backwards compatibility: |
| 10787 |
\let\prettyprintnumber=\pgfmathprintnumber% |
| 10788 |
|
| 10789 |
|
| 10790 |
\def\pgfplots@set@options@sanitizemode{% |
| 10791 |
\pgfkeyslet{/pgfplots/xmode/.@cmd}\pgfplots@cant@set@in@this@context@ |
| 10792 |
\pgfkeyslet{/pgfplots/ymode/.@cmd}\pgfplots@cant@set@in@this@context@ |
| 10793 |
\pgfkeyslet{/pgfplots/zmode/.@cmd}\pgfplots@cant@set@in@this@context@ |
| 10794 |
} |
| 10795 |
\def\pgfplots@set@options@sanitize{% |
| 10796 |
\pgfkeyslet{/pgfplots/xmin/.@cmd}\pgfplots@cant@set@in@this@context |
| 10797 |
\pgfkeyslet{/pgfplots/ymin/.@cmd}\pgfplots@cant@set@in@this@context |
| 10798 |
\pgfkeyslet{/pgfplots/zmin/.@cmd}\pgfplots@cant@set@in@this@context |
| 10799 |
\pgfkeyslet{/pgfplots/xmax/.@cmd}\pgfplots@cant@set@in@this@context |
| 10800 |
\pgfkeyslet{/pgfplots/ymax/.@cmd}\pgfplots@cant@set@in@this@context |
| 10801 |
\pgfkeyslet{/pgfplots/zmax/.@cmd}\pgfplots@cant@set@in@this@context |
| 10802 |
}% |
| 10803 |
|
| 10804 |
% This here is the main key filter for pgfplots. |
| 10805 |
% |
| 10806 |
% It sets keys if |
| 10807 |
% ( they have an active key family) |
| 10808 |
% OR |
| 10809 |
% ( they have /pgfplots/ key prefix ) |
| 10810 |
% OR |
| 10811 |
% ( they are a command key which contains \tikz@plot@handler ). |
| 10812 |
% |
| 10813 |
% In all other cases, the key filter will postpone the key. |
| 10814 |
% |
| 10815 |
% Note that \tikz@plot@handler should be defined before the survey |
| 10816 |
% phase starts. |
| 10817 |
\pgfkeysdef{/pgfplots/@@key filter}{% |
| 10818 |
\if\pgfkeyscasenumber0% |
| 10819 |
\pgfkeysfiltercontinuefalse |
| 10820 |
\else |
| 10821 |
\if\pgfkeyscasenumber3% |
| 10822 |
\pgfkeysgetfamily\pgfkeyscurrentpath\pgfkeyspred@TMP |
| 10823 |
\else |
| 10824 |
\pgfkeysgetfamily\pgfkeyscurrentkey\pgfkeyspred@TMP |
| 10825 |
\fi |
| 10826 |
\ifpgfkeyssuccess |
| 10827 |
% it has a family. Check it! |
| 10828 |
\pgfkeysisfamilyactive{\pgfkeyspred@TMP}% |
| 10829 |
\else% Ok, it does not belong to any family. |
| 10830 |
% Check if it has /pgfplots/ prefix: |
| 10831 |
\expandafter\pgfplots@key@filter@isdescendantof\pgfkeyscurrentkey/pgfplots/\pgf@@eov |
| 10832 |
\fi |
| 10833 |
\fi |
| 10834 |
} |
| 10835 |
\def\pgfplots@key@filter@isdescendantof#1/pgfplots/#2\pgf@@eov{% |
| 10836 |
\def\pgfkeyspred@TMP{#1}% |
| 10837 |
\ifx\pgfkeyspred@TMP\pgfkeys@empty |
| 10838 |
% Ah -- it *has* /pgfplots/ prefix. Use it! |
| 10839 |
\pgfkeysfiltercontinuetrue |
| 10840 |
\else |
| 10841 |
% Hm. Probably a /tikz/ key, but who knows. |
| 10842 |
\if1\pgfkeyscasenumber |
| 10843 |
% It is a command key. |
| 10844 |
% Check if the *body* of the command key contains |
| 10845 |
% \tikz@plot@handler. |
| 10846 |
\pgfkeysgetvalue{\pgfkeyscurrentkey/.@cmd}\pgfkeyspred@TMP% |
| 10847 |
\expandafter\pgfplots@key@filter@isplothandler\pgfkeyspred@TMP 123456789\pgfeov\tikz@plot@handler\pgfplots@EOI |
| 10848 |
\else |
| 10849 |
% Ok, it's no command key. Skip it directly. |
| 10850 |
\pgfkeysfiltercontinuefalse |
| 10851 |
\fi |
| 10852 |
\fi |
| 10853 |
}% |
| 10854 |
\def\pgfplots@key@filter@isplothandler#1\tikz@plot@handler#2\pgfplots@EOI{% |
| 10855 |
\def\pgfkeyspred@TMP{#2}% |
| 10856 |
\ifx\pgfkeyspred@TMP\pgfkeys@empty |
| 10857 |
% I didn't find '\tikz@plot@handler' in the key's body. Ok. |
| 10858 |
% key won't be processed. |
| 10859 |
\pgfkeysfiltercontinuefalse |
| 10860 |
\else |
| 10861 |
% Aaah -- it is something like /tikz/ybar! process it. |
| 10862 |
\pgfkeysfiltercontinuetrue |
| 10863 |
\fi |
| 10864 |
}% |
| 10865 |
|
| 10866 |
\def\pgfplots@set@options#1{% |
| 10867 |
\pgfplots@check@global@colorspace@overrides |
| 10868 |
\pgfplots@bb@isactivetrue |
| 10869 |
\pgfplots@curplot@threedimfalse |
| 10870 |
\global\pgfplots@threedimfalse |
| 10871 |
\pgfutil@ifundefined{tikz@lastx}{% |
| 10872 |
% no warning. Its not that important anyway, I think. |
| 10873 |
\def\pgfplots@at{\pgfpointorigin}% |
| 10874 |
}{% |
| 10875 |
\edef\pgfplots@at{\noexpand\pgfqpoint{\the\tikz@lastx}{\the\tikz@lasty}}% |
| 10876 |
}% |
| 10877 |
% |
| 10878 |
% Temporarily assign families to 'name' and 'alias' options. |
| 10879 |
% This allows to get the names - they should not be appended to |
| 10880 |
% 'every axis'! |
| 10881 |
\pgfkeyssetfamily{/tikz/name}{/pgfplots/naming commands}% |
| 10882 |
\pgfkeyssetfamily{/tikz/alias}{/pgfplots/naming commands}% |
| 10883 |
\pgfkeyssetfamily{/tikz/overlay}{/pgfplots/shared with tikz}% |
| 10884 |
\pgfkeyssetfamily{/tikz/variable}{/pgfplots}% |
| 10885 |
% |
| 10886 |
\pgfkeysdef{/pgfplots/declare function}{\pgfkeysalso{/pgf/declare function={##1}}}% |
| 10887 |
\pgfkeyssetfamily{/pgf/declare function}{/pgfplots}% |
| 10888 |
% |
| 10889 |
% ... we need to set these options during the survey phase |
| 10890 |
% (because it might be interesting for enlarge limits to depend |
| 10891 |
% upon their value): |
| 10892 |
\pgfkeysdef{/pgfplots/bar width}{\pgfkeysalso{/pgf/bar width={##1}}}% |
| 10893 |
\pgfkeysdef{/pgfplots/bar shift}{\pgfkeysalso{/pgf/bar shift={##1}}}% |
| 10894 |
\pgfkeyssetfamily{/pgf/bar width}{/pgfplots}% |
| 10895 |
\pgfkeyssetfamily{/pgf/bar shift}{/pgfplots}% |
| 10896 |
% |
| 10897 |
\pgfkeyssetfamily{/pgf/trig format}{/pgfplots}% |
| 10898 |
\pgfkeyssetfamily{/pgf/trig format/deg}{/pgfplots}% |
| 10899 |
\pgfkeyssetfamily{/pgf/trig format/rad}{/pgfplots}% |
| 10900 |
% |
| 10901 |
\pgfkeysinstallkeyfilterhandler{/pgf/key filter handlers/append filtered to}{\pgfplots@rmopts}% |
| 10902 |
% |
| 10903 |
\let\tikz@alias=\pgfutil@empty |
| 10904 |
\let\tikz@fig@name=\pgfutil@empty |
| 10905 |
% |
| 10906 |
% Step 1: acquire ONLY 'xmode' and 'ymode' (necessary to decide |
| 10907 |
% which axis style shall be loaded): |
| 10908 |
\let\pgfplots@rmopts=\pgfutil@empty |
| 10909 |
\pgfkeysinstallkeyfilter{/pgf/key filters/active families and known}{}% |
| 10910 |
% |
| 10911 |
\pgfqkeysactivatesinglefamilyandfilteroptions{/pgfplots/scale}% |
| 10912 |
{/pgfplots} |
| 10913 |
{#1,/pgfplots/every axis post}% |
| 10914 |
\let\pgfplots@remaining@input=\pgfplots@rmopts |
| 10915 |
% |
| 10916 |
\pgfplotssetaxistype{\pgfkeysvalueof{/pgfplots/axis type}}% |
| 10917 |
% |
| 10918 |
% Step 2: parse any pgfplots options out of styles. |
| 10919 |
\pgfkeysactivatefamily{/pgfplots/style commands}% |
| 10920 |
%\pgfkeysinstallkeyfilter{/pgf/key filters/active families or descendants of}{/pgfplots} |
| 10921 |
\pgfkeysinstallkeyfilter{/pgfplots/@@key filter}{}% |
| 10922 |
% |
| 10923 |
\pgfkeysactivatefamilies |
| 10924 |
{/pgfplots,/pgfplots/naming commands,/pgfplots/tick,/pgfplots/legend,/pgfplots/scale}%/pgfplots/descriptions,} |
| 10925 |
{\pgfplots@deactivefamiliescmd}% |
| 10926 |
\pgfplots@set@keys@from@tikz@style{every axis}% |
| 10927 |
\pgfkeysdeactivatefamily{/pgfplots/scale}% |
| 10928 |
% |
| 10929 |
\pgfplots@set@keys@from@tikz@style@append@to{every \pgfkeysvalueof{/pgfplots/axis type} axis}{every axis}% |
| 10930 |
% |
| 10931 |
\ifpgfplots@xislinear |
| 10932 |
\ifpgfplots@yislinear |
| 10933 |
\pgfplots@set@keys@from@tikz@style@append@to{every linear axis}{every axis}% |
| 10934 |
\else |
| 10935 |
\pgfplots@set@keys@from@tikz@style@append@to{every semilogy axis}{every axis}% |
| 10936 |
\fi |
| 10937 |
\else |
| 10938 |
\ifpgfplots@yislinear |
| 10939 |
\pgfplots@set@keys@from@tikz@style@append@to{every semilogx axis}{every axis}% |
| 10940 |
\else |
| 10941 |
\pgfplots@set@keys@from@tikz@style@append@to{every loglog axis}{every axis}% |
| 10942 |
\fi |
| 10943 |
\fi |
| 10944 |
\pgfplots@deactivefamiliescmd |
| 10945 |
\pgfplots@set@options@sanitizemode |
| 10946 |
% |
| 10947 |
% Acquire style commands and naming commands from direct input |
| 10948 |
% options '#1' BEFORE the 'every' styles are processed: |
| 10949 |
\pgfkeysactivatefamily{/pgfplots/naming commands}% |
| 10950 |
\pgfkeysactivatefamily{/pgfplots/shared with tikz}% |
| 10951 |
\pgfplots@setkeys@from@macro\pgfplots@remaining@input% |
| 10952 |
\let\pgfplots@remaining@input=\pgfplots@rmopts |
| 10953 |
\pgfkeysdeactivatefamily{/pgfplots/naming commands}% |
| 10954 |
\pgfkeysdeactivatefamily{/pgfplots/shared with tikz}% |
| 10955 |
% |
| 10956 |
\pgfplots@set@options@of@layered@graphics |
| 10957 |
% |
| 10958 |
% Now, any 'name' and 'alias' options have been processed. |
| 10959 |
% |
| 10960 |
% Remember their current meaning and reset the tikz options! |
| 10961 |
\let\pgfplots@fig@name=\tikz@fig@name |
| 10962 |
\let\pgfplots@fig@alias=\tikz@alias |
| 10963 |
\let\tikz@alias=\pgfutil@empty |
| 10964 |
\let\tikz@fig@name=\pgfutil@empty |
| 10965 |
% |
| 10966 |
% And protocol all named sub-nodes! Their positions need to be |
| 10967 |
% updated later. |
| 10968 |
\global\let\pgfplots@named@child@node@list=\pgfutil@empty |
| 10969 |
\pgfutil@ifundefined{pgfplots@old@name@impl}{% |
| 10970 |
\pgfkeysgetvalue{/tikz/name/.@cmd}\pgfplots@old@name@impl |
| 10971 |
\pgfkeysgetvalue{/tikz/alias/.@cmd}\pgfplots@old@alias@impl |
| 10972 |
}{}% |
| 10973 |
\pgfkeysdef{/tikz/name}{% |
| 10974 |
\pgfplots@add@named@child@node{##1}% |
| 10975 |
\pgfplots@old@name@impl##1\pgfeov |
| 10976 |
}% |
| 10977 |
\pgfkeysdef{/tikz/alias}{% |
| 10978 |
\pgfplots@add@named@child@node{##1}% |
| 10979 |
\pgfplots@old@alias@impl##1\pgfeov |
| 10980 |
}% |
| 10981 |
% |
| 10982 |
% Now, continue to process the 'every' styles. Please note that |
| 10983 |
% options like 'legend style={}' have already been processed; |
| 10984 |
% their values are already inside of the associated 'every' |
| 10985 |
% styles. |
| 10986 |
% |
| 10987 |
% What I am doing here is: set every pgfplots-option directly, and |
| 10988 |
% discard it from the every-style. Any non-pgfplots-option will |
| 10989 |
% be set in its context. |
| 10990 |
% |
| 10991 |
\pgfkeysactivatefamily{/pgfplots/legend}% |
| 10992 |
% this special treatmeant allows the (otherwise unsupported) construction |
| 10993 |
% 'legend style={legend pos=outer north east}': |
| 10994 |
\pgfkeysdef{/pgfplots/every axis legend/.append style}{\pgfkeysalso{##1}}% |
| 10995 |
% |
| 10996 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every axis legend}% |
| 10997 |
% |
| 10998 |
% restore: |
| 10999 |
\pgfkeysdef{/pgfplots/every axis legend/.append style}{% |
| 11000 |
\pgfkeysalso{/pgfplots/every axis legend/.add code={}{\pgfkeysalso{##1}}}% |
| 11001 |
}% |
| 11002 |
\pgfkeysdeactivatefamily{/pgfplots/legend}% |
| 11003 |
% |
| 11004 |
% FIXME : VERIFY! |
| 11005 |
% If I am not mistaken, these statements are only useful to allow |
| 11006 |
% 'xlabel style={xlabel=$x$}' --- which is not intuitive anyway. |
| 11007 |
%\pgfkeysactivatefamily{/pgfplots/descriptions}% |
| 11008 |
% \pgfplots@set@keys@from@tikz@style{every axis label}% |
| 11009 |
% \pgfplots@set@keys@from@tikz@style{every axis x label}% |
| 11010 |
% \pgfplots@set@keys@from@tikz@style{every axis y label}% |
| 11011 |
% \pgfplots@set@keys@from@tikz@style{every axis title}% |
| 11012 |
%\pgfkeysdeactivatefamily{/pgfplots/descriptions}% |
| 11013 |
% |
| 11014 |
\pgfkeysactivatefamily{/pgfplots/tick}% |
| 11015 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every tick}% |
| 11016 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every minor tick}% |
| 11017 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every major tick}% |
| 11018 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every axis grid}% |
| 11019 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every minor grid}% |
| 11020 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every major grid}% |
| 11021 |
\pgfkeysdeactivatefamily{/pgfplots/tick}% |
| 11022 |
% |
| 11023 |
%-------------------------------------------------- |
| 11024 |
% \pgfkeysactivatefamily{/pgfplots}% |
| 11025 |
% \pgfplots@set@keys@from@tikz@style{every axis plot}% |
| 11026 |
% \pgfkeysdeactivatefamily{/pgfplots}% |
| 11027 |
%-------------------------------------------------- |
| 11028 |
% |
| 11029 |
% Attention: do NOT set the description styles here! Setting them |
| 11030 |
% must be postponed until |every 3d description| has been set (to |
| 11031 |
% ensure that \axis[<options>] take higher precedence). |
| 11032 |
%\pgfkeysactivatefamily{/pgfplots/descriptions}% |
| 11033 |
\pgfkeysactivatefamily{/pgfplots/tick}% |
| 11034 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every x tick label}% |
| 11035 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every y tick label}% |
| 11036 |
\pgfplots@set@keys@from@tikz@style@and@handle@layer{every tick label}% |
| 11037 |
\pgfkeysdeactivatefamily{/pgfplots/tick}% |
| 11038 |
%\pgfkeysdeactivatefamily{/pgfplots/descriptions}% |
| 11039 |
% |
| 11040 |
% Step 3: Set all remaining options of '#1'. They should have |
| 11041 |
% highest precedence. |
| 11042 |
\pgfkeysactivatefamilies |
| 11043 |
{/pgfplots,/pgfplots/tick,/pgfplots/legend}%,/pgfplots/descriptions}% |
| 11044 |
{\pgfplots@deactivefamiliescmd}% |
| 11045 |
\expandafter |
| 11046 |
\pgfplots@set@keys@and@append@remaining@to@style |
| 11047 |
\expandafter |
| 11048 |
{\pgfplots@remaining@input}% |
| 11049 |
{every axis}% |
| 11050 |
\pgfplots@deactivefamiliescmd |
| 11051 |
%\pgfkeysgetvalue{/pgfplots/every axis/.@cmd}\pgfplots@loc@TMPa |
| 11052 |
%\message{every axis is now '\meaning\pgfplots@loc@TMPa'}% |
| 11053 |
% |
| 11054 |
\pgfkeysdeactivatefamily{/pgfplots/style commands}% |
| 11055 |
\global\pgfkeysgetvalue{/pgfplots/xmin}{\pgfplots@xmin}% |
| 11056 |
\global\pgfkeysgetvalue{/pgfplots/xmax}{\pgfplots@xmax}% |
| 11057 |
\global\pgfkeysgetvalue{/pgfplots/ymin}{\pgfplots@ymin}% |
| 11058 |
\global\pgfkeysgetvalue{/pgfplots/ymax}{\pgfplots@ymax}% |
| 11059 |
\global\pgfkeysgetvalue{/pgfplots/zmin}{\pgfplots@zmin}% |
| 11060 |
\global\pgfkeysgetvalue{/pgfplots/zmax}{\pgfplots@zmax}% |
| 11061 |
\pgfkeysgetvalue{/pgfplots/xtickmin}{\pgfplots@xtickmin}% |
| 11062 |
\pgfkeysgetvalue{/pgfplots/xtickmax}{\pgfplots@xtickmax}% |
| 11063 |
\pgfkeysgetvalue{/pgfplots/ytickmin}{\pgfplots@ytickmin}% |
| 11064 |
\pgfkeysgetvalue{/pgfplots/ytickmax}{\pgfplots@ytickmax}% |
| 11065 |
\pgfkeysgetvalue{/pgfplots/ztickmin}{\pgfplots@ztickmin}% |
| 11066 |
\pgfkeysgetvalue{/pgfplots/ztickmax}{\pgfplots@ztickmax}% |
| 11067 |
% |
| 11068 |
\pgfplots@init@collect@firstplotastick |
| 11069 |
\global\let\pgfplots@firstplot@coords@x=\pgfutil@empty |
| 11070 |
\global\let\pgfplots@firstplot@coords@y=\pgfutil@empty |
| 11071 |
\global\let\pgfplots@firstplot@coords@z=\pgfutil@empty |
| 11072 |
\pgfkeysalso{/pgfplots/.search also=/tikz}% |
| 11073 |
% |
| 11074 |
\pgfkeysifdefined{/tikz/on layer}{}{% |
| 11075 |
% make sure assignments 'on layer' in the /tikz/ prefix |
| 11076 |
% doesn't hurt. |
| 11077 |
% this may happen, for example with |
| 11078 |
% 'x grid style={on layer=...}' |
| 11079 |
% because 'x grid style' is not processed by the key filtering |
| 11080 |
% above (it is extracted later). |
| 11081 |
\pgfkeyslet{/tikz/on layer}\pgfutil@empty% |
| 11082 |
}% |
| 11083 |
% |
| 11084 |
\pgfplots@set@patched@options |
| 11085 |
% |
| 11086 |
\pgfplots@set@options@sanitize |
| 11087 |
\pgfplots@notify@options@are@set |
| 11088 |
} |
| 11089 |
|
| 11090 |
\def\pgfplots@init@collect@firstplotastick{% |
| 11091 |
\def\pgfplots@loc@TMPa{data}% |
| 11092 |
\pgfplots@collect@firstplot@astickfalse |
| 11093 |
\ifx\pgfplots@xtick\pgfplots@loc@TMPa |
| 11094 |
\pgfplots@collect@firstplot@asticktrue |
| 11095 |
\fi |
| 11096 |
\ifx\pgfplots@ytick\pgfplots@loc@TMPa |
| 11097 |
\pgfplots@collect@firstplot@asticktrue |
| 11098 |
\fi |
| 11099 |
\ifx\pgfplots@ztick\pgfplots@loc@TMPa |
| 11100 |
\pgfplots@collect@firstplot@asticktrue |
| 11101 |
\fi |
| 11102 |
\pgfkeysgetvalue{/pgfplots/minor xtick}\pgfplots@loc@TMPb |
| 11103 |
\ifx\pgfplots@loc@TMPb\pgfplots@loc@TMPa |
| 11104 |
\pgfplots@collect@firstplot@asticktrue |
| 11105 |
\fi |
| 11106 |
\pgfkeysgetvalue{/pgfplots/minor ytick}\pgfplots@loc@TMPb |
| 11107 |
\ifx\pgfplots@loc@TMPb\pgfplots@loc@TMPa |
| 11108 |
\pgfplots@collect@firstplot@asticktrue |
| 11109 |
\fi |
| 11110 |
\pgfkeysgetvalue{/pgfplots/minor ztick}\pgfplots@loc@TMPb |
| 11111 |
\ifx\pgfplots@loc@TMPb\pgfplots@loc@TMPa |
| 11112 |
\pgfplots@collect@firstplot@asticktrue |
| 11113 |
\fi |
| 11114 |
}% |
| 11115 |
|
| 11116 |
\def\pgfplots@set@options@of@layered@graphics{% |
| 11117 |
\ifpgfplots@axis@on@top |
| 11118 |
\ifpgfplots@layered@graphics |
| 11119 |
\pgfplots@log3{the combination of 'axis on top' and 'activate layers' implies 'set layers=axis on top'. Deactivate 'axis on top' if you want other layers.}% |
| 11120 |
\pgfplotsset{set layers=axis on top}% |
| 11121 |
\fi |
| 11122 |
\fi |
| 11123 |
% retrieve layer configurations (the one set with 'set layers*'). |
| 11124 |
\pgfkeysgetvalue{/pgfplots/@set layers arg}\pgfplots@loc@TMPa |
| 11125 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 11126 |
\else |
| 11127 |
% ah, yes: then set its style: |
| 11128 |
\pgfqkeys{/pgfplots/layers}{\pgfplots@loc@TMPa}% note that this here should not need key filtering; it adjusts only styles (hopefully ;) ) |
| 11129 |
\fi |
| 11130 |
}% |
| 11131 |
|
| 11132 |
\def\pgfplots@set@patched@options{% |
| 11133 |
\pgfkeysdef{/pgfplots/@@@tmp}{% |
| 11134 |
\let\tikz@intersect@def=\gdef |
| 11135 |
\pgfkeys{/tikz/name path={##1}}% |
| 11136 |
}% |
| 11137 |
\pgfkeysgetvalue{/pgfplots/@@@tmp/.@cmd}\pgfplots@name@path@global@cmd@pgf@two@ten |
| 11138 |
% |
| 11139 |
\pgfkeysifdefined{/tikz/name path/.@cmd}{% |
| 11140 |
% 'name path' does not work inside of a pgfplots axis because |
| 11141 |
% pgfplots unnecessarily introduces extra \scopes around each path :-/ |
| 11142 |
% it needs to be 'name path global'. |
| 11143 |
% PATCH IT: |
| 11144 |
\pgfkeysgetvalue{/tikz/name path global/.@cmd}\pgfplots@loc@TMPa% |
| 11145 |
\ifx\pgfplots@loc@TMPa\pgfplots@name@path@global@cmd@pgf@two@ten |
| 11146 |
% ah - we operate against PGF 2.10 . In this case, we must |
| 11147 |
% not indirect from 'name path' to 'name path global' - would lead to |
| 11148 |
% an indefinite loop. |
| 11149 |
% Patch absolutely: |
| 11150 |
\pgfkeysgetvalue{/tikz/name path/.@cmd}\pgfplots@name@path@cmd@pgf@two@ten% |
| 11151 |
\pgfkeysdef{/tikz/name path}{% |
| 11152 |
% see the value of |
| 11153 |
% \pgfplots@name@path@global@cmd@pgf@two@ten to verify |
| 11154 |
% this patch: |
| 11155 |
\let\tikz@intersect@def=\gdef |
| 11156 |
\pgfplots@name@path@cmd@pgf@two@ten{##1}\pgfeov |
| 11157 |
}% |
| 11158 |
\else |
| 11159 |
\pgfkeysdef{/tikz/name path}{\pgfkeysalso{/tikz/name path global={##1}}}% |
| 11160 |
\fi |
| 11161 |
}{% |
| 11162 |
\pgfkeysdef{/tikz/name path}{\pgfplots@error{'name path' is undefined. Please load \string\usetikzlibrary{intersections} or \string\usepgfplotslibrary{fillbetween}}}% |
| 11163 |
}% |
| 11164 |
} |
| 11165 |
|
| 11166 |
% EMPTY. This will be overridden by tex-engine specific code. |
| 11167 |
% At the time of this writing, the latex driver will check for xcolor |
| 11168 |
% configuration options and will override |
| 11169 |
% mesh/colorspace explicit color output |
| 11170 |
% and |
| 11171 |
% colormap default colorspace |
| 11172 |
% if needed. |
| 11173 |
\def\pgfplots@check@global@colorspace@overrides{% |
| 11174 |
}% |
| 11175 |
|
| 11176 |
\def\pgfplots@add@named@child@node#1{% |
| 11177 |
\xdef\pgfplots@named@child@node@list{\pgfplots@named@child@node@list,{#1}}% |
| 11178 |
}% |
| 11179 |
|
| 11180 |
\def\pgfplots@notify@options@are@set{}% |
| 11181 |
|
| 11182 |
\def\pgfplots@install@abbrev@commands{ |
| 11183 |
\let\pgfplots@orig@path=\path |
| 11184 |
\let\pgfplots@orig@plot=\plot |
| 11185 |
% |
| 11186 |
\let\axispath=\pgfplots@path |
| 11187 |
\let\pgfplotsinterruptdatabb=\pgfplots@interruptdatabb |
| 11188 |
\let\endpgfplotsinterruptdatabb=\endpgfplots@interruptdatabb |
| 11189 |
% |
| 11190 |
\let\addplot=\pgfplots@addplot |
| 11191 |
\let\plot=\addplot |
| 11192 |
% |
| 11193 |
% |
| 11194 |
\def\logten{2.3025851}% |
| 11195 |
\def\reciproclogten{0.434294}% |
| 11196 |
% |
| 11197 |
\def\logi##1{% |
| 11198 |
\ifcase##1 |
| 11199 |
\or0 |
| 11200 |
\or0.693147 |
| 11201 |
\or1.098612 |
| 11202 |
\or1.386294 |
| 11203 |
\or1.60943791 |
| 11204 |
\or1.7917594 |
| 11205 |
\or1.94591014 |
| 11206 |
\or2.07944154 |
| 11207 |
\or2.197224 |
| 11208 |
\fi |
| 11209 |
}% |
| 11210 |
\def\axisdefaultticklabel{\pgfplots@ticklabel@typeset@arg{\pgfmathprintnumber{\tick}}}% |
| 11211 |
\def\axisdefaultticklabellog{% |
| 11212 |
\pgfplots@ticklabel@typeset@arg{% |
| 11213 |
\pgfkeysgetvalue{/pgfplots/log number format code/.@cmd}\pgfplots@log@label@style |
| 11214 |
\expandafter\pgfplots@log@label@style\tick\pgfeov |
| 11215 |
}% |
| 11216 |
}% |
| 11217 |
% |
| 11218 |
\let\legend=\pgfplots@command@legend |
| 11219 |
\let\addlegendimage=\pgfplots@addlegendimage |
| 11220 |
\let\addlegendentry=\pgfplots@addlegendentry |
| 11221 |
\let\addlegendentryexpanded=\pgfplots@addlegendentryexpanded |
| 11222 |
} |
| 11223 |
|
| 11224 |
\let\pgfplots@late@options=\pgfutil@empty |
| 11225 |
\def\pgfplotssetlateoptions#1{% |
| 11226 |
\pgfplotsset{#1}% |
| 11227 |
}% |
| 11228 |
\def\pgfplotssetlateoptions@late#1{% |
| 11229 |
\t@pgfplots@toka=\expandafter{\pgfplots@late@options}% |
| 11230 |
\t@pgfplots@tokb={#1}% |
| 11231 |
\xdef\pgfplots@late@options{\the\t@pgfplots@toka,\the\t@pgfplots@tokb}% |
| 11232 |
}% |
| 11233 |
|
| 11234 |
\def\pgfplots@environment{% |
| 11235 |
\pgfutil@ifnextchar[{% |
| 11236 |
\pgfplots@environment@opt |
| 11237 |
}{% |
| 11238 |
\pgfplots@environment@opt[]% |
| 11239 |
}% |
| 11240 |
}% |
| 11241 |
|
| 11242 |
% temporary (local) variables inside of axis |
| 11243 |
\newif\ifpgfplots@autocompute@all@limits |
| 11244 |
\newif\ifpgfplots@autocompute@xmin |
| 11245 |
\newif\ifpgfplots@autocompute@xmax |
| 11246 |
\newif\ifpgfplots@autocompute@ymin |
| 11247 |
\newif\ifpgfplots@autocompute@ymax |
| 11248 |
\newif\ifpgfplots@autocompute@zmin |
| 11249 |
\newif\ifpgfplots@autocompute@zmax |
| 11250 |
\newif\ifpgfplots@apply@datatrafo@x |
| 11251 |
\newif\ifpgfplots@apply@datatrafo@y |
| 11252 |
\newif\ifpgfplots@apply@datatrafo@z |
| 11253 |
\newif\ifpgfplots@apply@datatrafo |
| 11254 |
\newif\ifpgfplots@datascaletrafo@initialised |
| 11255 |
|
| 11256 |
% Extracts single components of an entry of |
| 11257 |
% \pgfplots@stored@plotlist |
| 11258 |
% |
| 11259 |
% They are defined as |
| 11260 |
% \pgfplots@stored@current@precmd |
| 11261 |
% \pgfplots@stored@current@cmd |
| 11262 |
% \pgfplots@stored@current@data |
| 11263 |
% \pgfplots@stored@current@postcmd |
| 11264 |
\long\def\pgfplots@stored@plotlist@EXTRACTENTRY#1#2#3#4{% |
| 11265 |
% the token register stuff allows '#' inside of arguments. |
| 11266 |
\t@pgfplots@tokc={#1}% |
| 11267 |
\edef\pgfplots@stored@current@precmd{\the\t@pgfplots@tokc}% |
| 11268 |
% |
| 11269 |
\t@pgfplots@tokc={#2}% |
| 11270 |
\edef\pgfplots@stored@current@cmd{\the\t@pgfplots@tokc}% |
| 11271 |
% |
| 11272 |
\def\pgfplots@stored@current@data{#3}% |
| 11273 |
% |
| 11274 |
\t@pgfplots@tokc={#4}% |
| 11275 |
\edef\pgfplots@stored@current@postcmd{\the\t@pgfplots@tokc}% |
| 11276 |
% |
| 11277 |
} |
| 11278 |
|
| 11279 |
\def\pgfplots@init@cleared@structures{% |
| 11280 |
\global\pgfplotslistnewempty\pgfplots@plotspeclist |
| 11281 |
\global\pgfplotslistnewempty\pgfplots@legend |
| 11282 |
\global\pgfplotslistnewempty\pgfplots@stored@plotlist |
| 11283 |
\global\pgfplots@numplots=0 |
| 11284 |
\let\pgfplots@already@computed@legend@node=\pgfutil@empty |
| 11285 |
} |
| 11286 |
|
| 11287 |
% Takes a plot style and exports it to a self-contained drawing |
| 11288 |
% command which can be used outside of the current context. |
| 11289 |
% |
| 11290 |
% This macro is used inside for \label{} / \ref{}; it tries to be |
| 11291 |
% reasonable smart about restoring relevant flags stored in a pgfplots |
| 11292 |
% axis. If it forgets something... well, it is not too smart. |
| 11293 |
% |
| 11294 |
% #1: the style to export. |
| 11295 |
% #2: either empty or the fully qualified name of a code key. If #2 is not empty, |
| 11296 |
% the current value of the code key is remembered. It will be restored |
| 11297 |
% just before the exported \tikz statement is invoked, and \tikz[#2] |
| 11298 |
% will be called. The code key should not rely on any arguments (it |
| 11299 |
% won't be given any) |
| 11300 |
% |
| 11301 |
% The exported routine autodetects whether the result is used inside of |
| 11302 |
% a picture. In that case, the '#2' style will be set inside of a |
| 11303 |
% scope instead of \tikz[#2]. |
| 11304 |
% |
| 11305 |
% Assembles a macro \pgfplotsretval which, upon execution, draws the |
| 11306 |
% plot style. |
| 11307 |
% |
| 11308 |
% As a side effect, it returns the resulting plot style (nothing else) into |
| 11309 |
% \pgfplotsretvalb |
| 11310 |
\def\pgfplots@export@legend@image@to@macro#1#2{% |
| 11311 |
\begingroup |
| 11312 |
% I'd like to get all options which are INDEPENDENT of |
| 11313 |
% pgfplots. Idea: expand all /pgfplots-keys and collect |
| 11314 |
% everything which belongs NOT to /pgfplots. This is the |
| 11315 |
% completely expanded rest. At least, I hope so and it appears |
| 11316 |
% to work. |
| 11317 |
% |
| 11318 |
% FIXME : this was a good approach before. Now, there ARE |
| 11319 |
% /pgfplots keys which should be maintained. How shall I do that? |
| 11320 |
% I can't handle every option separately... !? |
| 11321 |
\pgfkeysinstallkeyfilter |
| 11322 |
{/pgf/key filters/and} |
| 11323 |
{{/pgf/key filters/is descendant of=/pgfplots}% |
| 11324 |
{/pgf/key filters/defined}}% |
| 11325 |
\def\pgfplots@label@tikzopts{}% |
| 11326 |
\pgfkeysinstallkeyfilterhandler{/pgf/key filter handlers/append filtered to}{\pgfplots@label@tikzopts}% |
| 11327 |
% FIXME : this fails if 'error bars/.cd,/pgfplots/.cd' is used inside of #1 -- |
| 11328 |
% the second /pgfplots/.cd will be applied, but the error bars |
| 11329 |
% command not |
| 11330 |
\pgfqkeysfiltered{/tikz}{#1}% |
| 11331 |
% |
| 11332 |
\pgfkeysgetvalue{/pgfplots/legend image code/.@cmd}{\pgfplots@curlegendcode}% |
| 11333 |
\pgfplots@getcurrent@plothandler\pgfplots@basiclevel@plothandler |
| 11334 |
\toks0=\expandafter{\pgfplots@curlegendcode\pgfeov}% |
| 11335 |
\toks1=\expandafter{\pgfplots@label@tikzopts}% |
| 11336 |
\toks3=\expandafter{\pgfplots@basiclevel@plothandler}% |
| 11337 |
\def\pgfplots@stylekey{#2}% |
| 11338 |
\ifx\pgfplots@stylekey\pgfutil@empty |
| 11339 |
\else |
| 11340 |
\pgfkeysgetvalue{\pgfplots@stylekey/.@cmd}{\pgfplots@stylekey@}% |
| 11341 |
\toks4=\expandafter{\pgfplots@stylekey@\pgfeov}% |
| 11342 |
\fi |
| 11343 |
\edef\pgfplots@loc@TMPa{% |
| 11344 |
{% |
| 11345 |
\ifx\pgfplots@stylekey\pgfutil@empty |
| 11346 |
\else |
| 11347 |
\noexpand\scope[#2]% |
| 11348 |
\fi |
| 11349 |
% |
| 11350 |
\noexpand\pgfplots@draw@image |
| 11351 |
% |
| 11352 |
\ifx\pgfplots@stylekey\pgfutil@empty |
| 11353 |
\else |
| 11354 |
\noexpand\endscope% |
| 11355 |
\fi |
| 11356 |
}{% |
| 11357 |
\noexpand\tikz[#2]{% |
| 11358 |
\noexpand\pgfplots@draw@image |
| 11359 |
}% |
| 11360 |
}% |
| 11361 |
}% |
| 11362 |
\expandafter\pgfplots@assemble@ref@picture\pgfplots@loc@TMPa |
| 11363 |
\toks5=\expandafter{\pgfplotsretval}% |
| 11364 |
\pgfkeysgetvalue{/pgfplots/every legend image post/.@cmd}\pgfplots@legend@image@post |
| 11365 |
\toks6=\expandafter{\pgfplots@legend@image@post\pgfeov}% |
| 11366 |
% |
| 11367 |
\edef\pgfplotsretval{% |
| 11368 |
\noexpand\begingroup |
| 11369 |
\noexpand\def\noexpand\pgfplots@draw@image{% |
| 11370 |
\noexpand\def\noexpand\tikz@plot@handler{\the\toks3}% |
| 11371 |
\noexpand\pgfkeysdef{/pgfplots/legend image code}{\the\toks0}% |
| 11372 |
\noexpand\pgfkeysdef{/pgfplots/every legend image post}{\the\toks6 }% |
| 11373 |
\noexpand\pgfkeyssetvalue{/pgfplots/mark list fill}{\pgfkeysvalueof{/pgfplots/mark list fill}}% |
| 11374 |
\ifx\pgfplots@stylekey\pgfutil@empty |
| 11375 |
\else |
| 11376 |
\noexpand\pgfkeysdef{#2}{\the\toks4}% |
| 11377 |
\fi |
| 11378 |
\noexpand\pgfplots@show@small@legendplots{\the\toks1}{}% |
| 11379 |
}% |
| 11380 |
\the\toks5 |
| 11381 |
\noexpand\endgroup% |
| 11382 |
}% |
| 11383 |
\xdef\pgfplots@glob@TMPa{\the\toks1}% |
| 11384 |
\pgfmath@smuggleone\pgfplotsretval |
| 11385 |
\endgroup |
| 11386 |
\let\pgfplotsretvalb=\pgfplots@glob@TMPa |
| 11387 |
}% |
| 11388 |
|
| 11389 |
% The implementation for \label{foo} after \addplot. It allows to |
| 11390 |
% \ref{foo} (it inserts the 'legend image code'). |
| 11391 |
% |
| 11392 |
% With |
| 11393 |
% \addplot[scatter/classes={a={}}] ... ; |
| 11394 |
% \label[a]{my label} |
| 11395 |
% you can reference scatter/classes labels. |
| 11396 |
% |
| 11397 |
% I only need to overwrite '\label'; the rest is done by LaTeX. |
| 11398 |
% |
| 11399 |
% THIS IS INCOMPATIBLE WITH plain TeX and ConTeXt! Don't use it, it |
| 11400 |
% doesn't hurt. |
| 11401 |
\def\pgfplots@plot@label{% |
| 11402 |
\pgfutil@ifnextchar<{% |
| 11403 |
\pgfplots@plot@label@beamer@mode |
| 11404 |
}{% |
| 11405 |
\pgfutil@ifnextchar[{\pgfplots@plot@label@{}}{\pgfplots@plot@label@{}[]}% |
| 11406 |
}% |
| 11407 |
}% |
| 11408 |
\def\pgfplots@plot@label@beamer@mode<#1>{ |
| 11409 |
\pgfutil@ifnextchar[{\pgfplots@plot@label@{<#1>}}{\pgfplots@plot@label@{<#1>}[]}% |
| 11410 |
} |
| 11411 |
% #1: optional prefix options, used to support |
| 11412 |
% \label<...>{<name>} of beamer package |
| 11413 |
\def\pgfplots@plot@label@#1[#2]#3{% |
| 11414 |
\ifpgfplots@has@label@information |
| 11415 |
\begingroup |
| 11416 |
\expandafter\let\expandafter\pgfplots@loc@TMPb\csname pgfplots@last@plot@style@#2\endcsname |
| 11417 |
\expandafter\pgfplots@export@legend@image@to@macro\expandafter{\pgfplots@loc@TMPb}{/pgfplots/every crossref picture}% |
| 11418 |
% |
| 11419 |
\t@pgfplots@toka=\expandafter{\pgfplotsretval}% |
| 11420 |
\t@pgfplots@tokb=\expandafter{\pgfplotsretvalb}% |
| 11421 |
% 1. prepare /pgfplots/refstyle={#3}: |
| 11422 |
\pgfplots@auxwrite{% |
| 11423 |
\noexpand\expandafter\noexpand\gdef |
| 11424 |
\noexpand\csname pgfplots@labelstyle@#3\noexpand\endcsname{\the\t@pgfplots@tokb}% |
| 11425 |
}% |
| 11426 |
% 2. prepare \ref{#3} and \pageref{#3}: |
| 11427 |
% |
| 11428 |
% There are several nasty things to consider: |
| 11429 |
% a) macro expansion. Use \string to allow a safe \write |
| 11430 |
% operation. |
| 11431 |
% |
| 11432 |
% b) \protect . If the resulting \ref{} command occurs within |
| 11433 |
% a "moving argument" like \caption or so, we need to use |
| 11434 |
% proper '\protect'ion. |
| 11435 |
% |
| 11436 |
% this here is the low-level implementation of \ref{#3}. Write it into |
| 11437 |
% the .aux file: |
| 11438 |
\pgfplots@auxwrite{% |
| 11439 |
\noexpand\expandafter\noexpand\gdef |
| 11440 |
\noexpand\csname pgfplots@show@ref@#3\noexpand\endcsname{% |
| 11441 |
\the\t@pgfplots@toka |
| 11442 |
}% |
| 11443 |
}% |
| 11444 |
% create the \label command: |
| 11445 |
\let\label=\pgfplots@original@LaTeX@label |
| 11446 |
\pgfplots@label[#1]{#3}{pgfplots@show@ref@}% |
| 11447 |
\endgroup |
| 11448 |
\else |
| 11449 |
\pgfplots@error{Can't create \string\label{#3}: it needs to be called after \string\addplot.}% |
| 11450 |
\fi |
| 11451 |
}% |
| 11452 |
|
| 11453 |
|
| 11454 |
\def\pgfplots@interruptdatabb{\pgfplots@bb@isactivefalse} |
| 11455 |
\def\endpgfplots@interruptdatabb{\pgfplots@bb@isactivetrue} |
| 11456 |
|
| 11457 |
\def\pgfplots@search@also@tikz{% |
| 11458 |
% make sure the search path is set. |
| 11459 |
% Inside of an axis, this is already ok. |
| 11460 |
\pgfkeysifdefined{/pgfplots/.unknown/.@cmd}% |
| 11461 |
{\relax}% search path in /pgfplots is already set |
| 11462 |
{% |
| 11463 |
%\message{DEBUG: re-initializing /pgfplots/.search also=/tikz in current plot style!}% |
| 11464 |
\pgfkeysalso{/pgfplots/.search also=/tikz}% |
| 11465 |
}% |
| 11466 |
}% |
| 11467 |
|
| 11468 |
% A helper method which defines |
| 11469 |
% `/tikz/current plot style' to be {#1} --- with properly set key |
| 11470 |
% search paths. |
| 11471 |
\def\pgfplots@define@currentplotstyle@as#1{% |
| 11472 |
\pgfkeysdef{/tikz/current plot style}{% |
| 11473 |
\pgfplots@search@also@tikz |
| 11474 |
% |
| 11475 |
% Make sure that |
| 11476 |
% \addplot[every mark/.append style={...}] |
| 11477 |
% or something like that is interpreted as /tikz/ key: |
| 11478 |
\pgfplots@invoke@pgfkeyscode{/handler config/full or existing/.@cmd}{}% restrict |
| 11479 |
% |
| 11480 |
\pgfkeysdef{/pgfplots/colorbar source}{}% make it NO-OP here. It has already been processed. |
| 11481 |
% |
| 11482 |
\pgfplots@install@local@bar@handlers% see its docs. |
| 11483 |
% |
| 11484 |
% set both, pgfplots and tikz keys: |
| 11485 |
% the draw is important since \addplot visualizes its stuff |
| 11486 |
% with \path coordinates ... |
| 11487 |
% -> we need to activate draw mode here. |
| 11488 |
\pgfplotsset{/tikz/draw,#1}% |
| 11489 |
\pgfplots@invoke@pgfkeyscode{/handler config/all/.@cmd}{}% unrestrict |
| 11490 |
% |
| 11491 |
% the final plot processing uses |
| 11492 |
% foreach stored \addplot command : |
| 11493 |
% \scope[current plot style] |
| 11494 |
% <finalize coord stream> |
| 11495 |
% \draw <finalized coord stream> |
| 11496 |
% \endscope |
| 11497 |
% -> the problem: \draw reset the modes 'draw,fill' etc which |
| 11498 |
% have been set in \scope! |
| 11499 |
% -> ad-hoc-solution: |
| 11500 |
% restore the modes manually. |
| 11501 |
\pgfplots@every@addplot@path@prepare% |
| 11502 |
% |
| 11503 |
\pgfplots@markers@check@for@default@plot@mark% |
| 11504 |
% |
| 11505 |
% |
| 11506 |
% This is done here. The \pgfplots@drawmodes is ONLY set |
| 11507 |
% inside of this scope, so we can check for that particular |
| 11508 |
% case: |
| 11509 |
\pgfkeys{/tikz/every path/.append code={% |
| 11510 |
% FIXME : is that portable!? |
| 11511 |
\pgfplots@every@addplot@path |
| 11512 |
\pgfplots@every@addplot@firstpath |
| 11513 |
\let\pgfplots@every@addplot@firstpath=\pgfutil@empty |
| 11514 |
}% |
| 11515 |
}% |
| 11516 |
}% |
| 11517 |
}% |
| 11518 |
|
| 11519 |
\def\pgfplots@every@addplot@path{} |
| 11520 |
\def\pgfplots@every@addplot@firstpath{} |
| 11521 |
|
| 11522 |
\def\pgfplots@every@addplot@path@prepare{% |
| 11523 |
\let\pgfplots@every@addplot@path=\pgfutil@empty |
| 11524 |
\let\pgfplots@every@addplot@firstpath=\pgfutil@empty |
| 11525 |
% |
| 11526 |
% remember these technical things: they will be |
| 11527 |
% reset in \path (see below!), so we will need to re-activate |
| 11528 |
% them. |
| 11529 |
% The re-activation is done in 'every path'. |
| 11530 |
\pgfplots@assert@tikzinternal@exists{tikz@options}% |
| 11531 |
\pgfplots@assert@tikzinternal@exists{tikz@mode}% |
| 11532 |
\let\pgfplots@drawoptions=\tikz@options |
| 11533 |
\let\pgfplots@drawmodes=\tikz@mode |
| 11534 |
\pgfplots@everypath@prepare@append{\pgfplots@every@addplot@path}{\pgfplots@restore@drawmodes}% |
| 11535 |
% |
| 11536 |
\iftikz@decoratepath |
| 11537 |
\pgfplots@everypath@prepare@append{\pgfplots@every@addplot@firstpath}{\tikz@decoratepathtrue}% |
| 11538 |
\fi |
| 11539 |
\pgfplots@everypath@prepare@append@macrorestore{\pgfplots@every@addplot@firstpath}\tikz@preactions |
| 11540 |
\pgfplots@everypath@prepare@append@macrorestore{\pgfplots@every@addplot@firstpath}\tikz@postactions |
| 11541 |
}% |
| 11542 |
\long\def\pgfplots@everypath@prepare@append#1#2{% |
| 11543 |
\t@pgfplots@toka=\expandafter{#1}% |
| 11544 |
\t@pgfplots@tokb={#2}% |
| 11545 |
\edef#1{\the\t@pgfplots@toka\the\t@pgfplots@tokb}% |
| 11546 |
}% |
| 11547 |
\long\def\pgfplots@everypath@prepare@append@macrorestore#1#2{% |
| 11548 |
\t@pgfplots@toka=\expandafter{#1}% |
| 11549 |
\t@pgfplots@tokb=\expandafter{#2}% |
| 11550 |
\edef#1{% |
| 11551 |
\the\t@pgfplots@toka |
| 11552 |
\noexpand\def\noexpand#2{\the\t@pgfplots@tokb}% |
| 11553 |
}% |
| 11554 |
}% |
| 11555 |
|
| 11556 |
|
| 11557 |
\newif\ifpgfplots@drawmodes@append |
| 11558 |
|
| 11559 |
\def\pgfplots@restore@drawmodes{% |
| 11560 |
\pgfutil@ifundefined{pgfplots@drawmodes}% |
| 11561 |
{\relax}% |
| 11562 |
{% |
| 11563 |
\ifpgfplots@drawmodes@append |
| 11564 |
\t@pgfplots@toka=\expandafter{\tikz@mode}% |
| 11565 |
\t@pgfplots@tokb=\expandafter{\pgfplots@drawmodes}% |
| 11566 |
\edef\tikz@mode{\the\t@pgfplots@tokb\the\t@pgfplots@toka}% |
| 11567 |
\else |
| 11568 |
\let\tikz@mode=\pgfplots@drawmodes |
| 11569 |
\fi |
| 11570 |
% \let\tikz@options=\pgfplots@drawoptions |
| 11571 |
}% |
| 11572 |
}% |
| 11573 |
|
| 11574 |
% Callback if the LUA backend does not support a sub-operation. The |
| 11575 |
% reason will be logged. |
| 11576 |
\def\pgfplots@LUA@backend@failed{% |
| 11577 |
\ifpgfplots@LUA@fail@on@TeX@fallback |
| 11578 |
\pgfplots@error{lua backend has been deactivated since some input option is unsupported and 'lua debug=compileerror' is active. Please see the most recent message in your .log file for details}% |
| 11579 |
\fi |
| 11580 |
}% |
| 11581 |
|
| 11582 |
\def\pgfplots@LUA@visualizationlog@deactivation#1{% |
| 11583 |
\pgfplots@log{\pgfplots@LUA@loglevel@info}{Using 'lua backend=false' for axis: #1.}% |
| 11584 |
\pgfplots@LUA@backend@failed |
| 11585 |
}% |
| 11586 |
\def\pgfplots@prepare@LUA@api{% |
| 11587 |
\ifpgfplots@LUA@backend@supported |
| 11588 |
\ifpgfplots@LUA@supported |
| 11589 |
\else |
| 11590 |
\pgfplots@LUA@backend@supportedfalse |
| 11591 |
\fi |
| 11592 |
% |
| 11593 |
\ifpgfplots@stackedmode |
| 11594 |
\pgfplots@LUA@visualizationlog@deactivation{stacked plots unsupported (yet)}% |
| 11595 |
\pgfplots@LUA@backend@supportedfalse |
| 11596 |
\fi |
| 11597 |
% |
| 11598 |
\ifpgfplots@xislinear\else \pgfplots@LUA@backend@supportedfalse\pgfplots@LUA@visualizationlog@deactivation{xmode=log unsupported (yet)}\fi |
| 11599 |
\ifpgfplots@yislinear\else \pgfplots@LUA@backend@supportedfalse\pgfplots@LUA@visualizationlog@deactivation{ymode=log unsupported (yet)}\fi |
| 11600 |
\ifpgfplots@zislinear\else \pgfplots@LUA@backend@supportedfalse\pgfplots@LUA@visualizationlog@deactivation{zmode=log unsupported (yet)}\fi |
| 11601 |
% |
| 11602 |
\pgfkeysgetvalue{/pgfplots/x coord trafo/.@cmd}\pgfplots@loc@TMPc\ifx\pgfplots@loc@TMPc\pgfplots@empty@command@key\else \pgfplots@LUA@backend@supportedfalse\pgfplots@LUA@visualizationlog@deactivation{x coord trafo unsupported}\fi |
| 11603 |
\pgfkeysgetvalue{/pgfplots/y coord trafo/.@cmd}\pgfplots@loc@TMPc\ifx\pgfplots@loc@TMPc\pgfplots@empty@command@key\else \pgfplots@LUA@backend@supportedfalse\pgfplots@LUA@visualizationlog@deactivation{x coord trafo unsupported}\fi |
| 11604 |
\pgfkeysgetvalue{/pgfplots/z coord trafo/.@cmd}\pgfplots@loc@TMPc\ifx\pgfplots@loc@TMPc\pgfplots@empty@command@key\else \pgfplots@LUA@backend@supportedfalse\pgfplots@LUA@visualizationlog@deactivation{x coord trafo unsupported}\fi |
| 11605 |
% |
| 11606 |
% FIXME: collect all remaining items |
| 11607 |
% |
| 11608 |
\ifpgfplots@LUA@backend@supported |
| 11609 |
\pgfplots@log{\pgfplots@LUA@loglevel@debug}{lua backend=true: Activating LUA backend for axis.}% |
| 11610 |
\pgfplotsutil@directlua{% |
| 11611 |
pgfplots.gca = pgfplots.Axis.new(); |
| 11612 |
pgfplots.gca.is3d = \pgfplots@boolval{pgfplots@threedim}; |
| 11613 |
pgfplots.gca.clipLimits = { |
| 11614 |
\pgfplots@boolval{pgfplots@clip@limits@x}, |
| 11615 |
\pgfplots@boolval{pgfplots@clip@limits@y}, |
| 11616 |
\pgfplots@boolval{pgfplots@clip@limits@z} }; |
| 11617 |
pgfplots.gca.autocomputeAllLimits = \pgfplots@boolval{pgfplots@autocompute@all@limits}; |
| 11618 |
pgfplots.gca.autocomputeMin = { |
| 11619 |
\pgfplots@boolval{pgfplots@autocompute@xmin}, |
| 11620 |
\pgfplots@boolval{pgfplots@autocompute@ymin}, |
| 11621 |
\pgfplots@boolval{pgfplots@autocompute@zmin} }; |
| 11622 |
pgfplots.gca.autocomputeMax = { |
| 11623 |
\pgfplots@boolval{pgfplots@autocompute@xmax}, |
| 11624 |
\pgfplots@boolval{pgfplots@autocompute@ymax}, |
| 11625 |
\pgfplots@boolval{pgfplots@autocompute@zmax} }; |
| 11626 |
% attention: min/max is (also) handed over in \pgfplots@LUA@survey@start |
| 11627 |
}% |
| 11628 |
\fi |
| 11629 |
\fi |
| 11630 |
}% |
| 11631 |
|
| 11632 |
\long\def\pgfplotsifissurveyphase#1#2{% |
| 11633 |
\if\pgfplots@phase@name s% |
| 11634 |
#1\relax |
| 11635 |
\else |
| 11636 |
#2\relax |
| 11637 |
\fi |
| 11638 |
}% |
| 11639 |
\long\def\pgfplotsifisvisualizationphase#1#2{\pgfplotsifissurveyphase{#2}{#1}} |
| 11640 |
\def\pgfplots@phase@name{X} |
| 11641 |
|
| 11642 |
% Invokes #1 if the statement occurs within \begin{axis}...\end{axis} |
| 11643 |
% and #2 if not. |
| 11644 |
\long\def\pgfplotsifinaxis#1#2{% |
| 11645 |
\pgfutil@ifundefined{pgfplots@is@in@axis}{#2}{#1}% |
| 11646 |
}% |
| 11647 |
|
| 11648 |
% |
| 11649 |
% \begin{axis}[#1] : |
| 11650 |
% |
| 11651 |
% This command prepares the axis for collection. NOTHING will be drawn |
| 11652 |
% until \end{axis}. During the collect phase, axis limits will be |
| 11653 |
% computed. |
| 11654 |
% |
| 11655 |
% The following variables are accumulated between |
| 11656 |
% \begin{axis} |
| 11657 |
% and |
| 11658 |
% \end{axis}: |
| 11659 |
% |
| 11660 |
% - \pgfplots@[xyz]min |
| 11661 |
% \pgfplots@[xyz]max |
| 11662 |
% - These denote the axis limits. |
| 11663 |
% - They are always assigned globally. |
| 11664 |
% - For linear axes, they will be computed in floating point. |
| 11665 |
% - For log axes, they will be computed using pgf math engine. |
| 11666 |
% - \pgfplots@[xyz]min@reg |
| 11667 |
% - A register containing the value of macro \pgfplots@[xyz]min |
| 11668 |
% in pt. It is only valid during \end{axis}. |
| 11669 |
% - \pgfplots@[xyz]max@reg |
| 11670 |
% - The same for 'max'. |
| 11671 |
% - \pgfplots@invalidrange@[xyz]min |
| 11672 |
% \pgfplots@invalidrange@[xyz]max |
| 11673 |
% \pgfplots@invalidrange@meta[max,min] |
| 11674 |
% A value which is used for the axis limits before the |
| 11675 |
% limit computation starts. |
| 11676 |
% - \pgfplots@data@[xyz]min |
| 11677 |
% \pgfplots@data@[xyz]max |
| 11678 |
% - DATA limits. These limits are not affected by limit |
| 11679 |
% restrictions |
| 11680 |
% - They are used to initialise the data scaling trafo. |
| 11681 |
% - They WON'T be assigned for log axes. |
| 11682 |
% - Assigned globally. |
| 11683 |
% - \pgfplots@[xyz]min@unscaled@as@float |
| 11684 |
% - Assigned during \end{axis} (local variables). |
| 11685 |
% - Contain the value of axis limits as floating point numbers |
| 11686 |
% in the original data range. |
| 11687 |
% - \pgfplots@metamin |
| 11688 |
% \pgfplots@metamax |
| 11689 |
% \pgfplots@axiswide@metamin |
| 11690 |
% \pgfplots@axiswide@metamax |
| 11691 |
% - if meta data is active, these macros will contain the upper |
| 11692 |
% and lower bound for meta data, the first two on a per-plot |
| 11693 |
% basis the latter to globally for the complete axis. |
| 11694 |
% - will be assigned globally. |
| 11695 |
% - meta data is ALWAYS collected in floating point. |
| 11696 |
% - \pgfplots@colorbar@src@metamin |
| 11697 |
% - \pgfplots@colorbar@src@metamax |
| 11698 |
% - these keys are usually empty, unless one provides the |
| 11699 |
% 'colorbar source' key for an \addplot command. In that case, |
| 11700 |
% they will be filled (globally) with the point meta min/max |
| 11701 |
% ranges of that particular plot. The colorbar will use the |
| 11702 |
% result for its ranges. |
| 11703 |
% - \pgfplots@numplots |
| 11704 |
% - A count register indexing the current plot counter. Assigned |
| 11705 |
% globally. |
| 11706 |
% - \ifpgfplots@apply@datatrafo |
| 11707 |
% A boolean which indicates whether any scaling trafo is |
| 11708 |
% active. |
| 11709 |
% - \ifpgfplots@apply@datatrafo@[xyz] |
| 11710 |
% Booleans indicating whether for which axes the scaling trafo |
| 11711 |
% is active. |
| 11712 |
% - \pgfplots@stored@plotlist |
| 11713 |
% - An instance of pgfplotslist. |
| 11714 |
% - It is assigned globally. |
| 11715 |
% - Every \addplot or tikz path command is collected into this |
| 11716 |
% structure. |
| 11717 |
% - The element type is a compound object containing everything |
| 11718 |
% needed to process the plot during \end{axis}. |
| 11719 |
% - \pgfplots@plotspeclist |
| 11720 |
% - instance of pgfplotslist |
| 11721 |
% - collects every line specification for \addplot. |
| 11722 |
% - Used to assemble legends. |
| 11723 |
% - Assigned globally. |
| 11724 |
% - \pgfplots@legend |
| 11725 |
% - instance of pgfplotslist |
| 11726 |
% - collects every legend entry. |
| 11727 |
% - Used to assemble legends. |
| 11728 |
% - Assigned globally. |
| 11729 |
% - \pgfplots@data@scale@trafo@SHIFT@[xyz] |
| 11730 |
% \pgfplots@data@scale@trafo@EXPONENT@[xyz] |
| 11731 |
% - For any direction for which the scaling trafo is active, |
| 11732 |
% these macros contain the two parameters for the affine scaling |
| 11733 |
% trafo. |
| 11734 |
% - \pgfplots@firstplot@coords@[xyz] |
| 11735 |
% - A macro containing a comma separated list |
| 11736 |
% - It is collected if and only if [xyz]tick = 'data'. |
| 11737 |
% - Contains a list of coordinates in floating point |
| 11738 |
% representation if the axis is linear. |
| 11739 |
% - The coordinates are in pgf math notation for log axes. |
| 11740 |
% - Assigned globally. |
| 11741 |
% - \pgfplots@[xyz]@veclength |
| 11742 |
% - A macro containing the vector length of the [xyz] unit |
| 11743 |
% vector. |
| 11744 |
% - Assigned in \end{axis} |
| 11745 |
% - \pgfplots@[xyz]@inverseveclength |
| 11746 |
% - A macro containing the INVERSE vector length of the [xyz] |
| 11747 |
% unit vector. |
| 11748 |
% - Assigned in \end{axis} |
| 11749 |
% - \pgfplotspoint[xyz]axis |
| 11750 |
% - A macro which sets 'pgf@x' and 'pgf@y' to the [xyz] axis. |
| 11751 |
% - \pgfplotspoint[xyz]axislength |
| 11752 |
% - A macro containing the vector length of the [xyz] axis |
| 11753 |
% (including the 'pt' suffix). |
| 11754 |
% |
| 11755 |
% - \ifpgfplots@curplot@threedim |
| 11756 |
% - valid during an '\addplot' preparation step. |
| 11757 |
% - \ifpgfplots@threedim |
| 11758 |
% - whether the axis shall be threedimensional. |
| 11759 |
% |
| 11760 |
% - \pgfplots@currentplot@firstcoord@[xyz] |
| 11761 |
% - \pgfplots@currentplot@lastcoord@[xyz] |
| 11762 |
% - contains the first/last coordinate of the current plot. |
| 11763 |
% - assigned globally. |
| 11764 |
% - \ifpgfplots@coord@stream@isfirst |
| 11765 |
% - assigned globally during \addplot. |
| 11766 |
% - \pgfplotssurveyphase@setactiveplothandlers |
| 11767 |
% A macro which is used to implement '\numplotsofactualtype' |
| 11768 |
% see \pgfplots@countplots@advance for details. |
| 11769 |
% |
| 11770 |
% |
| 11771 |
% |
| 11772 |
\def\pgfplots@environment@opt[#1]{% |
| 11773 |
\begingroup |
| 11774 |
\pgfplots@define@dummies@for@pseudoconstants |
| 11775 |
\pgfplotsifinaxis{% |
| 11776 |
\pgfplots@error{% |
| 11777 |
Sorry, nested axis environments are not supported. |
| 11778 |
Please move the inner axis environment below \string\end{axis} and |
| 11779 |
use alignment options (for example named nodes, see manual) to place it at the desired |
| 11780 |
position}% |
| 11781 |
}{}% |
| 11782 |
\def\pgfplots@is@in@axis{1}% |
| 11783 |
\pgfplots@environment@opt@@setup@pgfpoint@restores |
| 11784 |
% |
| 11785 |
\pgfplots@checkandpreparefor@active@semicolon |
| 11786 |
% |
| 11787 |
\pgfplots@install@abbrev@commands |
| 11788 |
\pgfplots@stacked@initialise |
| 11789 |
\pgfplotsplothandlers@init |
| 11790 |
% |
| 11791 |
% |
| 11792 |
% The explicit specification of 'x' and 'y' as 1pt is to avoid |
| 11793 |
% numeric overflow/underflow during scale computations: |
| 11794 |
% |
| 11795 |
% The scaling (i.e. proper values for 'x' and 'y') will be |
| 11796 |
% determined later-on, dependent on the axis limits. Since axis |
| 11797 |
% limits are implicitly in units of 1pt, it is reasonable to use |
| 11798 |
% '1pt' here as well. |
| 11799 |
\pgfsetxvec{\pgfqpoint{1pt}{0pt}}% |
| 11800 |
\pgfsetyvec{\pgfqpoint{0pt}{1pt}}% |
| 11801 |
\pgfsetzvec{\pgfqpoint{0pt}{0pt}}% |
| 11802 |
% |
| 11803 |
\pgfplots@set@options{#1}% |
| 11804 |
\global\let\pgfplots@late@options=\pgfutil@empty |
| 11805 |
\let\pgfplotssetlateoptions=\pgfplotssetlateoptions@late |
| 11806 |
% |
| 11807 |
% |
| 11808 |
% |
| 11809 |
% -------------------- |
| 11810 |
% Allocations: |
| 11811 |
% -------------------- |
| 11812 |
\pgfplots@init@cleared@structures |
| 11813 |
% |
| 11814 |
% -------------------- |
| 11815 |
% Option preprocessing |
| 11816 |
% -------------------- |
| 11817 |
\pgfplots@prepare@coord@filtering@for x% |
| 11818 |
\pgfplots@prepare@coord@filtering@for y% |
| 11819 |
\pgfplots@prepare@coord@filtering@for z% |
| 11820 |
\ifpgfplots@apply@datatrafo |
| 11821 |
\pgfplots@datascaletrafo@initialisedfalse |
| 11822 |
\else |
| 11823 |
\pgfplots@datascaletrafo@initialisedtrue% there is no trafo. |
| 11824 |
\fi |
| 11825 |
% |
| 11826 |
\pgfplotsutilforeachcommasep{x,y,z}\as\pgfplots@loc@TMPa{% |
| 11827 |
\pgfplotscoordmath \pgfplots@loc@TMPa{min limit}% |
| 11828 |
\expandafter\let\csname pgfplots@invalidrange@\pgfplots@loc@TMPa max\endcsname=\pgfmathresult |
| 11829 |
\pgfplotscoordmath \pgfplots@loc@TMPa{max limit}% |
| 11830 |
\expandafter\let\csname pgfplots@invalidrange@\pgfplots@loc@TMPa min\endcsname=\pgfmathresult |
| 11831 |
}% |
| 11832 |
% |
| 11833 |
\pgfplotscoordmath{meta}{max limit}% |
| 11834 |
\let\pgfplots@invalidrange@metamin=\pgfmathresult |
| 11835 |
\pgfplotscoordmath{meta}{min limit}% |
| 11836 |
\let\pgfplots@invalidrange@metamax=\pgfmathresult |
| 11837 |
% |
| 11838 |
% These numbers will ONLY be filled for linear axis! |
| 11839 |
\global\let\pgfplots@data@xmin=\pgfplots@invalidrange@xmin |
| 11840 |
\global\let\pgfplots@data@xmax=\pgfplots@invalidrange@xmax |
| 11841 |
\global\let\pgfplots@data@ymin=\pgfplots@invalidrange@ymin |
| 11842 |
\global\let\pgfplots@data@ymax=\pgfplots@invalidrange@ymax |
| 11843 |
\global\let\pgfplots@data@zmin=\pgfplots@invalidrange@zmin |
| 11844 |
\global\let\pgfplots@data@zmax=\pgfplots@invalidrange@zmax |
| 11845 |
\global\let\pgfplots@axiswide@metamin=\pgfplots@invalidrange@metamin |
| 11846 |
\global\let\pgfplots@axiswide@metamax=\pgfplots@invalidrange@metamax |
| 11847 |
\global\let\pgfplots@colorbar@src@metamin=\pgfutil@empty |
| 11848 |
\global\let\pgfplots@colorbar@src@metamax=\pgfutil@empty |
| 11849 |
% |
| 11850 |
\pgfplots@autocompute@all@limitstrue |
| 11851 |
\ifx\pgfplots@xmin\pgfutil@empty |
| 11852 |
\pgfplots@autocompute@xmintrue |
| 11853 |
\global\let\pgfplots@xmin=\pgfplots@invalidrange@xmin |
| 11854 |
\else |
| 11855 |
\pgfplots@autocompute@all@limitsfalse |
| 11856 |
\fi |
| 11857 |
\ifx\pgfplots@xmax\pgfutil@empty |
| 11858 |
\pgfplots@autocompute@xmaxtrue |
| 11859 |
\global\let\pgfplots@xmax=\pgfplots@invalidrange@xmax |
| 11860 |
\else |
| 11861 |
\pgfplots@autocompute@all@limitsfalse |
| 11862 |
\fi |
| 11863 |
\ifx\pgfplots@ymin\pgfutil@empty |
| 11864 |
\pgfplots@autocompute@ymintrue |
| 11865 |
\global\let\pgfplots@ymin=\pgfplots@invalidrange@ymin |
| 11866 |
\else |
| 11867 |
\pgfplots@autocompute@all@limitsfalse |
| 11868 |
\fi |
| 11869 |
\ifx\pgfplots@ymax\pgfutil@empty |
| 11870 |
\pgfplots@autocompute@ymaxtrue |
| 11871 |
\global\let\pgfplots@ymax=\pgfplots@invalidrange@ymax |
| 11872 |
\else |
| 11873 |
\pgfplots@autocompute@all@limitsfalse |
| 11874 |
\fi |
| 11875 |
\ifx\pgfplots@zmin\pgfutil@empty |
| 11876 |
\pgfplots@autocompute@zmintrue |
| 11877 |
\global\let\pgfplots@zmin=\pgfplots@invalidrange@zmin |
| 11878 |
\else |
| 11879 |
\global\pgfplots@threedimtrue |
| 11880 |
\pgfplots@autocompute@all@limitsfalse |
| 11881 |
\fi |
| 11882 |
\ifx\pgfplots@zmax\pgfutil@empty |
| 11883 |
\pgfplots@autocompute@zmaxtrue |
| 11884 |
\global\let\pgfplots@zmax=\pgfplots@invalidrange@zmax |
| 11885 |
\else |
| 11886 |
\global\pgfplots@threedimtrue |
| 11887 |
\pgfplots@autocompute@all@limitsfalse |
| 11888 |
\fi |
| 11889 |
% |
| 11890 |
\pgfutil@IfUndefined{pgfmathdeclarefunction}{% |
| 11891 |
% SKIP: \pgfmathdeclarefunction is unavailable in pgf 2.00 . |
| 11892 |
% UPGRADE TO PGF 2.10 to use these math functions. |
| 11893 |
}{% |
| 11894 |
\pgfplots@declare@mathfunctions |
| 11895 |
}% |
| 11896 |
% |
| 11897 |
% check for axis-wide 'point meta min' : |
| 11898 |
\pgfkeysgetvalue{/pgfplots/point meta min}\pgfplots@loc@TMPa |
| 11899 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 11900 |
\def\pgfplots@axiswide@metamin@autocompute{1}% |
| 11901 |
\else |
| 11902 |
\def\pgfplots@axiswide@metamin@autocompute{0}% |
| 11903 |
\pgfplotscoordmath{meta}{parsenumber}{\pgfplots@loc@TMPa}% |
| 11904 |
\global\let\pgfplots@axiswide@metamin=\pgfmathresult |
| 11905 |
\fi |
| 11906 |
\pgfkeysgetvalue{/pgfplots/point meta max}\pgfplots@loc@TMPa |
| 11907 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 11908 |
\def\pgfplots@axiswide@metamax@autocompute{1}% |
| 11909 |
\else |
| 11910 |
\def\pgfplots@axiswide@metamax@autocompute{0}% |
| 11911 |
\pgfplotscoordmath{meta}{parsenumber}{\pgfplots@loc@TMPa}% |
| 11912 |
\global\let\pgfplots@axiswide@metamax=\pgfmathresult |
| 11913 |
\fi |
| 11914 |
% |
| 11915 |
% -------------------- |
| 11916 |
% Start axis: |
| 11917 |
% start survey phase! |
| 11918 |
% -------------------- |
| 11919 |
% |
| 11920 |
\ifpgfplots@stackedmode |
| 11921 |
\else |
| 11922 |
% we have no stacked plots and thus no reversing. |
| 11923 |
\pgfplots@stacked@reversefalse |
| 11924 |
\fi |
| 11925 |
% |
| 11926 |
\pgfutil@IfUndefined{label}{\relax}{% |
| 11927 |
\let\pgfplots@original@LaTeX@label=\label |
| 11928 |
\let\label=\pgfplots@plot@label |
| 11929 |
}% |
| 11930 |
% |
| 11931 |
\global\pgfplots@has@label@informationfalse |
| 11932 |
% |
| 11933 |
\def\numplots{\the\pgfplots@numplots}% |
| 11934 |
\global\let\pgfplotssurveyphase@setactiveplothandlers=\pgfutil@empty |
| 11935 |
\let\numplotsofactualtype=\pgfplots@numplotsofactualtype |
| 11936 |
% |
| 11937 |
% any \path command is invalid inside of an axis. |
| 11938 |
% Use \axispath instead: |
| 11939 |
\let\path=\pgfplots@replacement@for@tikz@path |
| 11940 |
\let\closedcycle=\pgfplots@path@closed@cycle |
| 11941 |
% |
| 11942 |
% defines \pgfplotsaxisupdatelimitsforcoordinate etc. |
| 11943 |
\pgfplots@prepare@axis@API |
| 11944 |
\pgfplots@prepare@LUA@api |
| 11945 |
\pgfkeysvalueof{/pgfplots/execute at begin axis}% |
| 11946 |
\pgfkeysvalueof{/pgfplots/execute at begin axis@@}% |
| 11947 |
\def\pgfplots@phase@name{s}% |
| 11948 |
% |
| 11949 |
\pgfplots@replace@path@commands |
| 11950 |
% |
| 11951 |
% allow layer changes within the environment; reset: |
| 11952 |
\pgfkeyslet{/pgfplots/on layer}\pgfutil@empty |
| 11953 |
} |
| 11954 |
|
| 11955 |
% #1 if and only if the limits are already ready (sanitized to bounded |
| 11956 |
% values and transformed) |
| 11957 |
\def\pgfplots@set@options@after@survey#1{% |
| 11958 |
\def\pgfplots@set@options@after@survey@@##1{% |
| 11959 |
\edef\pgfmathresult{\csname pgfplots@##1min\endcsname}% |
| 11960 |
\if1#1% |
| 11961 |
\pgfplotscoordmath{##1}{datascaletrafo inverse}{\pgfmathresult}% |
| 11962 |
\pgfplotscoordmath{##1}{tofixed}{\pgfmathresult}% |
| 11963 |
\else |
| 11964 |
% might be unbounded... |
| 11965 |
\pgfplotscoordmath{##1}{tostring}{\pgfmathresult}% |
| 11966 |
\fi |
| 11967 |
\pgfkeyslet{/pgfplots/##1min}\pgfmathresult |
| 11968 |
% |
| 11969 |
\edef\pgfmathresult{\csname pgfplots@##1max\endcsname}% |
| 11970 |
\if1#1% |
| 11971 |
\pgfplotscoordmath{##1}{datascaletrafo inverse}{\pgfmathresult}% |
| 11972 |
\pgfplotscoordmath{##1}{tofixed}{\pgfmathresult}% |
| 11973 |
\else |
| 11974 |
% might be unbounded... |
| 11975 |
\pgfplotscoordmath{##1}{tostring}{\pgfmathresult}% |
| 11976 |
\fi |
| 11977 |
\pgfkeyslet{/pgfplots/##1max}\pgfmathresult |
| 11978 |
}% |
| 11979 |
\pgfplots@set@options@after@survey@@ x% |
| 11980 |
\pgfplots@set@options@after@survey@@ y% |
| 11981 |
\ifpgfplots@threedim |
| 11982 |
\pgfplots@set@options@after@survey@@ z% |
| 11983 |
\fi |
| 11984 |
% |
| 11985 |
\pgfkeyslet{/pgfplots/point meta min}{\pgfplots@axiswide@metamin}% |
| 11986 |
\pgfkeyslet{/pgfplots/point meta max}{\pgfplots@axiswide@metamax}% |
| 11987 |
}% |
| 11988 |
|
| 11989 |
% \end{axis} : |
| 11990 |
% |
| 11991 |
% This command actually takes all collected (global) variables, |
| 11992 |
% creates an axis and performs all postponed drawing operations. |
| 11993 |
\def\endpgfplots@environment@opt{% |
| 11994 |
\def\pgfplots@phase@name{v}% |
| 11995 |
\pgfutil@IfUndefined{label}{\relax}{% |
| 11996 |
% restore. |
| 11997 |
\let\label=\pgfplots@original@LaTeX@label |
| 11998 |
}% |
| 11999 |
\xdef\numplots{\the\pgfplots@numplots}% |
| 12000 |
\pgfkeysvalueof{/pgfplots/before end axis/.@cmd}\pgfeov% |
| 12001 |
\pgfkeysvalueof{/pgfplots/execute at end axis}% |
| 12002 |
\pgfkeysvalueof{/pgfplots/execute at end axis@@}% |
| 12003 |
% |
| 12004 |
\pgfplots@restore@path@commands |
| 12005 |
% |
| 12006 |
\pgfplotssurveyphase@setactiveplothandlers |
| 12007 |
% |
| 12008 |
\pgfplots@set@options@after@survey0% |
| 12009 |
\expandafter\pgfplotsset\expandafter{\pgfplots@late@options}% |
| 12010 |
% |
| 12011 |
\pgfplots@prepare@layered@graphics |
| 12012 |
% |
| 12013 |
\pgfplots@prepare@cell@picture |
| 12014 |
% |
| 12015 |
%\end{axis}: |
| 12016 |
% |
| 12017 |
% -------------------- |
| 12018 |
% All plotting commands have been read. |
| 12019 |
% -> apply postponed drawing commands! |
| 12020 |
% -------------------- |
| 12021 |
\pgfplots@determinedefaultvalues |
| 12022 |
\pgfplots@BEGIN@cell@picture[/pgfplots/every axis]% |
| 12023 |
\pgfplots@BEGIN@init@and@draw@axis |
| 12024 |
% |
| 12025 |
% replace some of tikz's paths (like ellipse and path): make them |
| 12026 |
% aware of any transformations: |
| 12027 |
\pgfplots@install@path@replacements |
| 12028 |
% |
| 12029 |
\pgfplots@stacked@initialise |
| 12030 |
\pgfplots@markers@visphase@after@axis@prepare |
| 12031 |
\ifpgfplots@stacked@reverse |
| 12032 |
% This here applies any scaling trafos and assembles a |
| 12033 |
% NEW \pgfplots@stored@plotlist! |
| 12034 |
\pgfplots@stacked@finalize@stored@plots |
| 12035 |
\fi |
| 12036 |
% |
| 12037 |
% ensure that (1,2) is automatically converted to (axis cs:1,2) : |
| 12038 |
\pgfplots@change@pgfpoints@to@axiscs |
| 12039 |
% |
| 12040 |
\ifpgfplots@LUA@backend@supported |
| 12041 |
\pgfplots@LUA@visualization@update@axis |
| 12042 |
\fi |
| 12043 |
% |
| 12044 |
% make it ungrouped: we must not destroy group nesting of tikz |
| 12045 |
% path instructions at this point. |
| 12046 |
\pgfplotslistforeachungrouped\pgfplots@stored@plotlist\as\pgfplots@loc@TMPa{% |
| 12047 |
\expandafter\pgfplots@stored@plotlist@EXTRACTENTRY\pgfplots@loc@TMPa |
| 12048 |
%\message{^^JProcessing stored plot with precommand '\meaning\pgfplots@stored@current@precmd';^^J pgfplots@plotcmd '\meaning\pgfplots@stored@current@cmd'^^J postcommand '\meaning\pgfplots@stored@current@postcmd'^^J}% |
| 12049 |
%\message{DATA: '\meaning\pgfplots@stored@current@data';^^J}% |
| 12050 |
% The precmd sets all required variables needed to |
| 12051 |
% finalize a plot. |
| 12052 |
% @see the stream preparation routines. |
| 12053 |
\pgfplots@stored@current@precmd |
| 12054 |
\ifx\pgfplots@stored@current@cmd\pgfutil@empty |
| 12055 |
% Ah: some \pgfplotsextra command like \draw,\path, |
| 12056 |
% \node or even \scope or \endscope. |
| 12057 |
% |
| 12058 |
% do NOT call \pgfplotsonlayer here! We MUST NOT |
| 12059 |
% destroy grouping levels here. |
| 12060 |
\pgfplots@stored@current@data% |
| 12061 |
\else |
| 12062 |
% |
| 12063 |
% this code here means we REALLY have a plotting |
| 12064 |
% command! |
| 12065 |
% This is the heart component of the visualization |
| 12066 |
% phase. |
| 12067 |
\pgfplots@stored@plotlist@visualize@selected@phases{\pgfplots@visphase@names}% |
| 12068 |
\fi |
| 12069 |
\pgfplots@stored@current@postcmd |
| 12070 |
}% |
| 12071 |
\pgfplots@restorepgfpoint |
| 12072 |
% |
| 12073 |
% |
| 12074 |
\pgfplots@END@init@and@draw@axis |
| 12075 |
% |
| 12076 |
\pgfplots@create@axis@descriptions |
| 12077 |
% |
| 12078 |
% this here does \endtikzpicture\endpgfinterruptpicture |
| 12079 |
% (and stores sizes): |
| 12080 |
\pgfplots@END@cell@picture |
| 12081 |
% |
| 12082 |
\let\tikz@fig@name=\pgfplots@fig@name |
| 12083 |
\tikz@fig@mustbenamed |
| 12084 |
% |
| 12085 |
\edef\pgfplots@shapename{pgfplots@low@level@shape\ifpgfplots@deprecated@anchors @deprecated\fi}% |
| 12086 |
\pgfutil@IfUndefined{pgf@anchor@\pgfplots@shapename @\pgfplots@anchorname}{% |
| 12087 |
% Oh. Well, suppose \pgfplots@anchorname is associated to an |
| 12088 |
% INNER node. |
| 12089 |
\def\pgfplots@loc@TMPa##1{% |
| 12090 |
\pgftransformshift{% |
| 12091 |
% So far, the inner node's position has not been |
| 12092 |
% corrected (that happens in |
| 12093 |
% \pgfplots@finally@correct@child@node@positions). |
| 12094 |
% Do that here with \pgfplots@saveddimen@picminx: |
| 12095 |
\pgfpointdiff |
| 12096 |
{\pgfplotspointorigininternal} |
| 12097 |
{##1}% |
| 12098 |
\global\pgf@x=-\pgf@x \global\pgf@y=-\pgf@y |
| 12099 |
}% |
| 12100 |
}% |
| 12101 |
\expandafter\tikz@scan@one@point\expandafter\pgfplots@loc@TMPa\expandafter(\pgfplots@anchorname)% |
| 12102 |
\def\pgfplots@anchorname{image}% that means: no shift! |
| 12103 |
}{}% |
| 12104 |
% |
| 12105 |
\begingroup |
| 12106 |
\pgfplots@beforenode |
| 12107 |
% |
| 12108 |
\ifpgfplots@has@cell@picture |
| 12109 |
\else |
| 12110 |
% the transformations have already been applied to the |
| 12111 |
% coordinates which are used to setup the node. Reset them: |
| 12112 |
\pgftransformresetnontranslations |
| 12113 |
\fi |
| 12114 |
% |
| 12115 |
\ifpgfplots@deprecated@anchors |
| 12116 |
\pgfplots@restore@deprecated@lowlevel@shape |
| 12117 |
\pgfmultipartnode{\pgfplots@shapename}{\pgfplots@anchorname}{\tikz@fig@name}{\pgfusepath{discard}}% |
| 12118 |
\else |
| 12119 |
\pgfmultipartnode{\pgfplots@shapename}{\pgfplots@anchorname}{\tikz@fig@name}{\pgfusepath{discard}}% |
| 12120 |
\fi |
| 12121 |
\endgroup |
| 12122 |
\pgfplots@fig@alias |
| 12123 |
\pgfnodealias{current axis}{\tikz@fig@name}% |
| 12124 |
% |
| 12125 |
\pgfplots@finally@correct@child@node@positions |
| 12126 |
\pgfplots@stacked@finalize |
| 12127 |
% |
| 12128 |
\pgfplots@LUA@cleanup |
| 12129 |
% |
| 12130 |
\ifpgfplots@colorbar |
| 12131 |
\pgfplots@colorbar@move@outside@scope@with@globalmacro{\pgfplots@glob@TMPa}% |
| 12132 |
\else |
| 12133 |
\global\let\pgfplots@glob@TMPa=\relax |
| 12134 |
\fi |
| 12135 |
% |
| 12136 |
% transport the current layer config - but only if necessary! |
| 12137 |
\def\pgfplots@loc@TMPa{0}% |
| 12138 |
\ifpgfplots@has@cell@picture |
| 12139 |
% layers are used for the cell picture only- no need to |
| 12140 |
% communicate them. |
| 12141 |
\else |
| 12142 |
\ifpgfplots@layered@graphics |
| 12143 |
\def\pgfplots@loc@TMPa{1}% |
| 12144 |
\else |
| 12145 |
% there are no layers. |
| 12146 |
\fi |
| 12147 |
\fi |
| 12148 |
\if1\pgfplots@loc@TMPa |
| 12149 |
% Ah - we need to transport the current layer config! |
| 12150 |
\pgf@remember@layerlist@globally |
| 12151 |
\aftergroup\pgf@restore@layerlist@from@global |
| 12152 |
\else |
| 12153 |
% Hm. No layers to transport. Make sure that the second |
| 12154 |
% \aftergroup does not hurt: |
| 12155 |
\aftergroup\pgf@remember@layerlist@globally |
| 12156 |
\fi |
| 12157 |
\endgroup |
| 12158 |
\pgfplots@glob@TMPa |
| 12159 |
% |
| 12160 |
% once more again - just to be sure that it works with LaTeX which |
| 12161 |
% introduces a further grouping level: |
| 12162 |
\aftergroup\pgf@restore@layerlist@from@global |
| 12163 |
% |
| 12164 |
\pgfplots@cell@picture@remembered |
| 12165 |
\aftergroup\pgfplots@cell@picture@remembered |
| 12166 |
} |
| 12167 |
|
| 12168 |
\def\pgfplots@LUA@visualization@update@axis{% |
| 12169 |
\ifpgfplots@threedim |
| 12170 |
\pgfplotsmathvectortocomponents\pgfplots@view@dir@threedim{pgfplots@loc@}{default}% |
| 12171 |
\fi |
| 12172 |
% |
| 12173 |
\let\pgfplots@loc@TMPa\pgfutil@empty% |
| 12174 |
\pgfplotscoordmath{x}{datascaletrafo get params}% |
| 12175 |
\edef\pgfplots@loc@TMPa{% |
| 12176 |
\pgfplots@loc@TMPa |
| 12177 |
local datascaleTrafoX = pgfplots.DatascaleTrafo.new(\pgfplotsretval,\pgfplotsretvalb);^^J |
| 12178 |
}% |
| 12179 |
\pgfplotscoordmath{y}{datascaletrafo get params}% |
| 12180 |
\edef\pgfplots@loc@TMPa{% |
| 12181 |
\pgfplots@loc@TMPa |
| 12182 |
local datascaleTrafoY = pgfplots.DatascaleTrafo.new(\pgfplotsretval,\pgfplotsretvalb);^^J |
| 12183 |
}% |
| 12184 |
\pgfplotscoordmath{z}{datascaletrafo get params}% |
| 12185 |
\edef\pgfplots@loc@TMPa{% |
| 12186 |
\pgfplots@loc@TMPa |
| 12187 |
local datascaleTrafoZ = pgfplots.DatascaleTrafo.new(\pgfplotsretval,\pgfplotsretvalb);^^J |
| 12188 |
}% |
| 12189 |
% |
| 12190 |
\edef\pgfplots@loc@TMPa{% |
| 12191 |
\pgfplots@loc@TMPa |
| 12192 |
local axis = pgfplots.gca;^^J% |
| 12193 |
% FIXME : what about datamin/max? |
| 12194 |
axis.axiswidemetamin = pgfplots.pgftonumber("\pgfplots@axiswide@metamin"); ^^J% |
| 12195 |
axis.axiswidemetamax = pgfplots.pgftonumber("\pgfplots@axiswide@metamax"); ^^J% |
| 12196 |
axis.datascaleTrafo = { datascaleTrafoX, datascaleTrafoY, datascaleTrafoZ };^^J% |
| 12197 |
axis:setunitvectors({ % |
| 12198 |
{ \pgf@sys@tonumber\pgf@xx, \pgf@sys@tonumber\pgf@xy }, |
| 12199 |
{ \pgf@sys@tonumber\pgf@yx, \pgf@sys@tonumber\pgf@yy }, |
| 12200 |
{ \pgf@sys@tonumber\pgf@zx, \pgf@sys@tonumber\pgf@zy } });^^J% |
| 12201 |
\ifpgfplots@threedim |
| 12202 |
axis.viewdir = { |
| 12203 |
pgfplots.pgftonumber("\pgfplots@loc@x"), |
| 12204 |
pgfplots.pgftonumber("\pgfplots@loc@y"), |
| 12205 |
pgfplots.pgftonumber("\pgfplots@loc@z") };^^J% |
| 12206 |
\fi |
| 12207 |
}% |
| 12208 |
%\message{Executing \pgfplots@loc@TMPa}% |
| 12209 |
\pgfplotsutil@directlua{\pgfplots@loc@TMPa} |
| 12210 |
}% |
| 12211 |
|
| 12212 |
\def\pgfplots@LUA@cleanup{% |
| 12213 |
\ifpgfplots@LUA@backend@supported |
| 12214 |
\pgfplotsutil@directlua{pgfplots.gca=nil}% |
| 12215 |
\fi |
| 12216 |
}% |
| 12217 |
|
| 12218 |
% |
| 12219 |
% This is part of \ifpgfplots@substitute@pgfpoint: |
| 12220 |
\def\pgfplots@environment@opt@@setup@pgfpoint@restores{% |
| 12221 |
% There are places in pgfplots where the default coordinate system |
| 12222 |
% (i.e. the one used whenever one writes (1,2)) needs to be |
| 12223 |
% replaced: |
| 12224 |
% - during axis descriptions (see \pgfplots@change@pgfpoints@to@descriptioncs) |
| 12225 |
% - during the visualization phase (where it is substituted by |
| 12226 |
% (axis cs:1,2), compare XXXX) |
| 12227 |
% |
| 12228 |
% However, as soon as someone writes \pgfsetxvec (or its y/z |
| 12229 |
% variants), we want to *restore* the original PGF functionality. |
| 12230 |
% |
| 12231 |
% Prepare that here: |
| 12232 |
\let\pgfpointxy@orig=\pgfpointxy |
| 12233 |
\let\pgfqpointxy@orig=\pgfqpointxy |
| 12234 |
\let\pgfpointxyz@orig=\pgfpointxyz |
| 12235 |
\let\pgfqpointxyz@orig=\pgfqpointxyz |
| 12236 |
\let\pgfsetxvec@orig=\pgfsetxvec |
| 12237 |
\let\pgfsetyvec@orig=\pgfsetyvec |
| 12238 |
\let\pgfsetzvec@orig=\pgfsetzvec |
| 12239 |
\let\tikz@checkunit@orig=\tikz@checkunit |
| 12240 |
\let\pgfpatharcaxes@orig=\pgfpatharcaxes |
| 12241 |
\let\pgfpointpolarxy@orig=\pgfpointpolarxy |
| 12242 |
\let\tikz@do@arc@orig=\tikz@do@arc |
| 12243 |
% |
| 12244 |
\let\pgfsetxvec=\pgfplots@setxvec@restorepgfpoint |
| 12245 |
\let\pgfsetyvec=\pgfplots@setyvec@restorepgfpoint |
| 12246 |
\let\pgfsetzvec=\pgfplots@setzvec@restorepgfpoint |
| 12247 |
}% |
| 12248 |
|
| 12249 |
\def\pgfplots@restorepgfpoint{% |
| 12250 |
\let\pgfpointxy=\pgfpointxy@orig |
| 12251 |
\let\pgfqpointxy=\pgfqpointxy@orig |
| 12252 |
\let\pgfpointxyz=\pgfpointxyz@orig |
| 12253 |
\let\pgfqpointxyz=\pgfqpointxyz@orig |
| 12254 |
\let\tikz@checkunit=\tikz@checkunit@orig |
| 12255 |
\let\pgfpointpolarxy=\pgfpointpolarxy@orig |
| 12256 |
\let\pgfpatharcaxes=\pgfpatharcaxes@orig |
| 12257 |
\let\tikz@do@arc=\tikz@do@arc@orig |
| 12258 |
}% |
| 12259 |
|
| 12260 |
\def\pgfplots@setxvec@restorepgfpoint#1{% |
| 12261 |
\pgfsetxvec@orig{#1}% |
| 12262 |
\pgfplots@restorepgfpoint |
| 12263 |
}% |
| 12264 |
\def\pgfplots@setyvec@restorepgfpoint#1{% |
| 12265 |
\pgfsetyvec@orig{#1}% |
| 12266 |
\pgfplots@restorepgfpoint |
| 12267 |
}% |
| 12268 |
\def\pgfplots@setzvec@restorepgfpoint#1{% |
| 12269 |
\pgfsetzvec@orig{#1}% |
| 12270 |
\pgfplots@restorepgfpoint |
| 12271 |
}% |
| 12272 |
|
| 12273 |
|
| 12274 |
\def\pgfplots@replace@path@commands{% |
| 12275 |
\let\pgfplots@orig@scope=\scope |
| 12276 |
\let\pgfplots@orig@endscope=\endscope |
| 12277 |
\let\scope=\pgfplots@replacement@for@scope |
| 12278 |
\let\endscope=\pgfplots@replacement@for@endscope |
| 12279 |
% |
| 12280 |
\let\pgfplots@orig@pgfonlayer=\pgfonlayer |
| 12281 |
\let\pgfplots@orig@endpgfonlayer=\endpgfonlayer |
| 12282 |
\let\pgfonlayer=\pgfplots@replacement@for@onlayer |
| 12283 |
\let\endpgfonlayer=\pgfplots@replacement@for@endonlayer |
| 12284 |
% |
| 12285 |
\let\pgfplots@orig@pgfplotsonlayer=\pgfplotsonlayer |
| 12286 |
\let\pgfplots@orig@endpgfplotsonlayer=\endpgfplotsonlayer |
| 12287 |
\let\pgfplotsonlayer=\pgfplots@replacement@for@onlayer |
| 12288 |
\let\endpgfplotsonlayer=\pgfplots@replacement@for@endonlayer |
| 12289 |
}% |
| 12290 |
|
| 12291 |
\def\pgfplots@restore@path@commands{% |
| 12292 |
% restore old \path command: |
| 12293 |
\let\path=\pgfplots@orig@path |
| 12294 |
\let\plot=\pgfplots@orig@plot |
| 12295 |
\let\scope=\pgfplots@orig@scope |
| 12296 |
\let\endscope=\pgfplots@orig@endscope |
| 12297 |
\let\pgfonlayer=\pgfplots@orig@pgfonlayer |
| 12298 |
\let\endpgfonlayer=\pgfplots@orig@endpgfonlayer |
| 12299 |
\let\pgfplotsonlayer=\pgfplots@orig@pgfplotsonlayer |
| 12300 |
\let\endpgfplotsonlayer=\pgfplots@orig@endpgfplotsonlayer |
| 12301 |
} |
| 12302 |
|
| 12303 |
% visualizes selected phases. |
| 12304 |
% |
| 12305 |
% #1 a comma-separated list of selected phases. May be empty. |
| 12306 |
% This is typically \pgfplots@visphase@names. The content will be |
| 12307 |
% expanded, i.e. it can be a macro. |
| 12308 |
\def\pgfplots@stored@plotlist@visualize@selected@phases#1{% |
| 12309 |
\begingroup |
| 12310 |
\def\pgfplotsaxisplotphase{V}% |
| 12311 |
\pgfplotsonlayer{\pgfkeysvalueof{/pgfplots/on layer}}{a plot or graphical element (or inherited from the axis)}% |
| 12312 |
\pgfkeysvalueof{/pgfplots/execute at begin plot visualization}% |
| 12313 |
\ifpgfplots@threedim |
| 12314 |
\else |
| 12315 |
% axis = 2d and plot=3d is forbidden here. |
| 12316 |
\pgfplots@curplot@threedimfalse |
| 12317 |
\fi |
| 12318 |
% |
| 12319 |
% |
| 12320 |
\pgfplots@LUA@visualization@init |
| 12321 |
% SIDE-effect: \ifpgfplots@LUA@backend@supported might have |
| 12322 |
% been switched to false here. |
| 12323 |
% |
| 12324 |
% |
| 12325 |
\pgfplots@execute@at@begin@plot@visualization@internal |
| 12326 |
% |
| 12327 |
\pgfplots@markers@prepare@layered@graphics@marks |
| 12328 |
% |
| 12329 |
\edef\pgfplots@current@phases{#1}% |
| 12330 |
% |
| 12331 |
% "boolean shouldExecuteClippedPart = \ifpgfplots@loc@tmp" |
| 12332 |
\pgfplots@loc@tmptrue |
| 12333 |
\ifx\pgfplots@current@phases\pgfutil@empty |
| 12334 |
\ifx\pgfplots@markers@visphase@name\pgfplots@markers@visphase@name@afterpath@clipped |
| 12335 |
% some special handling.... ok; start phase. |
| 12336 |
\else |
| 12337 |
\pgfplots@loc@tmpfalse |
| 12338 |
\fi |
| 12339 |
\fi |
| 12340 |
\ifpgfplots@loc@tmp |
| 12341 |
\expandafter\pgfplots@stored@plotlist@visualize@clippedpart\expandafter{\pgfplots@current@phases}% |
| 12342 |
\fi |
| 12343 |
% |
| 12344 |
\ifx\pgfplots@markers@visphase@name\pgfplots@markers@visphase@name@afterpath@unclipped |
| 12345 |
\scope[current plot style]% |
| 12346 |
\pgfplots@visphase@markers |
| 12347 |
\endscope |
| 12348 |
\fi |
| 12349 |
\pgfplots@execute@at@end@plot@visualization@internal |
| 12350 |
\pgfkeysvalueof{/pgfplots/execute at end plot visualization}% |
| 12351 |
\endpgfplotsonlayer |
| 12352 |
\endgroup |
| 12353 |
} |
| 12354 |
|
| 12355 |
% #1: the list of phases to execute. This excludes marker phases. |
| 12356 |
\def\pgfplots@stored@plotlist@visualize@clippedpart#1{% |
| 12357 |
\scope[current plot style] % this does set BOTH pgfplots and tikz options. |
| 12358 |
% |
| 12359 |
% do this here after options are set. |
| 12360 |
\pgfplots@initzerolevelhandler |
| 12361 |
% |
| 12362 |
% FIXME : what, precisely, was the motivation to use a |
| 12363 |
% scope here? It causes a lot of problems and |
| 12364 |
% work-arounds. Is it worth the effort!? |
| 12365 |
\ifpgfplots@clip |
| 12366 |
\if2\pgfplots@clipmode |
| 12367 |
% clip=true and 'clip mode=individual' |
| 12368 |
\pgfplots@clippath@install{\pgfusepath{clip}}% |
| 12369 |
\fi |
| 12370 |
\fi |
| 12371 |
% |
| 12372 |
\def\pgfplots@loc@TMPa{#1}% |
| 12373 |
\ifx\pgfplots@loc@TMPa\pgfutil@empty |
| 12374 |
% skip. there is a case in which this can happen and makes |
| 12375 |
% sense: if |
| 12376 |
% \pgfplots@markers@visphase@name=\pgfplots@markers@visphase@name@afterpath@clipped |
| 12377 |
\else |
| 12378 |
% Standard visualization phases. See |
| 12379 |
% \pgfplotssurveyphase@set@visphase@names for a discussion about |
| 12380 |
% their intended use-case. |
| 12381 |
\pgfplotsutilforeachcommasep{#1}\as\pgfplots@visphase@name{% |
| 12382 |
\begingroup |
| 12383 |
\pgfutil@ifundefined{pgfplots@visphase@\pgfplots@visphase@name}{% |
| 12384 |
\pgfplots@error{Illegal state encountered: unknown visualization phase \pgfplots@visphase@name}% |
| 12385 |
}{% |
| 12386 |
\csname pgfplots@visphase@\pgfplots@visphase@name\endcsname |
| 12387 |
}% |
| 12388 |
\endgroup |
| 12389 |
}% |
| 12390 |
\fi |
| 12391 |
% |
| 12392 |
% marker visualization phase (one of the available ones): |
| 12393 |
\ifx\pgfplots@markers@visphase@name\pgfplots@markers@visphase@name@afterpath@clipped |
| 12394 |
\pgfplots@visphase@markers |
| 12395 |
\fi |
| 12396 |
% |
| 12397 |
\endscope |
| 12398 |
}% |
| 12399 |
|
| 12400 |
\def\pgfplots@visphase@markers{% |
| 12401 |
\begingroup |
| 12402 |
\pgfplots@change@pgfpoints@to@axiscs |
| 12403 |
\pgfplots@markers@install@plotmark@handler |
| 12404 |
\let\pgfplots@visphase@name=\pgfplotsaxis@visphase@name@markers |
| 12405 |
\pgfplots@coord@stream@finalize@storedcoords@START |
| 12406 |
\endgroup |
| 12407 |
}% |
| 12408 |
|
| 12409 |
% Inside of an axis, the default coordinate system for any draw |
| 12410 |
% command should be (axis cs:1,2) instead of (1,2). Install that here: |
| 12411 |
% |
| 12412 |
% see \pgfplots@restorepgfpoint |
| 12413 |
\def\pgfplots@change@pgfpoints@to@axiscs{% |
| 12414 |
% |
| 12415 |
\ifpgfplots@substitute@pgfpoint |
| 12416 |
\let\pgfpointxy=\pgfplotspointaxisxy |
| 12417 |
\let\pgfpointxyz=\pgfplotspointaxisxyz |
| 12418 |
\let\pgfqpointxy=\pgfplotsqpointaxisxy |
| 12419 |
\let\pgfqpointxyz=\pgfplotsqpointaxisxyz |
| 12420 |
\let\pgfpatharcaxes=\pgfplots@patharcaxes |
| 12421 |
\let\pgfpointpolarxy=\pgfplots@pointpolarxy |
| 12422 |
\let\tikz@do@arc=\pgfplots@tikz@do@arc |
| 12423 |
% |
| 12424 |
% tikz checks for units before it calls \pgfpointxy . This must |
| 12425 |
% not suffer from TeX's math restrictions, so we have to use the |
| 12426 |
% FPU for this task. Patch the command as well: |
| 12427 |
\let\tikz@checkunit=\pgfplots@checkunit@fpu |
| 12428 |
\fi |
| 12429 |
}% |
| 12430 |
|
| 12431 |
\def\pgfplots@disable@directionmath{% |
| 12432 |
\def\pgfplotstransformdirectionx##1{\def\pgfmathresult{##1}}% |
| 12433 |
\let\pgfplotstransformdirectiony=\pgfplotstransformdirectionx |
| 12434 |
\let\pgfplotstransformdirectionz=\pgfplotstransformdirectionx |
| 12435 |
}% |
| 12436 |
|
| 12437 |
% As of compat=1.11, pgfplots has to accept the following syntax elements: |
| 12438 |
% |
| 12439 |
% \draw[green,thick,->] (0,-1) arc[radius=1, start angle= -90, end angle=-180]; |
| 12440 |
% \draw[green,thick,->] (0,-1) arc[radius=1cm, start angle= -90, end angle=-180]; |
| 12441 |
% \draw[green,thick,->] (0,-1) arc[radius={transformdirectionx(1)}, start angle= -90, end angle=-180]; |
| 12442 |
% |
| 12443 |
% all of them should work. The last one (transformdirectionx) is due |
| 12444 |
% to legacy compatibility. Since the 1.11 code handles these syntaxes |
| 12445 |
% automatically, 'transformdirectionx' will be ignored silently. |
| 12446 |
\def\pgfplots@tikz@do@arc#1#2#3#4{% |
| 12447 |
\begingroup |
| 12448 |
% strip 'transformdirectionx' if it occurs in the angles: |
| 12449 |
\pgfplots@disable@directionmath |
| 12450 |
\pgfmathparse{#3}% |
| 12451 |
\t@pgfplots@toka={\tikz@do@arc@orig{#1}{#2}}% |
| 12452 |
\edef\pgfplots@arc@x{% |
| 12453 |
\pgfmathresult |
| 12454 |
\ifpgfmathunitsdeclared pt\fi |
| 12455 |
}% |
| 12456 |
\pgfmathparse{#4}% |
| 12457 |
\xdef\pgfplots@arc@y{% |
| 12458 |
\pgfmathresult |
| 12459 |
\ifpgfmathunitsdeclared pt\fi |
| 12460 |
}% |
| 12461 |
% ok, invoke the TikZ command with the expanded args: |
| 12462 |
\xdef\pgfplots@glob@TMPa{\the\t@pgfplots@toka{\pgfplots@arc@x}{\pgfplots@arc@y}}% |
| 12463 |
\endgroup |
| 12464 |
\pgfplots@glob@TMPa |
| 12465 |
}% |
| 12466 |
|
| 12467 |
\def\pgfplots@polarxy@#1and #2\@@{% |
| 12468 |
\edef\pgfplots@polarxy@X{#1}% |
| 12469 |
\edef\pgfplots@polarxy@Y{#2}% |
| 12470 |
} |
| 12471 |
\def\pgfplots@pointpolarxy#1#2{% |
| 12472 |
\pgfutil@in@{and }{#2}% |
| 12473 |
\ifpgfutil@in@% |
| 12474 |
\pgfplots@polarxy@#2\@@% |
| 12475 |
\else% |
| 12476 |
\pgfplots@polarxy@#2and #2\@@% |
| 12477 |
\fi% |
| 12478 |
\pgfmathparse{#1}% |
| 12479 |
\let\pgfpoint@angle=\pgfmathresult% |
| 12480 |
\pgfmathcos@{\pgfpoint@angle}% |
| 12481 |
\let\pgfpoint@cos=\pgfmathresult |
| 12482 |
\pgfmathsin@{\pgfpoint@angle}% |
| 12483 |
\let\pgfpoint@sin=\pgfmathresult |
| 12484 |
% |
| 12485 |
\begingroup |
| 12486 |
\pgfplots@plot@coords@mathparsertrue |
| 12487 |
\pgf@process{% |
| 12488 |
\pgfplotspointaxisxyz{\pgfplots@polarxy@X*\pgfpoint@cos}{\pgfplots@polarxy@Y*\pgfpoint@sin}{0}% |
| 12489 |
}% |
| 12490 |
\endgroup |
| 12491 |
}% |
| 12492 |
|
| 12493 |
% #1 = angle of first point |
| 12494 |
% #2 = angle of second point |
| 12495 |
% #3 = first axis |
| 12496 |
% #4 = second axis |
| 12497 |
\def\pgfplots@patharcaxes#1#2#3#4{% |
| 12498 |
{% |
| 12499 |
% see docs of \pgfplots@tikz@do@arc for a motivation: |
| 12500 |
\pgfplots@disable@directionmath |
| 12501 |
% |
| 12502 |
% ok, now, evaluate the arcs. Since this implements |
| 12503 |
% 'substitute pgfpoint', we have to evaluate the angles via |
| 12504 |
% 'axis direction cs' ... |
| 12505 |
\let\pgfpointxy=\pgfplotspointaxisdirectionxy |
| 12506 |
\let\pgfpointxyz=\pgfplotspointaxisdirectionxyz |
| 12507 |
% |
| 12508 |
\pgftransformtriangle{\pgfpointorigin}{#3}{#4}% |
| 12509 |
% |
| 12510 |
% ... and the coordinates as such using 'axis cs': |
| 12511 |
\let\pgfpointxy=\pgfplotspointaxisxy |
| 12512 |
\let\pgfpointxyz=\pgfplotspointaxisxyz |
| 12513 |
% |
| 12514 |
\pgfpatharc{#1}{#2}{1pt}% |
| 12515 |
}% |
| 12516 |
}% |
| 12517 |
|
| 12518 |
\def\pgfplots@checkunit@fpu#1{% |
| 12519 |
\ifpgfplots@usefpu |
| 12520 |
\begingroup |
| 12521 |
\pgfkeys{/pgf/fpu, /pgf/fpu/output format/float}% |
| 12522 |
\tikz@checkunit@orig{#1}% |
| 12523 |
\pgfmathfloattofixed{\pgfmathresult}% |
| 12524 |
\xdef\pgfplots@glob@TMPd{% |
| 12525 |
\iftikz@isdimension |
| 12526 |
\noexpand\tikz@isdimensiontrue |
| 12527 |
\else |
| 12528 |
\noexpand\tikz@isdimensionfalse |
| 12529 |
\fi |
| 12530 |
\noexpand\def\noexpand\pgfmathresult{\pgfmathresult}% |
| 12531 |
}% |
| 12532 |
\endgroup |
| 12533 |
\pgfplots@glob@TMPd |
| 12534 |
\else |
| 12535 |
\tikz@checkunit@orig{#1}% |
| 12536 |
\fi |
| 12537 |
}% |
| 12538 |
|
| 12539 |
\def\pgfplots@execute@at@end@plot@visualization@internal{% |
| 12540 |
}% |
| 12541 |
|
| 12542 |
\def\pgfplots@beforenode{% |
| 12543 |
\pgfplots@sys@beforenode |
| 12544 |
}% |
| 12545 |
|
| 12546 |
% Now, we need to process all named nodes inside of our |
| 12547 |
% axis-image. |
| 12548 |
% |
| 12549 |
% The situation at this point is as follows: |
| 12550 |
% 1. the complete axis image has been "typeset" into a box. That |
| 12551 |
% means its coordinate system is LOST up to those variables |
| 12552 |
% which have been saved explicitly. |
| 12553 |
% |
| 12554 |
% 2. the \pgfmultipartnode above knows about all axis anchors and |
| 12555 |
% saved dimensions. |
| 12556 |
% |
| 12557 |
% 3. All sub-nodes don't know about their position any more. Any |
| 12558 |
% saved anchors are wrong. |
| 12559 |
% |
| 12560 |
% The approach: |
| 12561 |
% 1. we shift each named node's saved anchors such that it's |
| 12562 |
% coordinate is valid inside of the TeX box. |
| 12563 |
% |
| 12564 |
% 2. we also shift each named node's saved anchors to reflect the |
| 12565 |
% axis' anchor. |
| 12566 |
% |
| 12567 |
% Afterwards, everything should be fine. |
| 12568 |
\def\pgfplots@finally@correct@child@node@positions{% |
| 12569 |
\ifx\pgfplots@named@child@node@list\pgfutil@empty% |
| 12570 |
\else% |
| 12571 |
\begingroup |
| 12572 |
\pgftransformreset% FIXME: what's that for!? Copied from matrix code... |
| 12573 |
% |
| 12574 |
% Use the 'image' anchor here - the internal anchor |
| 12575 |
% transformation matrix already has the shift for |
| 12576 |
% \pgfplots@anchorname. |
| 12577 |
\pgfpointanchor{\tikz@fig@name}{image}% |
| 12578 |
\pgf@xa=\pgf@x |
| 12579 |
\pgf@xb=\pgf@y |
| 12580 |
\pgf@process{\pgfplotspointorigininternal}% |
| 12581 |
\advance\pgf@xa by-\pgf@x |
| 12582 |
\advance\pgf@xb by-\pgf@y |
| 12583 |
\global\pgf@x=\pgf@xa |
| 12584 |
\global\pgf@y=\pgf@xb |
| 12585 |
\edef\pgfplots@offset{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}% |
| 12586 |
\pgfplots@finally@correct@remembered@picture@positions |
| 12587 |
% |
| 12588 |
\pgfutil@for\pgfplots@child@node@name:=\pgfplots@named@child@node@list\do{% |
| 12589 |
\ifx\pgfplots@child@node@name\pgfutil@empty |
| 12590 |
\else |
| 12591 |
%\message{Attempting to correct '\pgfplots@child@node@name' position by \meaning\pgfplots@offset\space (the node is inside of an axis).}% |
| 12592 |
\expandafter\ifx\csname pgfplots@child@node@visited@\pgfplots@child@node@name\endcsname\relax% |
| 12593 |
\pgfutil@IfUndefined{pgf@sh@nt@\pgfplots@child@node@name}{% |
| 12594 |
\pgfplots@warning{could not adjust coordinates of named node '\pgfplots@child@node@name' for reasons I do not understand! After finishing the image, it did no longer exist!? Sorry.}% |
| 12595 |
}{% |
| 12596 |
\pgf@shift@node{\pgfplots@child@node@name}{\pgfplots@offset}% |
| 12597 |
\expandafter\let\csname pgfplots@child@node@visited@\pgfplots@child@node@name\endcsname=\pgfutil@empty% |
| 12598 |
}% |
| 12599 |
\fi |
| 12600 |
\fi |
| 12601 |
}% |
| 12602 |
\endgroup |
| 12603 |
\fi% |
| 12604 |
}% |
| 12605 |
|
| 12606 |
% The feature 'remember picture' relies on the global position of |
| 12607 |
% pgfpictures. |
| 12608 |
% |
| 12609 |
% If we have 'remember picture=true' and 'cell picture=true', that |
| 12610 |
% global position has been shifted as well. We have to correct it. |
| 12611 |
% |
| 12612 |
% This, in turn, requires to patch the .aux file. |
| 12613 |
% |
| 12614 |
% PRECONDITION: takes the offset \pgf@x,\pgf@y. |
| 12615 |
\def\pgfplots@finally@correct@remembered@picture@positions{% |
| 12616 |
% Note that the cell picture is already closed - but |
| 12617 |
% fortunately, we have saved its picture id. |
| 12618 |
\ifx\pgfplots@cell@pictureid\pgfutil@empty |
| 12619 |
% ah - no cell picture. OK; nothing to do. |
| 12620 |
\else |
| 12621 |
% ah - there WAS a cell picture ... |
| 12622 |
\pgfplots@cell@picture@remembered |
| 12623 |
\ifpgfrememberpicturepositiononpage |
| 12624 |
% ... AND it had its "remember picture" flag activated. |
| 12625 |
% |
| 12626 |
% It is task of |
| 12627 |
% \pgfplots@finally@correct@child@node@positions to |
| 12628 |
% express ALL node locations in terms of \pgfpictureid. |
| 12629 |
% |
| 12630 |
% So, we can simply replace the (already written) pdfmark |
| 12631 |
% of \pgfplots@cell@pictureid by that of \pgfpictureid |
| 12632 |
% (which, however, is NOT written because the picture is |
| 12633 |
% not finished). |
| 12634 |
% |
| 12635 |
% It will be written eventually because the outer picture |
| 12636 |
% will implicitly inherit |
| 12637 |
% \pgfrememberpicturepositiononpagetrue |
| 12638 |
% -> see all usages of \pgfplots@cell@picture@remembered |
| 12639 |
\begingroup |
| 12640 |
\edef\pgfplots@loc@TMPa{% |
| 12641 |
\noexpand\noexpand |
| 12642 |
\noexpand\pgfplotsreplacepdfmark |
| 12643 |
{\pgfplots@cell@pictureid}{\pgfpictureid}% |
| 12644 |
}% |
| 12645 |
\expandafter\write\expandafter\pgfutil@auxout\expandafter{\pgfplots@loc@TMPa}% |
| 12646 |
\endgroup |
| 12647 |
\fi |
| 12648 |
\fi |
| 12649 |
}% |
| 12650 |
|
| 12651 |
% Replaces the pdfmark for #1 by that of #2. |
| 12652 |
% |
| 12653 |
% Note that when this macro is executed (it resides in the .aux file), |
| 12654 |
% the pdfmark for #2 is typically UNDEFINED. |
| 12655 |
% |
| 12656 |
% #1: the pgfpictureid to modify |
| 12657 |
% #2: the pgfpictureid which contains the correct values |
| 12658 |
\def\pgfplotsreplacepdfmark#1#2{% |
| 12659 |
\pgfsys@getposition{#1}{\pgfplots@loc@TMPa}% |
| 12660 |
\ifx\pgfplots@loc@TMPa\relax |
| 12661 |
% hm. strange. Perhaps the driver does not support it? |
| 12662 |
\else |
| 12663 |
% Ok, make a "lazy replace": |
| 12664 |
\expandafter\let\expandafter\pgfplots@glob@TMPa\csname pgf@sys@pdf@mark@pos@#1\endcsname |
| 12665 |
\expandafter\global\expandafter\let\csname pgf@sys@pdf@mark@pos@#1@old\endcsname=\pgfplots@loc@TMPa% |
| 12666 |
% |
| 12667 |
\expandafter\gdef\csname pgf@sys@pdf@mark@pos@#1\endcsname{% |
| 12668 |
% this is the lazy replace, assuming knowledge about how |
| 12669 |
% pgf calls its internal structures :-/ |
| 12670 |
% |
| 12671 |
% If pgf changes its name, this macro will never be |
| 12672 |
% called and we do not hurt someone. |
| 12673 |
\pgfsys@getposition{#2}{\pgfplots@loc@TMPa}% |
| 12674 |
\ifx\pgfplots@loc@TMPa\relax |
| 12675 |
% oh - the picture if for #2 has no remembered name!? |
| 12676 |
% Perhaps something failed? |
| 12677 |
% try a fall-back. This will most fail (most |
| 12678 |
% probably). Issue a warning? |
| 12679 |
\csname pgf@sys@pdf@mark@pos@#1@old\endcsname |
| 12680 |
\else |
| 12681 |
% use #2: |
| 12682 |
\pgfplots@loc@TMPa |
| 12683 |
\fi |
| 12684 |
}% |
| 12685 |
\fi |
| 12686 |
}% |
| 12687 |
|
| 12688 |
\def\pgfplots@environment@axis{% |
| 12689 |
\pgfutil@ifnextchar[{\pgfplots@@environment@axis}{\pgfplots@@environment@axis[]}% |
| 12690 |
} |
| 12691 |
\def\endpgfplots@environment@axis{\endpgfplots@environment@opt} |
| 12692 |
\def\pgfplots@@environment@axis[#1]{% |
| 12693 |
\pgfplots@environment@opt[/pgfplots/xmode=linear,/pgfplots/ymode=linear,#1]% |
| 12694 |
} |
| 12695 |
|
| 12696 |
\def\pgfplots@environment@semilogxaxis{% |
| 12697 |
\pgfutil@ifnextchar[{\pgfplots@@environment@semilogxaxis}{\pgfplots@@environment@semilogxaxis[]}% |
| 12698 |
} |
| 12699 |
\def\endpgfplots@environment@semilogxaxis{\endpgfplots@environment@opt} |
| 12700 |
\def\pgfplots@@environment@semilogxaxis[#1]{% |
| 12701 |
\pgfplots@environment@opt[/pgfplots/xmode=log,/pgfplots/ymode=linear,#1]% |
| 12702 |
} |
| 12703 |
|
| 12704 |
\def\pgfplots@environment@semilogyaxis{% |
| 12705 |
\pgfutil@ifnextchar[{\pgfplots@@environment@semilogyaxis}{\pgfplots@@environment@semilogyaxis[]}% |
| 12706 |
} |
| 12707 |
\def\endpgfplots@environment@semilogyaxis{\endpgfplots@environment@opt} |
| 12708 |
\def\pgfplots@@environment@semilogyaxis[#1]{% |
| 12709 |
\pgfplots@environment@opt[/pgfplots/xmode=linear,/pgfplots/ymode=log,#1]% |
| 12710 |
} |
| 12711 |
|
| 12712 |
\def\pgfplots@environment@loglogaxis{% |
| 12713 |
\pgfutil@ifnextchar[{\pgfplots@@environment@loglogaxis}{\pgfplots@@environment@loglogaxis[]}% |
| 12714 |
} |
| 12715 |
\def\endpgfplots@environment@loglogaxis{\endpgfplots@environment@opt} |
| 12716 |
\def\pgfplots@@environment@loglogaxis[#1]{% |
| 12717 |
\pgfplots@environment@opt[/pgfplots/xmode=log,/pgfplots/ymode=log,#1]% |
| 12718 |
} |
| 12719 |
|
| 12720 |
|
| 12721 |
\pgfutil@IfUndefined{tikzaddtikzonlycommandshortcutlet}{% |
| 12722 |
\def\tikzaddtikzonlycommandshortcutlet#1#2{% |
| 12723 |
\expandafter\def\expandafter\tikz@installcommands\expandafter{\tikz@installcommands |
| 12724 |
\let#1=#2% |
| 12725 |
}% |
| 12726 |
}% |
| 12727 |
}{} |
| 12728 |
|
| 12729 |
\tikzaddtikzonlycommandshortcutlet\axis\pgfplots@environment@axis |
| 12730 |
\tikzaddtikzonlycommandshortcutlet\endaxis\endpgfplots@environment@axis |
| 12731 |
|
| 12732 |
\tikzaddtikzonlycommandshortcutlet\semilogxaxis\pgfplots@environment@semilogxaxis |
| 12733 |
\tikzaddtikzonlycommandshortcutlet\endsemilogxaxis\endpgfplots@environment@semilogxaxis |
| 12734 |
|
| 12735 |
\tikzaddtikzonlycommandshortcutlet\semilogyaxis\pgfplots@environment@semilogyaxis |
| 12736 |
\tikzaddtikzonlycommandshortcutlet\endsemilogyaxis\endpgfplots@environment@semilogyaxis |
| 12737 |
|
| 12738 |
\tikzaddtikzonlycommandshortcutlet\loglogaxis\pgfplots@environment@loglogaxis |
| 12739 |
\tikzaddtikzonlycommandshortcutlet\endloglogaxis\endpgfplots@environment@loglogaxis |
| 12740 |
|
| 12741 |
%\input pgfplots.multiaxis.code.tex |
| 12742 |
|
| 12743 |
\pgfplotsdefineaxistype{rectangle}{% |
| 12744 |
% do nothing, this is the default anyway. |
| 12745 |
}% |
| 12746 |
|
| 12747 |
\catcode`\;=\pgfplots@oldcatcodesemicolon |
| 12748 |
\catcode`\"=\pgfplots@oldcatcodedoublequote |