[pstricks] Parameterized graphics?

Alan Ristow ristow at ece.gatech.edu
Sat Dec 29 04:49:09 CET 2007

Herbert Voss wrote:
> Johan Ekh schrieb:
>> Hi all,
>> I try to create a parameterized illustration, i.e. a picture that can be
>> completely
>> modified by changing the numerical values of some user defined parameters.
>> I'd like to use constructs such as
>> \def\var1{174.2 6.5 sub 2 div }
>> \multido{\n=0.0+22.5}{16}{%
>> \uput{\var1}[\n](4,4){\psdot[dotsize=0.2](0,0)}}
>> but I get an error when running latex.
>> Is it possible to do something like this in pstricks?
> no, not in this case. The parameter is read as a value with
> a unit before it is passed to PostScript.

Whoops! I remembered that argument as angle, not a length -- I guess 
that's what I get for responding in a hurry with untested code. Sorry....


More information about the PSTricks mailing list