Can someone please help me with the following three problems:
1) How can I programmatically define a color scheme?
2) How can I programmatically set a default color scheme by name?
3) How do I get the colors from the default color scheme to
show up in my postscript output?
I did spend some time searching through the archives of this list
but either I'm missing something real basic or the information was
somehow vendor and/or version specific.
Given the following commands, here is my test case for problem #3:
$ Splus5
> version
Version 5.1 Release 1 for DEC alpha, Digital UNIX (OSF/1) V4.0 : 1999
> x<-c(1:100);
> y<-c(1:30);
> M<-matrix(1:3000,nrow = 100)
> image(x,y,M);
> outfile<-paste("test",".ps",sep="");
> ps.options(image.colors=xgetrgb("images"),
background=xgetrgb("background"));
> printgraph(horizontal=T,print=F,file=outfile);
> shell("ghostview test.ps")
The image displays shades of green & red, but the resulting postscript
is displayed in greyscale, not color.
Color Scheme Specifications:
Name: RedGreen
Background: DarkBlue
Lines: white yellow
Text: white
Polygons: white
Images: red1 red2 red3 red4 green1 green2 green3 green4
My application will run on DigitalUNIX, Sparc, Linux & WinNT.
Version 5.1: DigitalUNIX, Sparc
Version 6.0: Linux
Splus2000: WinNT
Immediate concern is how to get this to work on the Un*x platforms.
I can't believe it's that hard to do these things but I'm out of
time to continue trying to figure it out from the documentation.
TIA,
Paul Roebuck
Systems Analyst III
Biostatistics Department
MD Anderson Cancer Center
Houston, TX 77030
(713) 794-1672
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
|