[pstricks] uput parameter value

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Nov 7 20:17:20 CET 2005


Poul Riis wrote:
> ... and how can I uput a postscript-parameter?
> The line
> \uput[45]{45}(!xmax xmax dup mul A mul){A='the value of A'}%
> below should be modified. How?


> \documentclass{article}
> 
> \usepackage{pstricks-add}

\usepackage{pst-func}

> \pagestyle{empty}
> 
> 
> \definecolor[ps]{bl}{rgb}{tx at addDict begin Red Green Blue end}
> \newcommand{\rainbowcolor}[1]{\pstVerb{/lambda #1 def lambda tx at addDict
> begin wavelengthToRGB end}}%
> \newcommand{\parab}[3]{%
> \SpecialCoor%
> \pstVerb{/F #1 def%
> /A 1 4 div F div def%
> /xmax #2 def%
> }%
> \rainbowcolor{#3}%
> \color{bl}
> \psplot[linewidth=2pt,linecolor=bl,plotpoints=100]{0}{xmax}{x dup mul A
> mul}%
> \uput[45]{45}(!xmax xmax dup mul A mul){A='the value of A'}%

\uput[45]{45}(!xmax xmax dup mul A 
mul){A=\psPrintValue[PSfont=Courier,fontscale=10]{A}


Herbert





More information about the PSTricks mailing list