| 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/2008 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 |
\writestatus{loading}{ConTeXt User Module / Pgfplots} |
| 28 |
|
| 29 |
\unprotect |
| 30 |
|
| 31 |
\input pgfplots.revision.tex |
| 32 |
\startmodule [pgfplots] |
| 33 |
|
| 34 |
% regarding the t-prefix: ensure that we do not accidentally load the plain tex tikz.tex file... |
| 35 |
\usemodule[t][tikz] |
| 36 |
\usetikzlibrary[plotmarks] |
| 37 |
|
| 38 |
\edef\tikzatcode{\the\catcode`\@} |
| 39 |
\edef\tikzbarcode{\the\catcode`\|} |
| 40 |
\edef\tikzexclaimcode{\the\catcode`\!} |
| 41 |
\catcode`\@=11 |
| 42 |
\catcode`\|=12 |
| 43 |
\catcode`\!=12 |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
\input pgfplots.code.tex |
| 48 |
|
| 49 |
\def\pgfplotsincludegraphics[#1]#2{\externalfigure[#2][#1]} |
| 50 |
\pgfkeys{/pgfplots/plot graphics/includegraphics cmd=\pgfplotsincludegraphics} |
| 51 |
|
| 52 |
|
| 53 |
\let\pgfplots@ORIG@tikz@installcommands@before@context=\tikz@installcommands |
| 54 |
|
| 55 |
\def\tikz@installcommands{% |
| 56 |
\pgfplots@ORIG@tikz@installcommands@before@context |
| 57 |
% |
| 58 |
\let\startaxis=\pgfplots@environment@axis |
| 59 |
\let\stopaxis=\endpgfplots@environment@axis |
| 60 |
% |
| 61 |
\let\startsemilogxaxis=\pgfplots@environment@semilogxaxis |
| 62 |
\let\stopsemilogxaxis=\endpgfplots@environment@semilogxaxis |
| 63 |
% |
| 64 |
\let\startsemilogyaxis=\pgfplots@environment@semilogyaxis |
| 65 |
\let\stopsemilogyaxis=\endpgfplots@environment@semilogyaxis |
| 66 |
% |
| 67 |
\let\startloglogaxis=\pgfplots@environment@loglogaxis |
| 68 |
\let\stoploglogaxis=\endpgfplots@environment@loglogaxis |
| 69 |
% |
| 70 |
\def\startpgfplotsinterruptdatabb{\pgfplotsinterruptdatabb}% |
| 71 |
\def\stoppgfplotsinterruptdatabb{\endpgfplotsinterruptdatabb}% |
| 72 |
}% |
| 73 |
|
| 74 |
\catcode`\@=\tikzatcode |
| 75 |
\catcode`\|=\tikzbarcode |
| 76 |
\catcode`\!=\tikzexclaimcode |
| 77 |
|
| 78 |
\stopmodule |
| 79 |
|
| 80 |
\protect |
| 81 |
\endinput |