-
Notifications
You must be signed in to change notification settings - Fork 30
/
pgfplots.code.tex
12748 lines (12450 loc) · 475 KB
/
pgfplots.code.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%--------------------------------------------
%
% Package pgfplots
%
% Provides a user-friendly interface to create function plots (normal
% plots, semi-logplots and double-logplots).
%
% It is based on Till Tantau's PGF package.
%
% Copyright 2007-2013 by Christian Feuersänger.
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
%--------------------------------------------
\edef\pgfplots@oldcatcodesemicolon{\the\catcode`\;}%
\edef\pgfplots@oldcatcodedoublequote{\the\catcode`\"}%
\catcode`\;=12
\catcode`\"=12
\input pgfplotscore.code.tex
\input pgfplotslibrary.code.tex
\input pgfplotsoldpgfsupp_loader.code.tex
\input pgfplotsutil.code.tex
\input pgfplotscolormap.code.tex
\input pgfplotsstackedplots.code.tex
\input pgfplotsplothandlers.code.tex
\input pgfplots.scaling.code.tex
\input pgfplotscoordprocessing.code.tex
\input pgfplots.errorbars.code.tex
\input pgfplots.markers.code.tex
\input pgfplotsticks.code.tex
\input pgfplots.paths.code.tex
\usetikzlibrary{decorations,decorations.pathmorphing,decorations.pathreplacing}
\usepgfplotslibrary{contourlua}%
% FIXME: reduce number of variables!
\newif\ifpgfplots@bb@isactive
\newif\ifpgfplots@xislinear
\newif\ifpgfplots@has@label@information
\newif\ifpgfplots@yislinear
\newif\ifpgfplots@zislinear
\newif\ifpgfplots@reverse@legend
\newif\ifpgfplots@transpose@legend
\newif\ifpgfplots@allow@reversal@of@rel@axis@cs
\newif\ifpgfplots@scanline@verbose
\newif\ifpgfplots@plot@graphics@autoadjustaxis
\newif\ifpgfplots@scaleuniformly@warning
\newif\ifpgfplots@hide@obscured@xtick
\newif\ifpgfplots@hide@obscured@ytick
\newif\ifpgfplots@hide@obscured@ztick
\newif\ifpgfplots@enable@tick@line@clipping
\newcount\pgfplots@numplots
\newdimen\pgfplots@xmin@reg
\newdimen\pgfplots@xmax@reg
\newdimen\pgfplots@ymin@reg
\newdimen\pgfplots@ymax@reg
\newdimen\pgfplots@zmin@reg
\newdimen\pgfplots@zmax@reg
\newif\ifpgfplots@warn@for@filter@discards
\newif\ifpgfplots@isuniformtick
\newif\ifpgfplotsplothandlermesh@patch@type@sampling
\newif\ifpgfplots@clip@limits@compatmode
\newif\ifpgfplots@clip@limits@x
\newif\ifpgfplots@clip@limits@y
\newif\ifpgfplots@clip@limits@z
\newif\ifpgfplots@clip
\newif\ifpgfplots@plot@coords@mathparser
\pgfplots@plot@coords@mathparsertrue
\newif\ifpgfplots@enlargelimits
\newif\ifpgfplots@enlargelimits@respect@figure@size
\pgfplots@enlargelimits@respect@figure@sizetrue
\newif\ifpgfplots@enlargelimits@rel@thresh
\newif\ifpgfplots@enlargelimits@auto
\newif\ifpgfplots@tickshow
\newif\ifpgfplots@scatterplotenabled
\newif\ifpgfplots@xminorticks
\newif\ifpgfplots@xmajorticks
\newif\ifpgfplots@yminorticks
\newif\ifpgfplots@ymajorticks
\newif\ifpgfplots@zminorticks
\newif\ifpgfplots@zmajorticks
\newif\ifpgfplots@xminorgrids
\newif\ifpgfplots@xmajorgrids
\newif\ifpgfplots@yminorgrids
\newif\ifpgfplots@ymajorgrids
\newif\ifpgfplots@zminorgrids
\newif\ifpgfplots@zmajorgrids
\newif\ifpgfplots@clip@marker@paths
\newif\ifpgfplots@axis@on@top
\newif\ifpgfplots@separate@axis@lines
\newif\ifpgfplots@identify@log@minor@tick@pos
\newif\ifpgfplots@disablelogfilter@x
\newif\ifpgfplots@disablelogfilter@y
\newif\ifpgfplots@disablelogfilter@z
\newif\ifpgfplots@disabledatascaling
\newif\ifpgfplots@hide@x
\newif\ifpgfplots@hide@y
\newif\ifpgfplots@hide@z
\newif\ifpgfplots@shownothingof@x
\newif\ifpgfplots@shownothingof@y
\newif\ifpgfplots@shownothingof@z
\newif\ifpgfplots@is@old@list@format
\newif\ifpgfplots@errorbars@enabled
\newif\ifpgfplots@scale@only@axis
\newif\ifpgfplots@xticklabel@interval
\newif\ifpgfplots@yticklabel@interval
\newif\ifpgfplots@zticklabel@interval
\newif\ifpgfplots@stacked@reverse
\newif\ifpgfplots@stacked@plus
\newif\ifpgfplots@stacked@ignores@zero
\newif\ifpgfplots@plot@file@skipfirst
\newif\ifpgfplots@threedim
\newif\ifpgfplots@curplot@threedim
\newif\ifpgfplotsthreedim
\newif\ifpgfplots@curplot@isirrelevant
\newif\ifpgfplots@colorbar
\newif\ifpgfplots@deprecated@anchors
\newif\ifpgfplots@translategnuplot
\pgfplots@translategnuplottrue
\let\pgfnodepartimagebox=\pgfnodeparttextbox
\newif\ifpgfplotsplothandlermesh@internaldepth
\newif\ifpgfplotsplothandlermesh@hide@refined@edges
\newif\ifpgfplots@has@cell@picture
\newif\ifpgfplots@substitute@pgfpoint
\newif\ifpgfplots@LUA@backend@supported
\newif\ifpgfplots@threedim@log@sampling
\newif\ifpgfplots@collect@firstplot@astick
\newif\ifpgfplots@units@use
\def\pgfplots@errorbars@xdirection{0}% pre-init, see below
\def\pgfplots@errorbars@ydirection{0}%
\def\pgfplots@errorbars@zdirection{0}%
\def\axisdefaultwidth{240pt}
\def\axisdefaultheight{207pt}
\def\pgfplotsifaxisthreedim#1#2{\ifpgfplots@threedim #1\else #2\fi}%
\def\pgfplotsifcurplotthreedim#1#2{\ifpgfplots@curplot@threedim #1\else #2\fi}%
% Invokes '#2' if a cycle list named '#1' exists and '#3' if not.
\long\def\pgfplotsifcyclelistexists#1#2#3{%
\pgfutil@IfUndefined{pgfp@cyclist@\string#1@}{%
\pgfkeysifdefined{/pgfplots/cycle list/\string#1/.@cmd}{%
\pgfplotsthrow{cycle list instantiation needed}{#1}\pgfeov
% note that we cannot instantiate it lazily at this point :-(
}{}%
#3%
}{%
#2%
}%
}%
\def\pgfplots@label@upgrade@warning{%
\ifpgfplots@threedim
\pgfplotswarning{center lines upgrade required}\pgfeov%
\global\let\pgfplots@label@upgrade@warning=\relax
\fi
}%
% Creates a named plot cycle list.
%
% #1: the name of the final list. Can be used in 'cycle list name'
% #2: the list entries.
% It accepts the following formats:
% \pgfplotscreateplotcyclelist{name}{[of colormap]}%
% \pgfplotscreateplotcyclelist{name}{[of colormap=<colormap name>]}%
% \pgfplotscreateplotcyclelist{name}{[colors of colormap={<list> of <colormap name>}]}%
% \pgfplotscreateplotcyclelist{name}{[indices of colormap={<list> of <colormap name>}]}%
% \pgfplotscreateplotcyclelist{name}{[* of colormap as it is also available inside of colormap definitions]}
% \pgfplotscreateplotcyclelist{name}{comma-separated-list}
% \pgfplotscreateplotcyclelist{name}{'\\'-separated list(requires the last item to be terminated by '\\')}
\def\pgfplotscreateplotcyclelist#1#2{%
\pgfplotscreateplotcyclelist@check@specials{#1}{#2}#2\pgfplots@EOI%
}%
\def\pgfplotscreateplotcyclelist@check@specials#1#2{%
\pgfutil@ifnextchar[{%
\pgfplotscreateplotcyclelist@check@specials@{#1}%
}{%
\pgfplotscreateplotcyclelist@check@specials@@{#1}{#2}%
}%
}%
\def\pgfplotscreateplotcyclelist@check@specials@#1[#2]{%
% the 'of colormap' feature uses the very same functionality as
% the related functionality in colormap definitions.
% We only replace two routines:
%
\begingroup
\let\pgfplots@createcolormap@special@process@single@define=\pgfplots@createcolormap@special@process@single@define@CYCLE
\let\pgfplots@createcolormap@special@process@list@separator=\pgfplots@createcolormap@special@process@list@separator@CYCLE
\pgfplots@of@colormap@getresult{#2}%
\global\let\pgfplots@glob@TMPa=\pgfplotsretval
\endgroup
%
\t@pgfplots@tokb={#1}%
\t@pgfplots@toka=\expandafter{\pgfplots@glob@TMPa}%
\edef\pgfplots@loc@TMPa{\noexpand\pgfplotscreateplotcyclelist{\the\t@pgfplots@tokb}{\the\t@pgfplots@toka}}%
%\message{#2->^^J \meaning\pgfplots@loc@TMPa^^J}%
\pgfplots@loc@TMPa
%
% FIXME implement:
%--------------------------------------------------
% \ifnum\pgfplots@glob@TMPb>\pgfkeysvalueof{/pgfplots/@cycle/max size} %
% % cycle lists have quadratic runtime. Use small ones!
% \pgfplotswarning{cycle list size limit reached}\pgfeov
% \breakforeach
% \fi
%--------------------------------------------------
%
\pgfutil@ifnextchar\pgfplots@EOI{%
\pgfplots@gobble@until@EOI
}{%
\pgfplotscreateplotcyclelist@check@specials@gobble@error{#2}%
}%
}%
\def\pgfplotscreateplotcyclelist@check@specials@gobble@error#1#2\pgfplots@EOI{%
\t@pgfplots@tokb={[#1]}%
\t@pgfplots@toka={#2}%
\pgfplots@error{Encountered unexpected characters '\the\t@pgfplots@toka' after option '\the\t@pgfplots@tokb' in cycle list definition}%
}%
\def\pgfplotscreateplotcyclelist@check@specials@@#1#2#3\pgfplots@EOI{%
\expandafter\pgfplots@assign@list\csname pgfp@cyclist@\string#1@\endcsname{#2}%
}
\pgfqkeys{/pgfplots/@cycle}{%
max size/.initial=80,
}
\pgfplotscreateplotcyclelist{black white}{%
every mark/.append style={fill=gray},mark=*\\%
every mark/.append style={fill=gray},mark=square*\\%
every mark/.append style={fill=gray},mark=otimes*\\%
mark=star\\%
every mark/.append style={fill=gray},mark=diamond*\\%
densely dashed,every mark/.append style={solid,fill=gray},mark=*\\%
densely dashed,every mark/.append style={solid,fill=gray},mark=square*\\%
densely dashed,every mark/.append style={solid,fill=gray},mark=otimes*\\%
densely dashed,every mark/.append style={solid},mark=star\\%
densely dashed,every mark/.append style={solid,fill=gray},mark=diamond*\\%
}
\pgfplotscreateplotcyclelist{color}{%
blue,every mark/.append style={fill=blue!80!black},mark=*\\%
red,every mark/.append style={fill=red!80!black},mark=square*\\%
brown!60!black,every mark/.append style={fill=brown!80!black},mark=otimes*\\%
black,mark=star\\%
blue,every mark/.append style={fill=blue!80!black},mark=diamond*\\%
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=*\\%
brown!60!black,densely dashed,every mark/.append style={solid,fill=brown!80!black},mark=square*\\%
black,densely dashed,every mark/.append style={solid,fill=gray},mark=otimes*\\%
blue,densely dashed,mark=star,every mark/.append style=solid\\%
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=diamond*\\%
}
\pgfplotscreateplotcyclelist{linestyles}{solid,dashed,dotted}
\pgfplotscreateplotcyclelist{linestyles*}{solid,dashed,dotted,dashdotted,dashdotdotted}
\pgfplotscreateplotcyclelist{color list}{red,blue,black,yellow,brown,teal,orange,violet,cyan,green!70!black,magenta,gray}
\pgfplotscreateplotcyclelist{mark list}{%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=square*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=triangle*\\%
every mark/.append style={solid},mark=star\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=diamond*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill!40},mark=otimes*\\%
every mark/.append style={solid},mark=|\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=pentagon*\\%
every mark/.append style={solid},mark=text,text mark=p\\%
every mark/.append style={solid},mark=text,text mark=a\\%
}
\pgfplotscreateplotcyclelist{mark list*}{%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=square*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=triangle*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfsquare*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=pentagon*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfcircle*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill,rotate=180},mark=halfdiamond*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill!40},mark=otimes*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=diamond*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfsquare right*\\%
every mark/.append style={solid,fill=\pgfplots@mark@list@fill},mark=halfsquare left*\\%
}
\def\pgfplots@mark@list@fill{\pgfkeysvalueof{/pgfplots/mark list fill}}
\let\pgfplotsmarklistfill=\pgfplots@mark@list@fill
\pgfplotscreateplotcyclelist{exotic}{%
teal,every mark/.append style={fill=teal!80!black},mark=*\\%
orange,every mark/.append style={fill=orange!80!black},mark=square*\\%
cyan!60!black,every mark/.append style={fill=cyan!80!black},mark=otimes*\\%
red!70!white,mark=star\\%
lime!80!black,every mark/.append style={fill=lime},mark=diamond*\\%
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=*\\%
yellow!60!black,densely dashed,every mark/.append style={solid,fill=yellow!80!black},mark=square*\\%
black,every mark/.append style={solid,fill=gray},mark=otimes*\\%
blue,densely dashed,mark=star,every mark/.append style=solid\\%
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=diamond*\\%
}
% backwards compatibility:
\let\pgfcreateplotcyclelist=\pgfplotscreateplotcyclelist
\pgfplots@letcsname{pgfp@cyclist@\string\blackwhiteplotspeclist @}={pgfp@cyclist@black white@}%
\pgfplots@letcsname{pgfp@cyclist@\string\coloredplotspeclist @}={pgfp@cyclist@color@}%
%%%%
\def\pgfplotsdeprecatedstylecheck#1{%
\pgfkeysifdefined{#1/.@cmd}{%
\begingroup
\edef\pgfkeyscurrentkey{#1}%
\pgfkeyssplitpath
\pgfplots@warning{Loading deprecated style option
\pgfkeyscurrentpath/\pgfkeyscurrentname.
Please replace '\string\tikzstyle{\pgfkeyscurrentname}'
with '\string\pgfplotsset{\pgfkeyscurrentname/.style={}}'
(or '\string\pgfplotsset{\pgfkeyscurrentname/.append style={}}').}%
\endgroup
\pgfkeysvalueof{#1/.@cmd}\pgfeov
}{}%
}%
\def\pgfplots@scaled@ticks@setargs#1#2{%
\pgfutil@in@{:}{#2}%
\ifpgfutil@in@
\pgfplots@scaled@ticks@setargs@{#1}#2\pgfplots@EOI
\else
\expandafter\pgfutil@in@\expandafter{\pgfplots@activecolon}{#2}%
\ifpgfutil@in@
\pgfplots@scaled@ticks@setargs@active{#1}#2\pgfplots@EOI
\else
\pgfkeysalso{/pgfplots/scaled #1 ticks/#2}%
\fi
\fi
}%
\def\pgfplots@scaled@ticks@setargs@#1#2:#3\pgfplots@EOI{%
\pgfkeysalso{/pgfplots/scaled #1 ticks/#2=#3}%
}
{
\catcode`\:=\active
\gdef\pgfplots@scaled@ticks@setargs@active#1#2:#3\pgfplots@EOI{%
\pgfkeysalso{/pgfplots/scaled #1 ticks/#2=#3}%
}
}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@center\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@south west\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@south\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@south east\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@east\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@north east\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@north\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@north west\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@west\endcsname{1}
\expandafter\def\csname pgfplots@nodesnearcoordsalign@isanchor@baseline\endcsname{1}
% Sets the keys for /pgfplots/[xyz]ticklabel anchor.
% #1: one of [xyz]
% #2: the value
\def\pgfplots@setticklabel@anchor@for#1#2{%
\def\pgfplots@loc@TMPa{#2}%
\def\pgfplots@loc@TMPb{auto}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
\expandafter\def\csname pgfplots@ticklabel@anchor@#1\endcsname{0}%
\else
\def\pgfplots@loc@TMPb{near ticklabel}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
\expandafter\def\csname pgfplots@ticklabel@anchor@#1\endcsname{1}%
\else
\def\pgfplots@loc@TMPb{tikz}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
\expandafter\def\csname pgfplots@ticklabel@anchor@#1\endcsname{2}%
\else
\pgfplots@error{Sorry, I got an unexpected value for '#1ticklabel anchor': '#2'. Expected one of 'auto', 'near ticklabel' or 'tikz'.}%
\fi
\fi
\fi
}%
% Does the work for '[xyz]ticklabel pos'.
%
% #1: the axis (x,y or z).
% #2: the key argument. Accepts
% 'lower',
% 'upper',
% 'default' -> depends on 'tick pos'
% 'left' = 'lower',
% 'bottom' = 'lower',
% 'right' = 'upper'
% 'top' = 'upper'.
%
\def\pgfplots@setkey@ticklabelpos#1#2{%
\def\pgfplots@loc@TMPa{#2}%
\def\pgfplots@loc@TMPb{lower}%
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{l}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
% =lower
\else
\def\pgfplots@loc@TMPb{upper}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
% = upper
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{u}%
\else
\def\pgfplots@loc@TMPb{default}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
% = default
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{}%
\else
\def\pgfplots@loc@TMPb{left}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
% = left [ alias for 'lower' ]
\else
\def\pgfplots@loc@TMPb{right}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
% = right [ alias for 'upper' ]
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{u}%
\else
\def\pgfplots@loc@TMPb{bottom}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
% = bottom [ alias for 'lower' ]
\else
\def\pgfplots@loc@TMPb{top}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
% = top [ alias for 'upper' ]
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{u}%
\else
\expandafter\def\csname pgfplots@#1ticklabel@pos\endcsname{}%
\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?}%
\fi
\fi
\fi
\fi
\fi
\fi
\fi
}%
% Sets 'x dir={normal,reverse}'
% #1: an axis
% #2: the key's value to apply
\def\pgfplots@setkey@axisdir@for#1#2{%
\def\pgfplots@loc@TMPa{#2}%
\def\pgfplots@loc@TMPb{normal}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
\pgfkeyssetvalue{/pgfplots/#1 dir/value}{n}%
\else
\def\pgfplots@loc@TMPb{reverse}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
\pgfkeyssetvalue{/pgfplots/#1 dir/value}{r}%
\else
\pgfkeyssetvalue{/pgfplots/#1 dir/value}{n}%
\pgfplots@error{Sorry, the key '#1 dir' does not know what to do with '#2'... accepted values are 'normal' or 'reverse'.}%
\fi
\fi
}%
\def\pgfplots@meshmode{n}% none
\def\pgfplotsplothandlermesh@flatmode{m}% mean
\def\pgfplots@cycle@multi@list@EOI{\pgfplots@cycle@multi@list@EOI}%
\def\pgfplots@cycle@multi@list#1{%
\def\pgfplots@loc@TMPb{0}%
\gdef\pgfplots@cycle@multi@list@finalize@{}%
\pgfkeysinterruptkeyfilter
\pgfplots@cycle@multi@list@#1\nextlist\pgfplots@cycle@multi@list@EOI
\endpgfkeysinterruptkeyfilter
}%
\def\pgfplots@cycle@multi@list@#1\nextlist{%
\pgfkeys@spdef\pgfplots@loc@TMPa{#1}%
\ifx\pgfplots@loc@TMPa\pgfutil@empty
% ignore it if someone provided too many \nextlist commands.
\else
% parse and store list:
\begingroup
% this deals with control sequences inside of #1:
\pgfplots@command@to@string\pgfplots@loc@TMPa\pgfplots@as@string
\expandafter\pgfplots@cycle@multi@list@findnamed\pgfplots@as@string\pgfplots@EOI
\global\let\pgfplots@glob@TMPa=\pgfplots@loc@TMPa
\endgroup
\ifx\pgfplots@glob@TMPa\pgfutil@empty
% create it:
\pgfplotscreateplotcyclelist{/pgfplots/cycle multi list/@list\pgfplots@loc@TMPb}{#1}%
\else
% ok, take an existing one
\expandafter\let\csname pgfp@cyclist@/pgfplots/cycle multi list/@list\pgfplots@loc@TMPb @\endcsname=\pgfplots@glob@TMPa
\fi
\begingroup
\expandafter\pgfplotslistsize\csname pgfp@cyclist@/pgfplots/cycle multi list/@list\pgfplots@loc@TMPb @\endcsname\to\c@pgf@counta
\edef\pgfmathresult{\the\c@pgf@counta}%
\pgfmath@smuggleone\pgfmathresult
\endgroup
\pgfkeyslet{/pgfplots/cycle multi list/@totalN\pgfplots@loc@TMPb}\pgfmathresult
\pgfkeyslet{/pgfplots/cycle multi list/@N\pgfplots@loc@TMPb}\pgfmathresult
%\def\temp{#1}\message{cycle multi list/@list={\meaning\temp}; /@N\pgfplots@loc@TMPb = \pgfkeysvalueof{/pgfplots/cycle multi list/@N\pgfplots@loc@TMPb}^^J}%
\pgfplotsutil@advancestringcounter\pgfplots@loc@TMPb
\fi
%
\pgfutil@ifnextchar{\pgfplots@cycle@multi@list@EOI}{%
\pgfplots@cycle@multi@list@finalize
}{%
\pgfplots@cycle@multi@list@
}%
}%
\def\pgfplots@colormap@catcodemagic{colormap}
\pgfplots@command@to@string\pgfplots@colormap@catcodemagic\pgfplots@colormap@catcodemagic
% checks for
% - <known list>
% - [<elements> of]<known list>
% POSTCONDITION:
% 1. pgfplots@loc@TMPa will be \pgfutil@empty if there is no such
% list.
% 2. \pgfplots@loc@TMPa will be \let to the list if there is one.
% 3. \pgfplots@cycle@multi@list@finalize@ will contain any 'partial sublist'
% commands.
\def\pgfplots@cycle@multi@list@findnamed{\pgfutil@ifnextchar[{\pgfplots@cycle@multi@list@findnamed@}{\pgfplots@cycle@multi@list@findnamed@[]}}%
\def\pgfplots@cycle@multi@list@findnamed@[#1]#2\pgfplots@EOI{%
\def\pgfplots@loc@TMPa{#1}%
\pgfplots@loc@tmptrue
\ifx\pgfplots@loc@TMPa\pgfutil@empty
\else
\expandafter\pgfutil@in@\expandafter{\pgfplots@colormap@catcodemagic}{#1}%
\ifpgfutil@in@
% ups! This is actually one of
% [of colormap]
% [colors of colormap={...}]
% [indices of colormap={...}]
% which define a single cycle list! This is not what we aim
% for. Abort
\let\pgfplots@loc@TMPa=\pgfutil@empty
\pgfplots@loc@tmpfalse
\else
\pgfplots@cycle@multi@list@findnamed@@#1 \pgfplots@EOI
\fi
\fi
%
\ifpgfplots@loc@tmp
\pgfplotsifcyclelistexists{#2}{%
\expandafter\let\expandafter\pgfplots@loc@TMPa\csname pgfp@cyclist@\string#2@\endcsname%
}{%
\let\pgfplots@loc@TMPa=\pgfutil@empty
}%
\fi
}
% #1: <elements> (an integer)
\def\pgfplots@cycle@multi@list@findnamed@@#1 {%
\pgfutil@ifnextchar o
{\pgfplots@cycle@multi@list@findnamed@@@{#1}}%
{\pgfplots@cycle@multi@list@findnamed@@@{#1}of}%
}%
\def\pgfplots@cycle@multi@list@findnamed@@@#1of#2\pgfplots@EOI{%
\begingroup
\t@pgfplots@toka=\expandafter{\pgfplots@cycle@multi@list@finalize@}%
\t@pgfplots@tokb={#1}%
\xdef\pgfplots@cycle@multi@list@finalize@{\the\t@pgfplots@toka
\noexpand\pgfkeys{/pgfplots/cycle multi list/partial sublist={\pgfplots@loc@TMPb}{\the\t@pgfplots@tokb}}%
}%
\endgroup
}
\def\pgfplots@cycle@multi@list@finalize\pgfplots@cycle@multi@list@EOI{%
\pgfkeyslet{/pgfplots/cycle multi list/@dim}\pgfplots@loc@TMPb
\pgfplots@cycle@multi@list@finalize@
\c@pgf@countd=0 %
\c@pgf@counta=0 %
\pgfplotsloop{%
\ifnum\c@pgf@counta<\pgfplots@loc@TMPb\relax
\pgfplotsloopcontinuetrue
\else
\pgfplotsloopcontinuefalse
\fi
}{%
\pgfkeysgetvalue{/pgfplots/cycle multi list/@N\the\c@pgf@counta}\pgfplots@cycle@N
\ifnum\c@pgf@countd<\pgfplots@cycle@N\relax
\c@pgf@countd=\pgfplots@cycle@N\relax
\fi
\advance\c@pgf@counta by1
}%
\edef\pgfplots@loc@TMPd{\the\c@pgf@countd}%
\pgfkeyslet{/pgfplots/cycle multi list/@maxlen}\pgfplots@loc@TMPd
%\message{cycle multi list/@maxlen=\pgfplots@loc@TMPd^^J}%
}%
\def\pgfplots@pgfkeys@set@point@meta@value#1{%
%
\pgfutil@in@{=}{#1}%
\ifpgfutil@in@
\def\pgfplots@loc@TMPa##1=##2\pgfplots@EOI{%
% remove spaces from ##1 and ##2:
\pgfkeys@spdef\pgfplots@loc@TMPa{##1}%
\pgfkeys@spdef\pgfplots@loc@TMPb{##2}%
%
% check if the argument is known:
\pgfkeysifdefined{/pgfplots/point meta/\pgfplots@loc@TMPa/.@cmd}{%
\def\pgfplots@loc@TMPc{%
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/\pgfplots@loc@TMPa/.@cmd}%
}%
\expandafter\pgfplots@loc@TMPc\expandafter{\pgfplots@loc@TMPb}%
}{%
% oh, then it will be a math expression.
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/expr/.@cmd}{#1}%
}%
}%
% disassemble key'='value:
\pgfplots@loc@TMPa#1\pgfplots@EOI
\else
% the following code allows
% 'point meta=\thisrow{xcol}' even though
% \thisrow might be undefined in the context where keys are set.
% I convert the argument to a string.
\def\pgfplots@loc@TMPa{#1}%
\pgfplots@command@to@string\pgfplots@loc@TMPa\pgfplots@loc@TMPb
%
\pgfkeysifdefined{/pgfplots/point meta/\pgfplots@loc@TMPb/.@cmd}{%
% ok, use it!
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/\pgfplots@loc@TMPb/.@cmd}{}%
}{%
% oh, then it will be a math expression.
\pgfplots@invoke@pgfkeyscode{/pgfplots/point meta/expr/.@cmd}{#1}%
}%
\fi
%
%
}%
\def\pgfplots@color@of@colormap@parse#1{%
\pgfutil@in@{of }{#1}%
\ifpgfutil@in@
\pgfplots@color@of@colormap@parse@in#1\pgfplots@EOI
\else
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@color@of@colormap@name
\edef\pgfplots@color@of@colormap@value{#1}%
\fi
}%
\def\pgfplots@color@of@colormap@parse@in#1of #2\pgfplots@EOI{%
\pgfkeys@spdef\pgfplots@color@of@colormap@value{#1}%
\edef\pgfplots@color@of@colormap@value{\pgfplots@color@of@colormap@value}%
\pgfkeys@spdef\pgfplots@color@of@colormap@name{#2}%
}
% defines
% - \pgfmathresult to be the resulting color.
% - \pgfplots@color@of@colormap@name the name of the colormap
\def\pgfplots@color@of@colormap@define#1{%
\pgfplots@color@of@colormap@parse{#1}%
%
\pgfplotscolormapifdefined{\pgfplots@color@of@colormap@name}{}{%
% hm... the colormap does not exist? Perhaps someone used '4 of colormap/cool'. Try to define it!
\pgfkeysifdefined{/pgfplots/\pgfplots@color@of@colormap@name/.@cmd}{%
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@color@of@colormap@name@old
\pgfplotsset{\pgfplots@color@of@colormap@name}%
\pgfkeysgetvalue{/pgfplots/colormap name}\pgfplots@color@of@colormap@name
\pgfkeyslet{/pgfplots/colormap name}\pgfplots@color@of@colormap@name@old
}{%
% let it run into an error...
}%
}%
%
\if m\pgfplots@color@of@colormap@access
% colormap access=map
\expandafter\pgfplotscolormapfind\expandafter[\pgfplotspointmetatransformedrange]%
{\pgfplots@color@of@colormap@value}%
{\pgfplots@color@of@colormap@name}%
\else
\if c\pgfplots@color@of@colormap@access
% colormap access=piecewise constant
\expandafter\pgfplotscolormapfindpiecewiseconst\expandafter[\pgfplotspointmetatransformedrange]%
{\pgfplots@color@of@colormap@value}%
{\pgfplots@color@of@colormap@name}%
\else
% colormap access=direct
\pgfplotscolormapgetindex{\pgfplots@color@of@colormap@value}{\pgfplots@color@of@colormap@name}%
\fi
\fi
}%
\def\pgfplots@createcolormap@special@process@list@separator@CYCLE{\\}%
\def\pgfplots@createcolormap@special@process@single@define@CYCLE{%
\edef\pgfplotsretval{%
/tikz/color/.define=%
{.}%
{\csname pgfpl@cm@\pgfkeysvalueof{/pgfplots/colormap name}@colspace\endcsname}%
{\pgfmathresult},%
/tikz/color=.,%
}%
}%
\def\pgfplots@color@of@colormap#1{%
\begingroup
\def\pgfplots@createcolormap@special@process@single@define{%
\edef\pgfplotsretval{%
\noexpand\pgfutil@definecolor{.}{\csname pgfpl@cm@\pgfkeysvalueof{/pgfplots/colormap name}@colspace\endcsname}{\pgfmathresult}%
}%
\let\pgfplots@createcolormap@special@process@single@define=\relax
}%
\pgfplots@of@colormap@getresult{#1}%
\global\let\pgfplots@glob@TMPa=\pgfplotsretval
\endgroup
\pgfplots@glob@TMPa
\tikzset{color=.}%
%\pgfplots@color@of@colormap@define{#1}%
%\def\pgfplots@loc@TMPb{\pgfutil@definecolor{.}{\csname pgfpl@cm@\pgfplots@color@of@colormap@name @colspace\endcsname}}%
%\expandafter\pgfplots@loc@TMPb\expandafter{\pgfmathresult}%
%\tikzset{color=.}%
}
\newif\ifpgfplots@stackedmode
\newif\ifpgfplotsplothandlermesh@shownormals
\pgfkeys{%
% <key name>/.define layer set={<layer list>}{<style definition>}
/handlers/.define layer set/.code 2 args={%
\pgfkeyssetvalue{\pgfkeyscurrentpath/list}{#1}%
\pgfkeysdef{\pgfkeyscurrentpath}{\pgfkeysalso{#2}}%
}%
}
\newif\ifpgfplots@LUA@fail@on@TeX@fallback
\def\pgfplots@LUA@loglevel@info{4}
\def\pgfplots@LUA@loglevel@debug{5}
\pgfkeys{%
/pgfplots/search path for tikz/.search also={/tikz,/pgfplots},
/pgfplots/.is family,
/pgfplots/scale/.is family,
/pgfplots/legend/.is family,
/pgfplots/tick/.is family,
/pgfplots/axis/.is family,
/pgfplots/descriptions/.is family,
/pgfplots/style commands/.is family,
/pgfplots/naming commands/.is family,
/pgfplots/shared with tikz/.is family,
/pgfplots/error bars/.is family,
%
% pgfplots uses the following (implicit) layers:
% context: & associated layer name: \\
% background path & axis background \\
% grid lines & axis grid \\
% tick lines & axis ticks \\
% axis lines & axis lines \\
% tick labels & axis tick labels \\
% plots & main \\
% axis descriptions & axis descriptions \\
% plot marks & (see 'mark layer')\\
% the 'axis on top' key will change that order by moving all plot- and mark-related paths upwards (they are drawn earlier).
% None of these layers is mandatory; each can be omitted.
% The magic layer name 'discard' can be used as /dev/null layer.
%
% the <layer set name> must be defined
% set layers={<layer set name>}
/pgfplots/set layers/.code={%
\def\pgfplots@loc@TMPa{#1}%
\def\pgfplots@loc@TMPb{none}%
\ifx\pgfplots@loc@TMPa\pgfplots@loc@TMPb
\pgfkeysalso{%
/pgfplots/activate layers=false,
/pgfplots/set layers*={},
}%
\else
\pgfkeysalso{%
/pgfplots/activate layers=true,
/pgfplots/set layers*={#1},
}%
\pgfplotsifinaxis{%
\pgfkeysalso{/pgfplots/cell picture=if necessary}%
}{%
% we wrote it outside of an axis. In this case, we can
% assume that it prepares multiple axis - which
% REQUIRES to disable cell pictures.
\pgfkeysalso{/pgfplots/cell picture=false}%
}%
\fi
},
% 'activate layers=false' is the same as 'set layers=none'.
% However, 'activate layers=true' does not work unless a 'set layers'
% has been installed as well.
/pgfplots/activate layers/.is if=pgfplots@layered@graphics,
/pgfplots/activate layers/.default=true,
/pgfplots/set layers*/.code=\pgfplots@key@set@layers{#1},
/pgfplots/set layers*/.default={/pgfplots/layers/standard},
/pgfplots/@set layers arg/.initial=,
/pgfplots/layers/.search also=/pgfplots,
/pgfplots/layers/standard/.define layer set={axis background,axis grid,axis ticks,axis lines,axis tick labels,pre main,main,axis descriptions,axis foreground}{
grid style= {/pgfplots/on layer=axis grid},
tick style= {/pgfplots/on layer=axis ticks},
axis line style= {/pgfplots/on layer=axis lines},
label style= {/pgfplots/on layer=axis descriptions},
legend style= {/pgfplots/on layer=axis descriptions},
title style= {/pgfplots/on layer=axis descriptions},
colorbar style= {/pgfplots/on layer=axis descriptions},
ticklabel style= {/pgfplots/on layer=axis tick labels},
axis background@ style={/pgfplots/on layer=axis background},
3d box foreground style={/pgfplots/on layer=axis foreground},
},
/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}{
/pgfplots/layers/standard
},
/pgfplots/on layer/.initial=,
% mark layer can be 'auto', 'like plot', or a layer name.
/pgfplots/mark layer/.initial=,
/pgfplots/lua backend/.is if=pgfplots@LUA@backend@supported,
/pgfplots/lua backend/.default=true,
%
/pgfplots/lua debug/.code={%
\pgfqkeys{/pgfplots/lua debug}{#1}%
},
/pgfplots/lua debug/false/.style={/pgfplots/lua debug/off},%
/pgfplots/lua debug/off/.code={%
\def\pgfplots@LUA@backend@debugmode{off}%
\def\pgfplots@LUA@loglevel@debug{5}%
\def\pgfplots@LUA@loglevel@info{4}%
\pgfplots@LUA@fail@on@TeX@fallbackfalse
},
/pgfplots/lua debug/off and silent/.code={%
\def\pgfplots@LUA@backend@debugmode{off and silent}%
\def\pgfplots@LUA@loglevel@debug{5}%
\def\pgfplots@LUA@loglevel@info{5}%
\pgfplots@LUA@fail@on@TeX@fallbackfalse
},
%
/pgfplots/lua debug/verbose/.code={%
\def\pgfplots@LUA@backend@debugmode{verbose}%
\def\pgfplots@LUA@loglevel@debug{4}%
\def\pgfplots@LUA@loglevel@info{4}%
\pgfplots@LUA@fail@on@TeX@fallbackfalse
},
/pgfplots/lua debug/trace/.code={%
\let\pgfplotsutil@directlua=\pgfplotsutil@directlua@trace
},%
/pgfplots/lua debug/compileerror/.code={%
\def\pgfplots@LUA@backend@debugmode{compileerror}%
\def\pgfplots@LUA@loglevel@debug{4}%
\def\pgfplots@LUA@loglevel@info{4}%
\pgfplots@LUA@fail@on@TeX@fallbacktrue
},
/pgfplots/lua debug/.default=verbose,
/pgfplots/lua debug=off,
/pgfplots/every axis/.style={},
/pgfplots/every axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis}},
/pgfplots/every axis/.belongs to family=/pgfplots/style commands,
/pgfplots/every axis post/.style={},
/pgfplots/every axis post/.belongs to family=/pgfplots/scale,
/pgfplots/every semilogx axis/.style={},
/pgfplots/every semilogx axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every semilogx axis}},
/pgfplots/every semilogx axis/.belongs to family=/pgfplots/style commands,
/pgfplots/every semilogy axis/.style={},
/pgfplots/every semilogy axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every semilogy axis}},
/pgfplots/every semilogy axis/.belongs to family=/pgfplots/style commands,
/pgfplots/every loglog axis/.style={},
/pgfplots/every loglog axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every loglog axis}},
/pgfplots/every loglog axis/.belongs to family=/pgfplots/style commands,
/pgfplots/every linear axis/.style={},
/pgfplots/every linear axis/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every linear axis}},
/pgfplots/every linear axis/.belongs to family=/pgfplots/style commands,
/pgfplots/every axis plot/.style={},
/pgfplots/every axis plot/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis plot}},
/pgfplots/every axis plot/.belongs to family=/pgfplots/style commands,
/pgfplots/every axis plot except legend/.style={},
/pgfplots/every axis plot except legend/.belongs to family=/pgfplots/style commands,
/pgfplots/axis plot except legend style/.style={/pgfplots/every axis plot except legend/.append style={#1}},
/pgfplots/every axis plot post/.style={},
/pgfplots/every axis plot post/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis plot}},
/pgfplots/trig format plots/.is choice,
/pgfplots/trig format plots/deg/.code={\def\pgfplots@set@trig@format@plots{\pgfkeys{/pgf/trig format=deg}}},%
/pgfplots/trig format plots/rad/.code={\def\pgfplots@set@trig@format@plots{\pgfkeys{/pgf/trig format=rad}}},%
/pgfplots/trig format plots/default/.code={\let\pgfplots@set@trig@format@plots=\relax},%
/pgfplots/trig format plots/default,
/pgfplots/no marks/.style={/pgfplots/no markers},
/pgfplots/no markers/.style={/pgfplots/every axis plot post/.append style={mark=none}},
/pgfplots/every axis label/.style={},
/pgfplots/every axis label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis label}},
/pgfplots/every axis label/.belongs to family=/pgfplots/descriptions,
/pgfplots/xlabel near ticks/.style={%
/pgfplots/every axis x label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},%
/pgfplots/every x tick scale label/.style={at={(xticklabel cs:0.9,5pt)},anchor=near xticklabel,inner sep=0pt},
},%
/pgfplots/xlabel absolute/.style={%
/pgfplots/every axis x label/.style={at={(0.5,0)},below,yshift=-15pt},%
/pgfplots/every x tick scale label/.style={at={(1,0)},yshift=-2em,left,inner sep=0pt},
},%
/pgfplots/every axis x label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis x label}},
/pgfplots/every axis x label/.belongs to family=/pgfplots/descriptions,
%
/pgfplots/ylabel near ticks/.style={%
/pgfplots/every axis y label/.style={at={(ticklabel cs:0.5)},rotate=90,anchor=near ticklabel},%
/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},
},%
/pgfplots/ylabel absolute/.style={%
/pgfplots/every axis y label/.style={at={(0,0.5)},xshift=-35pt,rotate=90},
/pgfplots/every y tick scale label/.style={at={(0,1)},above right,inner sep=0pt,yshift=0.3em},
},%
/pgfplots/every axis y label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis y label}},
/pgfplots/every axis y label/.belongs to family=/pgfplots/descriptions,
/pgfplots/every axis z label/.style={at={(ticklabel cs:0.5)},rotate=90, anchor=near ticklabel},
/pgfplots/every axis z label/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis z label}},
/pgfplots/every axis z label/.belongs to family=/pgfplots/descriptions,
/pgfplots/every 3d description/.style={%
/pgfplots/every axis x label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},%
/pgfplots/every axis y label/.style={at={(ticklabel cs:0.5)},anchor=near ticklabel},%
/pgfplots/every x tick scale label/.style={at={(xticklabel cs:0.95,5pt)},anchor=near xticklabel,inner sep=0pt},
/pgfplots/every y tick scale label/.style={at={(yticklabel cs:0.95,5pt)},anchor=near yticklabel,inner sep=0pt},
/pgfplots/try min ticks=3,%
},%
/pgfplots/every 3d view {0}{90}/.style={%
/pgfplots/xlabel near ticks,%
/pgfplots/ylabel near ticks,%
/pgfplots/axis on top=true,%
},%
% will be defined in \pgfplotspoint@initialisation:
%/tikz/sloped like x axis/.code={...},%
/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)}},%
/pgfplots/every axis title shift/.initial=6pt,
/pgfplots/every axis title/.style={at={(0.5,1)},above,yshift=\pgfkeysvalueof{/pgfplots/every axis title shift}},
/pgfplots/every axis title/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every axis title}},
/pgfplots/every axis title/.belongs to family=/pgfplots/descriptions,
/pgfplots/every tick/.style={very thin,gray},
/pgfplots/every tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every tick}},
/pgfplots/every tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every inner x axis line/.style={},
/pgfplots/every inner y axis line/.style={},
/pgfplots/every inner z axis line/.style={},
/pgfplots/every outer x axis line/.style={},
/pgfplots/every outer y axis line/.style={},
/pgfplots/every outer z axis line/.style={},
/pgfplots/x axis line style/.style={
/pgfplots/every outer x axis line/.append style={#1},
/pgfplots/every inner x axis line/.append style={#1},
},
/pgfplots/y axis line style/.style={
/pgfplots/every outer y axis line/.append style={#1},
/pgfplots/every inner y axis line/.append style={#1},
},
/pgfplots/z axis line style/.style={
/pgfplots/every outer z axis line/.append style={#1},
/pgfplots/every inner z axis line/.append style={#1},
},
/pgfplots/outer axis line style/.style={
/pgfplots/every outer x axis line/.append style={#1},
/pgfplots/every outer y axis line/.append style={#1},%
/pgfplots/every outer z axis line/.append style={#1}%
},
/pgfplots/inner axis line style/.style={
/pgfplots/every inner x axis line/.append style={#1},
/pgfplots/every inner y axis line/.append style={#1},%
/pgfplots/every inner z axis line/.append style={#1}%
},
/pgfplots/axis line style/.style={
/pgfplots/inner axis line style={#1},
/pgfplots/outer axis line style={#1}%
},
/pgfplots/separate axis lines/.is if=pgfplots@separate@axis@lines,
/pgfplots/separate axis lines/.default=true,
/pgfplots/every minor tick/.style={},
/pgfplots/every minor tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor tick}},
/pgfplots/every minor tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every major tick/.style={},
/pgfplots/every major tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major tick}},
/pgfplots/every major tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every x tick/.style={},
/pgfplots/every x tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every x tick}},
/pgfplots/every x tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every minor x tick/.style={},
/pgfplots/every minor x tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor x tick}},
/pgfplots/every minor x tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every major x tick/.style={},
/pgfplots/every major x tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major x tick}},
/pgfplots/every major x tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every y tick/.style={},
/pgfplots/every y tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every y tick}},
/pgfplots/every y tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every minor y tick/.style={},
/pgfplots/every minor y tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor y tick}},
/pgfplots/every minor y tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every major y tick/.style={},
/pgfplots/every major y tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major y tick}},
/pgfplots/every major y tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every z tick/.style={},
/pgfplots/every z tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every z tick}},
/pgfplots/every z tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every minor z tick/.style={},
/pgfplots/every minor z tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every minor z tick}},
/pgfplots/every minor z tick/.belongs to family=/pgfplots/style commands,
/pgfplots/every major z tick/.style={},
/pgfplots/every major z tick/.append code={\pgfplotsdeprecatedstylecheck{/tikz/every major z tick}},
/pgfplots/every major z tick/.belongs to family=/pgfplots/style commands,