| 1 |
%-------------------------------------------- |
| 2 |
% Package pgfplots |
| 3 |
% |
| 4 |
% Provides a user-friendly interface to create function plots (normal |
| 5 |
% plots, semi-logplots and double-logplots). |
| 6 |
% |
| 7 |
% It is based on Till Tantau's PGF package. |
| 8 |
% |
| 9 |
% Copyright 2007/2008 by Christian Feuersänger. |
| 10 |
% |
| 11 |
% This program is free software: you can redistribute it and/or modify |
| 12 |
% it under the terms of the GNU General Public License as published by |
| 13 |
% the Free Software Foundation, either version 3 of the License, or |
| 14 |
% (at your option) any later version. |
| 15 |
% |
| 16 |
% This program is distributed in the hope that it will be useful, |
| 17 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
% GNU General Public License for more details. |
| 20 |
% |
| 21 |
% You should have received a copy of the GNU General Public License |
| 22 |
% along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 23 |
% |
| 24 |
%-------------------------------------------- |
| 25 |
|
| 26 |
% NOTE: tex4ht support is lousy. For example, \tikz \node {$10^{-6}$}; |
| 27 |
% will already break -- because SVG does not support the html tag |
| 28 |
% − produced by tex4ht (and TikZ apparently does not know how to |
| 29 |
% escape it somehow). |
| 30 |
\def\pgfplots@sys@beforenode{% |
| 31 |
\pgfkeysifdefined{/tikz/tex4ht node/escape/.@cmd}{% |
| 32 |
\ifpgfplots@has@cell@picture |
| 33 |
\tikzset{tex4ht node/escape=true}% |
| 34 |
\pgfplots@warning{ATTENTION: you may want to use '\string\pgfplotsset{cell picture=false}' in your preamble. Otherwise, tex4ht will produce TWO SVG files per plot.^^J}% |
| 35 |
\fi |
| 36 |
}{}% |
| 37 |
}% |
| 38 |
|
| 39 |
% see compat/show suggested version |
| 40 |
\newif\ifpgfplots@show@suggested@version |
| 41 |
\pgfplots@show@suggested@versiontrue |
| 42 |
|
| 43 |
\def\pgfplots@show@suggested@compat@value{% |
| 44 |
\ifpgfplots@show@suggested@version |
| 45 |
\begingroup |
| 46 |
\pgfkeysgetvalue{/pgfplots/compat/current}\current |
| 47 |
\pgfkeysgetvalue{/pgfplots/compat/mostrecent}\mostrecent |
| 48 |
% |
| 49 |
\def\b@isnewest{0}% |
| 50 |
\def\b@shouldupgrade{0}% |
| 51 |
\ifx\current\mostrecent |
| 52 |
\def\b@isnewest{1}% |
| 53 |
\else |
| 54 |
\def\pgfplots@loc@TMPa{newest}% |
| 55 |
\ifx\current\pgfplots@loc@TMPa |
| 56 |
\def\b@isnewest{1}% |
| 57 |
\else |
| 58 |
\expandafter\pgfplotsutilifstringequal\expandafter{\current}{pre 1.3}{% |
| 59 |
\def\b@shouldupgrade{1}% |
| 60 |
}{}% |
| 61 |
\expandafter\pgfplotsutilifstringequal\expandafter{\current}{default}{% |
| 62 |
\def\b@shouldupgrade{1}% |
| 63 |
}{}% |
| 64 |
\fi |
| 65 |
\fi |
| 66 |
\if1\b@isnewest |
| 67 |
\pgfplots@message{Package pgfplots notification 'compat/show suggested version=true': document has been generated with the most recent feature set (\string\pgfplotsset{compat=\mostrecent}).^^J}% |
| 68 |
\else |
| 69 |
\if1\b@shouldupgrade |
| 70 |
\pgfplots@warning{running in backwards compatibility mode (unsuitable tick labels; missing features). Consider writing \string\pgfplotsset{compat=\mostrecent} into your preamble.^^J}% |
| 71 |
\else |
| 72 |
\pgfplots@message{Package pgfplots notification 'compat/show suggested version=true': you might benefit from \string\pgfplotsset{compat=\mostrecent} (current compat level: \current).^^J}% |
| 73 |
\fi |
| 74 |
\fi |
| 75 |
\endgroup |
| 76 |
\fi |
| 77 |
} |
| 78 |
|
| 79 |
\pgfutil@IfUndefined{AtBeginDocument}{% |
| 80 |
}{% |
| 81 |
\AtBeginDocument{% |
| 82 |
\pgfplots@show@suggested@compat@value |
| 83 |
}% |
| 84 |
}% |