[pstricks] Grad or slpe in double line or think line
Arne Hallam
ahallam at iastate.edu
Thu Feb 16 17:38:26 CET 2012
Works great, thanks.
On 02/16/2012 09:41 AM, Herbert Voss wrote:
> \documentclass{article}
> \usepackage{pst-node,pst-grad}
> \makeatletter
> \def\ncLine{\pst at object{ncLine}}
> \def\ncLine at i{\check at arrow{\ncLine at ii}}
> \def\ncLine at ii#1#2{\nc at object{Open}{#1}{#2}{.5}{ \tx at ncLine }}
> \pst at def{ncLine}<
> NCCoor
> tx at Dict begin
> /YA ED /XA ED /YB ED /XB ED
> XB XA sub /Length ED
> XA YA moveto
> CLW 8 mul dup rlineto
> 0 CLW -4 mul rlineto
> Length CLW 16 mul sub 0 rlineto
> 0 CLW 4 mul rlineto
> CLW 8 mul dup neg rlineto
> CLW 8 mul neg dup rlineto
> 0 CLW 4 mul rlineto
> Length CLW 16 mul sub neg 0 rlineto
> 0 CLW 4 mul neg rlineto
> closepath
> end
> >
> \makeatother
> \begin{document}
>
> \begin{psmatrix}[mcol=l,mnode=r, colsep=1.1cm,rowsep=10pt]
> & Poor & Fair & Good & \\
> Self-centered &~& && Mindful of other people \\
> Lazy &~& && Diligent \\
> Not thankful &~ & && Full of thanks \\
> Mind not focused &~ & && Mind focused \\
> General, not specific &~& && Specific, not general \\
> \end{psmatrix}
>
> \psset{linecolor=blue,fillstyle=gradient,
> gradbegin=blue!0,gradend=blue!100,gradmidpoint=0,
> gradangle=90}
> \ncLine[nodesepA=-.45,nodesepB=.8]{2,2}{2,5}
> \ncLine[nodesepA=-.45,nodesepB=.8]{3,2}{3,5}
> \ncLine[nodesepA=-.45,nodesepB=.8]{4,2}{4,5}
> \ncLine[nodesepA=-.45,nodesepB=.8]{5,2}{5,5}
> \ncLine[nodesepA=-.45,nodesepB=.8]{6,2}{6,5}
>
> \end{document}
--
with all thy getting get understanding---Proverbs 4:7.
The gentle art of being gentle---of kindness and forgiveness, sensitivity and thoughtfulness and generosity and humility and good old-fashioned love---have gone out of fashion. Ironically, everyone is demanding their rights, and this demand is so shrill that it destroys one of the most basic rights, if we can put it like that: the right, or at least the longing and hope, to have a peaceful, stable, secure, and caring place to live, to be, to learn, and to flourish---N.T. Wright.
In the wildness of speculation it has been suggested (of course more in jest than in earnest),that Europe ought to grow its corn in America, and devote itself solely to manufactures and commerce, as the best sort of division of the labour of the globe---Thomas Malthus, An Essay on the Principle of Population Book III, Chapter XII.
Arne Hallam
Professor of Economics
Associate Dean, College of Liberal Arts and Sciences
237 Catt Hall
Iowa State University
Ames, IA 50011
ahallam at iastate.edu
Work: 515-294-5861
FAX: 515-294-1303
Home: 515-292-8739
More information about the PSTricks
mailing list