I received several helpful replies to my post (thanks). Based on them,
I have compiled a list of instructions on how to print GCG graphics. I
am appending the help file that I have passed on to the GCG users at cmb.
USING GCG GRAPHICS WITH NCSA TELNET
Many programs in GCG have graphic output, such as restriction maps or RNA
secondary structure predictions. If you have a laser printer attached to
your PC or Mac, you can print the graphic results on paper. Here's how:
This combination gives the best quality graphics output and is the easiest
to use. You just make sure your printer is turned on, your terminal is
set to capture files to the printer (capfile="PRN,B"), and the graphs will
print there (this is called passthrough printing). You may have to select
"page protection" from your LaserJet control panel (read your manual).
First start GCG by typing gcg and pressing enter. Then you can run gcg
either from the cmb% prompt or from within HYBROW. For HYBROW, type hy
and press enter. Go into HYGCGmenu, then go into Display / Graphics. Go
into hpgl. Type laser and press enter. Type term and press enter. That
sets up your graphics environement to print to the HP LaserJet attached to
your terminal (i.e. your PC). You only need to do this once each time you
login and start gcg. You can also set it up from the cmb% prompt, as
follows: Type setplot and press enter. Type hpgl and press enter. Type
laser and press enter. Type term and press enter. This does exactly the
same thing as above using HYBROW. From then on, all of your graphics
output will automatically print on your LaserJet. Easy as pie.
Alternatively, you could send the plots to disk by typing plot.hp instead
of term during configuration. Run the graphics program with the command
line option -plot=filename (e.g. plot1.hp, plot2.hp, etc.). Later, send
the .hp files to your PC by ftp (ascii mode), then send them to your
LaserJet by typing (from the DOS prompt) copy plot1.hp lpt1
Michael Hogan of GCG sent the following instructions for printing GCG
graphics with a LaserWriter attached to a Mac (edited by D.D.W.)
Passthrough printing does not work for Macs or for PC's running
Windows-based terminal emulators. We recommend that you print graphics to
postscript files, transfer these to the Mac, and then send the postscript
file directly to the laserwriter using SendPS or the System 7 lasesrwriter
Start gcg by typing gcg and pressing return. Initialize graphics for
postscript using the laserwriter driver and sending output to the file
plot.ps by issuing the commands: postscript laserwriter plot.ps
This could also be done in HYGCGmenu by going into Display / Graphics and
then into postscript, typing laserwriter, and then typing plot.ps
Run the GCG programs that generate graphic output. If you are going to
generate several output files, run programs with the -plot=filename
qualifier to send graphic output to separate files. Transfer the .ps
files to the Mac with ftp (ascii mode). To send .ps files directly to the
laserwriter, use SendPS or if you have system 7 use the lfu (laserwriter
font utilities) on the tidbits disk for system 7.0.
Presumably you could follow the above instructions for the laserwriter,
except using hpgl, to save the graph to a plot.hp file, send it to the Mac
by ftp, and then send it to the LaserJet. Alternatively, if your LaserJet
is also a postscript printer (e.g. LaserJet 4M), you could follow the
above instructions exactly (not tested by D.D.W.).
Another way is to first display the graph on your screen and then send it
to your printer. You may have to set "page protection" on your LaserJet
control panel (check your manual). This works ok, but the quality is not
as high as any of the above methods.
First, configure your terminal to emulate Tektronix 4107. This can be
done before you login during your connection procedure from the configure
dialog box. You can also set this up in your config.tel configuration
file. For help with NCSA telnet for the Mac, read the manual located in
Telnet for Mac in the cmb Sun information files in HYBROW.
Then start GCG by typing gcg and pressing return. You can run gcg either
from the cmb% prompt or from within HYBROW. For HYBROW, type hy and press
return. Go into HYGCGmenu, then go into Display / Graphics. Go into
tektronix. Type tek4014 and press return. Type term and press return.
This sets up your gcg graphics environment to display the graphs in a TEK
window on your screen (you can also select versaterm-tek4105, but tek4014
works better). Next, in the FILE menu, select Print Setup, and set Reduce
to 25%. Then, in the FILE menu, select Print Selection. The graph will
be printed on the LaserJet, easy as pie. You can then close the TEK
window and continue with GCG. You only need to set the graphics
environment once per login. This can also be done from the cmb% prompt:
type setplot and press return. Type tektronix and press return. Type
tek4014 and press return. Type term and press return.
TESTING YOUR GRAPHICS SETUP
After you set up graphics, as above, you can see your setup with showplot.
You can test your graphics setup with the plottest program, which plots a
GCG test patern. In HYGCGmenu, go into and execute plottest from the
Display / Graphics menu. From the cmb% prompt, type plottest and press
enter (if saving the plot to disk, use the -plot=filename option). Follow
the instructions on the screen.
SETUPS TESTED BY DDW
a. Passthrough printing with LaserJetIII, LaserJet 4M, and
LaserJet 4L. Ethernet (NCSA telnet) or modem (Communications
b. Saving hpgl file (plot.hp) or postscript file (plot.ps) to disk,
ftp transfer to PC, copy to LaserJetIII (.hp) or LaserJet 4M (.ps).
a. Plot on screen in TEK4107 window, print to LaserJet 4M.