%%
%% This is file `ex-color.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% coordsys.dtx  (with options: `color')
%% 
%% 
%%  This is the coordsys and logsys packages
%%  Copyright 2000 by Mogens Lemvig Hansen,
%%                    mlhansen@uniserve.com
%% 
%% This program may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.2
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%% 
%% This program consists of the files coordsys.dtx and coordsys.ins
%% 
\documentclass{jarticle}
\usepackage{coordsys,logsys,color}
\title{Examples of combining the \textsf{coordsys} and \textsf{logsys}
packages with the \textsf{color} package}
\author{Mogens Lemvig Hansen\thanks{This file is part of the \textsf{coordsys}
package.}}
\date{2000/10/24}
\begin{document}
\maketitle
\definecolor{gray}{gray}{0.5}
A gray grid.
\begin{center}
\begin{picture}(309,165)(-109,-65)
\textcolor{gray}{\coordgrid*(-109,-65)(200,100)}
\coordsys(-109,-65)(200,100)
\end{picture}
\end{center}
\renewcommand{\vgridlength}[1]{\textcolor{gray}{\line(0,1){#1}}}
\renewcommand{\hgridlength}[1]{\textcolor{gray}{\line(1,0){#1}}}
Another gray grid using the same colour, gray.
\begin{center}
\begin{picture}(309,165)(-109,-65)
\coordgrid*(-109,-65)(200,100)
\coordsys(-109,-65)(200,100)
\end{picture}
\end{center}
\makeatletter
\renewcommand{\setvlabel}[2][r]{%
   \makebox(0,0)[#1]{\colorbox{white}{$#2$}\hspace{5pt}}}
\renewcommand{\sethlabel}[2][t]{%
   \makebox(0,0)[#1]{%
      \setlength{\@tempdimc}{3pt}%
      \addtolength{\@tempdimc}{\baselineskip}%
      \rule{0pt}{\@tempdimc}\colorbox{white}{$#2$}}}
\makeatother
The same grid again but with labels on a white background.
\begin{center}
\begin{picture}(309,165)(-109,-65)
\coordgrid*(-109,-65)(200,100)
\coordsys(-109,-65)(200,100)
\end{picture}
\end{center}
\makeatletter
\renewcommand{\vgridlength}[1]{%
   \ifdim\@wholewidth>0.6pt%
      \textcolor{blue}{\thinlines\line(0,1){#1}}%
   \else
      \textcolor{green}{\line(0,1){#1}}%
   \fi}
\renewcommand{\hgridlength}[1]{%
   \ifdim\@wholewidth>0.6pt%
      \textcolor{blue}{\thinlines\line(1,0){#1}}%
   \else
      \textcolor{green}{\line(1,0){#1}}
   \fi}
\makeatother
A splashy grid.
\begin{center}
\begin{picture}(309,165)(-109,-65)
\coordgrid*(-109,-65)(200,100)
\coordsys(-109,-65)(200,100)
\end{picture}
\end{center}
A logarithmic grid with the same settings.
\begin{center}
\begin{picture}(309,165)(-109,-65)
\semiloggrid*(-100,-65)(209,100)
\semilogsys(-100,-65)(209,100)
\end{picture}
\end{center}
\end{document}
\endinput
%%
%% End of file `ex-color.tex'.
