comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL generates PS file that prints slow
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL generates PS file that prints slow [message #3294] Tue, 20 December 1994 11:18
gurman is currently offline  gurman
Messages: 82
Registered: August 1992
Member
In article <3d54uu$5i6@news2.aero.org>, senechal@sylvester.aero.org
("Keith Senechal") wrote:

> In article <1994Dec18.175308.15356@Princeton.EDU>
xu@bessel.Princeton.EDU (Guohong Xu) writes:
>> Dear IDL-programmers,
>>
>> I am frustrated with IDL because it generates PostScript files that
>> prints out very slow. Are there anybody having the same experience?
>>
>> A very simple code to test this problem:
>> set_plot, 'ps'
>> x = randomu(s, 20000)
>> y = randomu(s, 20000)
>> PLOT, x, y, PSYM=1
>> device, /close
>> spawn, 'lpr idl.ps'
>> This script will generate a PS file of about 200KB, but it will take
>> more than 30 minutes to print it out in a Sparc Printer. Normally,
>> the Sparc printer will take only 2 minutes to print out a file of 200 KB.
>>
>> Can any one tell me what could be the problem? Could it be that IDL
>> generates low effeciency PostScript files?
>>
>> Thanks a lot, and Merry Christmas!
>>
>> Guohong Xu
>>
>> ------- Dept of Astrophysics, Princeton University ---------------------
>>
>
> I just tried this test on a SparcPrinter running from a Sparc 2 workstation.
> The PS file was 958KB and took under 2 minutes to print.
> --
> ---- Keith (senechal@monstro.aero.org -- x64504)
> --

For what it's worth, I tried the same thing on an Alpha printing to an
HP 4SiMX over ethernet. It took < 1 m 9 s to print the 980 Kbyte file.

Joe Gurman

--
J.B. Gurman / Solar Physics Branch/ NASA Goddard Space Flight Center/
Greenbelt MD 20771 USA / gurman@uvsp.gsfc.nasa.gov
| Federal employees are still prohibited from holding opinions while|
| at work. Therefore, any opinions expressed herein are somebody |
| else's. |
Re: IDL generates PS file that prints slow [message #3298 is a reply to message #3294] Mon, 19 December 1994 15:28 Go to previous message
senechal is currently offline  senechal
Messages: 1
Registered: December 1994
Junior Member
In article <1994Dec18.175308.15356@Princeton.EDU> xu@bessel.Princeton.EDU (Guohong Xu) writes:
> Dear IDL-programmers,
>
> I am frustrated with IDL because it generates PostScript files that
> prints out very slow. Are there anybody having the same experience?
>
> A very simple code to test this problem:
> set_plot, 'ps'
> x = randomu(s, 20000)
> y = randomu(s, 20000)
> PLOT, x, y, PSYM=1
> device, /close
> spawn, 'lpr idl.ps'
> This script will generate a PS file of about 200KB, but it will take
> more than 30 minutes to print it out in a Sparc Printer. Normally,
> the Sparc printer will take only 2 minutes to print out a file of 200 KB.
>
> Can any one tell me what could be the problem? Could it be that IDL
> generates low effeciency PostScript files?
>
> Thanks a lot, and Merry Christmas!
>
> Guohong Xu
>
> ------- Dept of Astrophysics, Princeton University ---------------------
>

I just tried this test on a SparcPrinter running from a Sparc 2 workstation.
The PS file was 958KB and took under 2 minutes to print.
--
---- Keith (senechal@monstro.aero.org -- x64504)
--
Re: IDL generates PS file that prints slow [message #3302 is a reply to message #3298] Mon, 19 December 1994 08:51 Go to previous message
ryba is currently offline  ryba
Messages: 33
Registered: October 1992
Member
In article <1994Dec18.175308.15356@Princeton.EDU>, xu@bessel.Princeton.EDU (Guohong Xu) writes:
|> I am frustrated with IDL because it generates PostScript files that
|> prints out very slow. Are there anybody having the same experience?
|> x = randomu(s, 20000)
|> y = randomu(s, 20000)
|> PLOT, x, y, PSYM=1
|> This script will generate a PS file of about 200KB, but it will take
|> more than 30 minutes to print it out in a Sparc Printer. Normally,
|> the Sparc printer will take only 2 minutes to print out a file of 200 KB.
|>
|> Can any one tell me what could be the problem? Could it be that IDL
|> generates low effeciency PostScript files?

Actually, I'd say IDL generates fairly HIGH efficiency PS
code...you just plotted 20,000 little plusses. By high efficiency, I
mean I've seen plotting software PS drivers that would generate a 1MB
file for a similar plot. Either way, such a plot will take a while to
print, since vector graphics are a lot more complicated than simple
text files. Now, there is maybe one efficiency that could be
done...all these routines generate plot symbols by collections of
lines (if you look at the IDL driver code, you'll see what I mean).
It is conceivable to have PSYM first generate a PostScript symbol and
then place it in multiple locations. There's no guarantee that it
will be any faster on your typical PS printer (and especially no
guarantee for NEWSprint). I guess if you defined some kind of font
and downloaded it you could get it to work, but coding the driver
software would be non-trivial.

--
Dr. Marty Ryba | Generation X:
MIT Lincoln Laboratory | Too young to be cynical,
ryba@ll.mit.edu | too old to be optimistic.
Of course nothing I say here is official policy, and Laboratory affiliation is
for identification purposes only, blah, blah, blah....
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Ultrix 4.4 and WaveAdvantage
Next Topic: PCA procedure?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:44:09 PDT 2025

Total time taken to generate the page: 0.00561 seconds