Skip to content
Prev 32644 / 398528 Next

Postscript query: plotting long vectors

When I run the example in R 1.6.2, and view it with gs, I get a good plot.
When I run the example in R 1.7.0, and view it with gs, I get a bad plot.
(run on the same host)

My "bad plot" is as described by Stephen.

In the "good" postscript file, about 100 lines in, there is this:
%%EndProlog
%%Page: 1 1
bp
77.04 91.44 743.76 534.96 cl
0.0000 0.0000 0.0000 rgb
0.75 setlinewidth
[] 0 setdash
np
101.73 313.20 m
101.74 313.21 l
101.74 313.23 l
101.74 313.24 l
101.75 313.25 l
(followed by ~200000 lines of the same type, with slowly changing values)

In the "bad" postscript file, at about the same point in the file, is this:
%%EndProlog
%%Page: 1 1
bp
77.04 91.44 743.76 534.96 cl
0 0 0 rgb
0.75 setlinewidth
[] 0 setdash
np
101.73 313.20 m
0.00 0.01 l
0.00 0.01 l
0.00 0.01 l
0.00 0.01 l
0.00 0.01 l
(followed by ~200000 lines, including some like these)

0.00 0.00 l
0.00 0.00 l

0.00 -0.01 l
0.00 -0.01 l

0.00 -0.00 l
0.00 -0.00 l

Looks like it might be a formatting issue on how these lines were written.

My version information:

---- 1.6.2 ----
platform sparc-sun-solaris2.7
arch     sparc              
os       solaris2.7         
system   sparc, solaris2.7  
status                      
major    1                  
minor    6.2                
year     2003               
month    01                 
day      10                 
language R
---- 1.7.0 ----
_                  
platform sparc-sun-solaris2.7
arch     sparc              
os       solaris2.7         
system   sparc, solaris2.7  
status                      
major    1                  
minor    7.0                
year     2003               
month    04                 
day      16                 
language R                  

[245]% gs --version
5.50

-Don
At 5:59 PM +0100 5/29/03, Stephen Eglen wrote: