blob: ffcbc45cf1ef1cfa64fb9c115fb6f2c8a164e01d (
plain)
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
|
%--------------------------------------------
%
% Package pgfplots.sty
%
% 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/>.
%
%--------------------------------------------
\IfFileExists{pgfplots.revision.tex}{\input pgfplots.revision.tex } {%
\def\pgfplotsrevision{0}%
\def\pgfplotsversion{0.0}%
\def\pgfplotsversiondatetime{2014-07-01 00:00:00 +100}%
\def\pgfplotsrevisiondatetime{2014-07-01 00:00:00 +100}%
\def\pgfplotsversiondate{2014/07/01}%
\def\pgfplotsrevisiondate{2014/07/01}%
}
\ProvidesPackage{pgfplots}[\pgfplotsversiondate\space v\pgfplotsversion\space Data Visualization (\pgfplotsrevision)]
\RequirePackage{graphicx}
% ATTENTION:
% you MAY need one of
% \def\pgfsysdriver{pgfsys-dvipdfm.def}
% \def\pgfsysdriver{pgfsys-pdftex.def}
% \def\pgfsysdriver{pgfsys-dvips.def}
%
% BEFORE the first \usepackage{pgf}, \usepackage{tikz} or
% \usepackage{pgfplots}.
% Default is
% 'dvips' for 'latex'
% 'pdftex' for 'pdflatex'
% -> dvipdfm needs special attention.
\IfFileExists{pgfsys-luatex.def}{%
% OK, proceed as usual
}{%
% hm. check if we need it:
\def\pgfplots@glob@TMPa{luatex.def}%
\edef\pgfplots@glob@TMPb{\Gin@driver}%
\ifx\pgfplots@glob@TMPb\pgfplots@glob@TMPa
% hm. probably
\@ifundefined{pgfsysdriver}{%
% use a patch shipped with pgfplots:
\def\pgfsysdriver{pgfsys-luatexpatch.def}%
\immediate\write16{Package pgfplots external lib: activating patch for pgfsys-luatex.def driver (PGF is too old)}
}{%
\def\pgfplots@glob@TMPa{pgfsys-luatex.def}%
\ifx\pgfsysdriver\pgfplots@glob@TMPa
% use a patch shipped with pgfplots:
\def\pgfsysdriver{pgfsys-luatexpatch.def}%
\immediate\write16{Package pgfplots external lib: activating patch for pgfsys-luatex.def driver (PGF is too old)}
\fi
}%
\fi
}
\RequirePackage{tikz}
% This is *identical* to \pgfutil@IfUndefined . I copied it here
% because pgf up to and including version 2.10 does not contain it.
\def\pgfplotsutil@IfUndefined#1{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname#1\endcsname\relax
\expandafter\pgfutil@firstoftwo
\else
\expandafter\pgfutil@secondoftwo
\fi
}
\gdef\pgfplots@glob@TMPa{}%
\pgfplotsutil@IfUndefined{directlua}{}{%
\pgfplotsutil@IfUndefined{newcatcodetable}{%
% I need \newcatcodetable
\gdef\pgfplots@glob@TMPa{\RequirePackage{luatexbase}}%
}
}%
\ifx\pgfplots@glob@TMPa\pgfutil@empty
\else
\expandafter\pgfplots@glob@TMPa
\fi
\def\pgfplots@texdist@protect{\protect}%
\input pgfplots.code.tex
% checks for xcolor configuration options and will override
% mesh/colorspace explicit color output
% and
% colormap default colorspace
% if needed.
\def\pgfplots@check@global@colorspace@overrides{%
% "bOverridesColorspace"
\pgfplots@loc@tmpfalse
\ifconvertcolorsD
% xcolor converts at *definition* time:
\pgfplots@loc@tmptrue
\else
\ifconvertcolorsU
% xcolor converts at *usage* time:
\pgfplots@loc@tmptrue
\fi
\fi
%
\ifpgfplots@loc@tmp
\let\pgfplots@loc@TMPb=\pgfutil@empty%
\ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@rgb \def\pgfplots@loc@TMPb{rgb}\fi
\ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@RGB \def\pgfplots@loc@TMPb{rgb}\fi
\ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@cmyk\def\pgfplots@loc@TMPb{cmyk}\fi
\ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@cmy \def\pgfplots@loc@TMPb{cmyk}\fi
\ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@gray \def\pgfplots@loc@TMPb{gray}\fi
\ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@Gray \def\pgfplots@loc@TMPb{gray}\fi
%
\ifx\pgfplots@loc@TMPb\pgfutil@empty
\else
\edef\pgfplots@loc@TMPa{%
mesh/colorspace explicit color output=\pgfplots@loc@TMPb,%
colormap default colorspace=\pgfplots@loc@TMPb,%
}%
\pgfplots@log3{Overriding colorspace to \pgfplots@loc@TMPb\space due to xcolor configuration.}%
\expandafter\pgfplotsset\expandafter{\pgfplots@loc@TMPa}%
\fi
\fi
}%
\def\pgfplots@XC@tgt@mod@rgb#1{rgb}
\def\pgfplots@XC@tgt@mod@RGB#1{rgb}
\def\pgfplots@XC@tgt@mod@cmyk#1{cmyk}
\def\pgfplots@XC@tgt@mod@cmy#1{cmy}
\def\pgfplots@XC@tgt@mod@gray#1{gray}
\def\pgfplots@XC@tgt@mod@Gray#1{gray}
\usetikzlibrary{plotmarks}
\endinput
|