|
Re: Color Printer limitations - Postscript resolution [message #2006 is a reply to message #2005] |
Fri, 13 May 1994 04:12  |
jacobsen
Messages: 28 Registered: July 1992
|
Junior Member |
|
|
We've been using IDL to generate B&W and color PostScript
files for printing on a laser printer (proof) and
a Tektronix Phaser II SDX (the dye-sublimation phaser) for
almost two years. For a 2 MB file, we average send times of
a minute or so (parallel port on IBM RS/6000), and print
times as Tektronix advertises in its literature.
The Phaser II SDX talks PostScript, and I like that because
you can put text up at high (non-rasterized) resolution next
to the picture.
Since we bought ours, Tektronix has lowered the price
and Kodak and others have come out with competitors. At a
supposedly slight step down in print quality, there's a
Fargo Electronics dye-sub printer for <$2,000! (but it doesn't
talk PostScript - drive it from a PC).
--
*******************
Chris Jacobsen, Asst. Prof., Department of Physics, SUNY at Stony Brook
Phone (516) 632-8093, FAX -8101 Bitnet: cjacobsen@sbccmail
jacobsen@xray1.physics.sunysb.edu ALL-IN_ONE: CJACOBSEN
*******************
|
|
|
Re: Color Printer limitations - Postscript resolution [message #2010 is a reply to message #2006] |
Fri, 13 May 1994 06:49  |
landers
Messages: 45 Registered: May 1993
|
Member |
|
|
I have also had problems with long color PS printing time (from PV-WAVE).
In my case, the plots are large color images. I discovered that I could
reduce the print time by reducing the resolution of the PS image. This did not
degrade my plots because of the nature of my data. I think that the
default PS image output is at around 300dpi, but this is just a guess. Reducing
this by 1/3 (to what I guess is 100 - close to what I see on my screen) makes the
files almost 1/9 the size, and reduces PS processing time accordingly.
You could do this by taking a 'snapshot' of the screen, but this 'pixelizes' any
text and lines in the plot, and can really get ugly if you resize it. I prefer to
do the re-scaling straight to the PS file from PV-WAVE.
To do this in PV-WAVE, I do:
scale = 3. ; the scale reduction factor
xsize = 6. ; the final x,y sizes of the plot (inches in this case)
ysize = 6.
SET_PLOT, 'PS'
DEVICE, /Color, Bits_Per_Pixel=8, Xsize=xsize/scale, Ysize=ysize/scale, $
/Inches, Scale_Factor=scale
!P.Charsize = 1./scale ; set character sizes - Scale_Factor doesn't affect them
< plot commands >
DEVICE, /Close
!P.Charsize = 1. ; reset it back to normal
SET_PLOT,'X' ; or whatever
Make sure that if you use Charsize keywords in your plot commands, to use them
relative to !P.Charsize or scale. Otherwise they'll turn out much too large.
Also, there is no !P.Symsize, so if you use plot symbols, you'll need to set
Symsize keywords relative to !P.Charsize, too.
Even if you want high resolution finals, you can use this for small, quick
previews.
I figured all this out by playing with DEVICE and PS and stuff. If I am going
about this the hard way, somebody let me know. There really ought to be a
Resolution keyword for the PS device to make this easier.
____________________________________________________________ _____
David Landers (214) 952-3910
M/S 8019
Texas Instruments landers@tsunami.dseg.ti.com
2501 W. University
McKinney, TX 75070
|
|
|
Re: Color Printer limitations - Postscript resolution [message #2011 is a reply to message #2006] |
Fri, 13 May 1994 07:36  |
sigut
Messages: 12 Registered: February 1994
|
Junior Member |
|
|
In article <2qtlak$im1@spool.cs.wisc.edu> frp@ssec.wisc.edu (Francois Pomport) writes:
I am trying to print some filled contour graphics on a color
printer, but the printer seems to ignore them. Each time IDL warns
us that the number of polygon vertices may exceed some printer
capabilities when it is generating the postscript file. I have
tried to reduce the number of contour levels up to 7 (which is
not very much) in order to be below the limitations but it
doesn't work. Does anyone have encountered this warning message
before? How did you succeed in printing your files? I know that my
problem is related to the printer (Tektronix Pahser II). Do you
have any other references for new color printers with an estimated
price?
Francois
frp@ssec.wisc.edu
University of Wisconsin
Hi there,
I believe that your problem is NOT related to your printer, but to
the POLYFILL routine used by CONTOUR,/FILL or POLYCONTOUR.
This routine takes each closed contour as a polygon and sends it
to the PostScript device to be filled. When the POLYFILL routine
was developed, there was (and perhaps still is) a limit as to the
number of vertices the PostScript device would be able to handle.
If it is larger then 750 (or somesuch), it gives you a warning
and might do anything between ignoring the request and breaking off,
depending on the software version.
I wrote a hack to avoid this problem in the PV-Wave version of the
POLYCONTOUR routine, which could be reworked easily for IDL. The only
problem is, that in IDL you are discouraged to use POLYCONTOUR, because
it was replaced by the /FILL option to CONTOUR. Of course, the source
for CONTOUR is not available...
Anyway, since I started let's have a look. The tested change for
PV-Wave looks as follows:
pro polycontour, ...
...
if col ge 100 then col = 199-col ;Drawing index = 1 less than orig
col = color_index(col+1)
; This add-on was written to avoid the problem with
; "Too many vertices for PostScript polygon fill."
; The solution is to "thin out" the polygon and hope
; that it will still look the same.
sec_dim=size(xyarr)
gms_siz=sec_dim(2)
if gms_siz gt 750 then begin
gms_siz = gms_siz/2
while gms_siz gt 750 do gms_siz = gms_siz/2
xyarr=congrid(xyarr,2,gms_siz)
endif
; end-of-the-hack
if n_elements(pat) ne 0 then begin
s = size(pat)
if s(0) ne 3 then message, 'Pattern array not 3d.'
...
(you can find easily where to plug it in)
The UNTESTED version for IDL would look as follows:
pro polycontour, ...
...
if col ge 100 then col = 199-col ;Drawing index = 1 less than orig
col = color_index(col+1)
; This add-on was written to avoid the problem with
; "Too many vertices for PostScript polygon fill."
; The solution is to "thin out" the polygon and hope
; that it will still look the same.
sec_dim=size(xyarr)
gms_siz=sec_dim(1)
if gms_siz gt 750 then begin
gms_siz = gms_siz/2
while gms_siz gt 750 do gms_siz = gms_siz/2
xyarr=congrid(xyarr,gms_siz,2)
endif
; end-of-the-hack
if n_elements(pat) ne 0 then begin
s = size(pat)
if s(0) ne 3 then message, 'Pattern array not 3d.'
...
The file polycontour.pro can be found for Wave in .../wave/lib/std
and for IDL in .../idl/lib/userlib
Well, that's all.
Good luck,
George
------------------------------------------------------------ ------------------
George M.Sigut ETH Informatikdienste, Beratung & Schulung, CH-8092 Zurich
Swiss Federal Inst. of Technology, Computing Services, User Support & Training
email: sigut@bs.id.ethz.ch Phone: +41 1 632 5763 Fax: +41 1 252 8243
>>>> >>>>> in case of email problems send the mail to "sigut@acm.org" <<<<<<<<<
------------------------------------------------------------ ------------------
|
|
|
Re: Color Printer limitations - Postscript resolution [message #2017 is a reply to message #2006] |
Thu, 12 May 1994 10:11  |
8015
Messages: 52 Registered: November 1993
|
Member |
|
|
In article <2qtlak$im1@spool.cs.wisc.edu>,
Francois Pomport <frp@ssec.wisc.edu> wrote:
>
> Hi,
>
> I am trying to print some filled contour graphics on a color
> printer, but the printer seems to ignore them. Each time IDL warns
...
> Do you
> have any other references for new color printers with an estimated
> price?
>
About a year ago our first effort with IDL and color printers using
postscript was pretty dismal. We blamed it on the printer (Sharp JX-7000
24-bit dye-sub), also. The problem was the time required to print because
the imaging of the postscript was being done with Sun's NeWSPrint software
rather than in the printer's hardware (non-PS printer). Anyway, the solution
was to have IDL output a Sun Raster File using the write_srf procedure in
IDL. The file was then sent to the printer. Processing time was cut from at
least an hour to less than a minute. Priniting time was about five minutes.
If this sounds like a reasonable solution, here is some more info:
Vendor: APUNIX 800/827-8649 (Susan and Vince have been very helpful)
Printer: Sharp JX-7000 24-bit dye-sub printer connected via SCSI
Cost: $8,000
Cost per copy: ~$2 for paper, ribbons, etc.
Output time: 5 minutes once file is created by IDL and spooled to
printer (which takes whatever time is required for your computer to
create and spool a 5 MByte file across the SCSI bus). In our case,
using a Sun IPX, it was about 30 seconds to create the file and a
few seconds to spool the file.
Mike Schienle Hughes Santa Barbara Research Center
mgs@sbjse0.sbrc.hac.com 75 Coromar Drive, M/S B28/87
Voice: (805)562-7466 Fax: (805)562-7881 Goleta, CA 93117
|
|
|
Re: Color Printer limitations - Postscript resolution [message #2019 is a reply to message #2017] |
Thu, 12 May 1994 11:10  |
andy
Messages: 31 Registered: November 1993
|
Member |
|
|
In article <2qtlak$im1@spool.cs.wisc.edu>, frp@ssec.wisc.edu (Francois Pomport) writes:
>
> Hi,
>
> I am trying to print some filled contour graphics on a color
> printer, but the printer seems to ignore them. Each time IDL warns
> us that the number of polygon vertices may exceed some printer
> capabilities when it is generating the postscript file. I have
> tried to reduce the number of contour levels up to 7 (which is
> not very much) in order to be below the limitations but it
> doesn't work. Does anyone have encountered this warning message
> before? How did you succeed in printing your files? I know that my
> problem is related to the printer (Tektronix Pahser II). Do you
> have any other references for new color printers with an estimated
> price?
>
> Thanks for your answers.
>
>
Francois,
Please do not throw away your Phaser II printer.
We do this kind of stuff all the time and we often
send our output to the same model of printer which
you have. We do get the "polygon vertices" message,
but that doesn't mean we are unable to print the file.
Maybe your printer needs more memory.
Can you send me a simple example procedure which *doesn't*
work at your site? Maybe I can give it a try here.
Good luck.
Andy
P.S. Since you are working on such a problem, let me tell you
that many users are having difficulty (still) with the
/fill option to contour. We run into errors with the way it
is implemented all the time. A robust package like NCAR
graphics can color fill contours without any problem.
--
,__o Andrew F. Loughe (Code 971)
-\_<, NASA Goddard Space Flight Center phone: (301) 286-5899
(*)/'(*) Greenbelt, MD 20771 email: andy.loughe@gsfc.nasa.gov
|
|
|