summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkxl/m-tikz-pgfplots.tex
blob: 1dd06b8b2212e40d1254a89bf91a5bc0caf73ba0 (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
%D See m-tikz.mkxl for comments.

\startmodule [pgfplots]

\writestatus{loading}{ConTeXt User Module / Pgfplots}

\tikzinputfile{pgfplots.revision.tex}

\usetikzlibrary[plotmarks]

\tikzinputfile{pgfplots.code.tex}

\def\pgfplotsincludegraphics[#1]#2%
  {\externalfigure[#2][#1]}

\starttikzsettings
    \pgfkeys{/pgfplots/plot graphics/includegraphics cmd=\pgfplotsincludegraphics}
\stoptikzsettings

\unprotect

\let\pgfplots@ORIG@tikz@installcommands@before@context\tikz@installcommands

\def\tikz@installcommands{%
  \pgfplots@ORIG@tikz@installcommands@before@context
  %
  \let\startaxis=\pgfplots@environment@axis
  \let\stopaxis=\endpgfplots@environment@axis
  %
  \let\startsemilogxaxis=\pgfplots@environment@semilogxaxis
  \let\stopsemilogxaxis=\endpgfplots@environment@semilogxaxis
  %
  \let\startsemilogyaxis=\pgfplots@environment@semilogyaxis
  \let\stopsemilogyaxis=\endpgfplots@environment@semilogyaxis
  %
  \let\startloglogaxis=\pgfplots@environment@loglogaxis
  \let\stoploglogaxis=\endpgfplots@environment@loglogaxis
  %
  \def\startpgfplotsinterruptdatabb{\pgfplotsinterruptdatabb}%
  \def\stoppgfplotsinterruptdatabb{\endpgfplotsinterruptdatabb}%
}

\protect

\stopmodule