%% %% The LaTeX Graphics Companion, 2ed (first printing May 2007) %% %% Example 6-7-7 on page 422. %% %% Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss %% %% It may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% %% See http://www.latex-project.org/lppl.txt for details. %% \documentclass{ttctexa} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{183.83385pt} \StartShownPreambleCommands \begin{filecontents}{LGCmatrix.dat} /dotmatrix [ 0 1 1 0 0 0 0 1 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 1 1 1 1 1 1 0 1 0 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 0 1 ] def \end{filecontents} \usepackage{pstricks-add} \StopShownPreambleCommands \begin{document} \begin{pspicture}(-0.5,-0.75)(6,6) \psaxes[dx=0.5cm,dy=0.5cm]{->}(5.5,4) \psMatrixPlot[unit=0.5,dotsize=0.55cm, dotstyle=square*,linecolor=blue] {7}{10}{LGCmatrix.dat} \psMatrixPlot[unit=0.5,dotsize=.25cm,dotstyle=o, ChangeOrder]{7}{10}{LGCmatrix.dat} \end{pspicture} \end{document}