[pstricks] [Fwd: Re: pstricks-add]

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Tue Mar 22 17:45:52 CET 2005



-------- Original Message --------
Subject: Re: pstricks-add
Date: Tue, 22 Mar 2005 17:36:38 +0100
From: Herbert Voss <Herbert.Voss at alumni.TU-Berlin.DE>
To: Salvatore Vassallo <salvatore.vassallo at unicatt.it>
References: <4240188B.4000909 at unicatt.it>

Salvatore Vassallo wrote:

> I recently discovered a very interesting feature of pstricks-add that I
> didn't find in documentation.

sure, because it is the LaTeX default ...

\documentclass[a4paper,12pt]{article}
\usepackage{multido}
\usepackage{pstricks}
\usepackage{pstricks-add}
\def\getColor#1{\ifcase#1 red\or green\or blue\or cyan\or magenta\or
gray\fi}
\begin{document}

\begin{pspicture*}(-6,-7)(6,7)
\multido{\iA=0+1}{6}{%
   \psplot[algebraic=true,linecolor=\getColor{\iA}]{-6}{6}{x^\iA}}
\psaxes[Dy=2]{->}(0,0)(-6,-7)(6,7)
\end{pspicture*}

\end{document}



-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes





More information about the PSTricks mailing list