This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>From: "Ronald Mastaler" <address@hidden> >Organization: UCAR/Unidata >Keywords: 200506161841.j5GIfGAZ026822 >Institution: Institute of Atmospheric Physics, University of Arizona / Atmosph > eric Sciences >Package Version: 5.6.h >Operating System: Red Hat Linux; Fedora Core >Hardware Information: Intel Pentium 2 class >Inquiry: I would like to use the capability to see plots in an X-window while > simultaneously writing to a file for subsequent printout. I found that this > can be done (with the XWP device) in your documentation, but I did not find h > ow it can be done. > >Thanks in advance for your help; it has always been great in the past. > > > Ronald, The XWP device does not simultaneously write X and PS, but rather, allows you to change back and forth without closing the X window. The way it works is: In a program, say GPMAP: DEVICE = xwp run the above will open up an X display window. Then, change device driver to PS, PS1, PSC such as: DEVICE = PSC|plot.ps run This will run the program and create the postscript file without closing the X display. Then to go on to your next plot: DEVICE = xwp run The above will close the current ps output file when going back to writing to the X display. You still have to "run" the program twice to create 2 output files, but you do not have to lose your current display window. Steve Chiswell -- NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.