[pstricks] \psMatrixPlot
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu Dec 17 23:16:26 CET 2009
Am 17.12.2009 22:03, schrieb mathias legrand:
> I'm using the \psMatrixPlot command with great pleasure but I would like
> to create my own
> colorType (from white to black). Is it possible and where do I have to
> look at ?
> (I've been investigating in the tex installation tree without success...)
the macro is defines in pstricks-add
\ifcase\psk at colorType
dup 0 gt { % test if > 0
\or
Min sub dMaxMin div 300 mul 400 add
tx at addDict begin wavelengthToRGB Red Green Blue end setrgbcolor
\or
Min sub dMaxMin div neg 1 add 300 mul 400 add
tx at addDict begin wavelengthToRGB Red Green Blue end setrgbcolor
....
change _two lines_ to
\or
Min sub dMaxMin div 300 mul 400 add
tx at addDict begin wavelengthToRGB Red Green Blue RGBtoGRAY end setgray \or
Min sub dMaxMin div neg 1 add 300 mul 400 add
tx at addDict begin wavelengthToRGB Red Green Blue RGBtoGRAY end setgray
Herbert
More information about the PSTricks
mailing list