%% ConTeXt file

\usemodule[pgfplots]
\pgfplotsset{compat=1.8}% <-- moves axis labels near ticklabels (respects tick label widths)

\starttext
Using Con{\TeX}t.

\starttikzpicture
	\startaxis
        \addplot graphics
            % instead of the min/max things:
            [points={(0,1) (1,0)},
            % trim=left bottom right top
            includegraphics={trim=12 9 12 8,clip}]
            {external2};
        \addplot coordinates {(0,0) (1,1)};
	\stopaxis
\stoptikzpicture
\stoptext
