[pstricks] selective anti-aliasing? (FYI Colours with multido)

Christoph Bersch usenet at bersch.net
Tue May 10 09:57:26 CEST 2011


On 10.05.2011 09:10, Carsten Vogel wrote:
> Dear group!
>     Although I am already quite happy with this I like to take
> programming/style advises.
>     What's weird: me and other do face a partial anti-aliasing  behaviour
> for the labels (none for those positioned on the left hand side). This
> weird rendering makes it difficult to enjoy the document online.

This is because the \rput command for the y-counter is written 21 times 
at the same position. Change the innermost multido loop to

\multido{\nY=0.0+0.85,\rCyan=0.0+0.05,\nCounterY=0+5}{21}{%
   \ifnum\nCounterX=0
     \rput[r](0,-\nY){\rput[r](-.03,-0.425){\nCounterY}}
   \fi
   \SetCurrentColor{\rCyan}{\rMagenta}{\rYellow}{\rBlack}%
   \rput(\nX,-\nY){\psframe[fillcolor=current, 
style=colorfill](0.85,-0.85)}%
}% multido

>
> Any (also general) comments, bug-fixes, suggestions very welcome!

In the current state it is very difficult to copy the code from the 
listing, because after copying, a space is inserted between any two 
characters, and the minus signs are en-dashes (maybe this vanishes if 
you use a typewriter font for the listing).

Christoph


More information about the PSTricks mailing list