home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / graphics / gnuplot / 411 < prev    next >
Encoding:
Text File  |  1992-11-18  |  2.5 KB  |  58 lines

  1. x-gateway: rodan.UU.NET from info-gnuplot to comp.graphics.gnuplot; Thu, 19 Nov 1992 01:39:42 EST
  2. Date: Wed, 18 Nov 1992 21:14:52 -0700
  3. From: dunkel@carbon.chem.utah.edu
  4. Message-ID: <9211190414.AA37670@carbon.chem.utah.edu>
  5. Subject: Several gnuplot_x11 windows on the screen?
  6. Newsgroups: comp.graphics.gnuplot
  7. Path: sparky!uunet!wendy-fate.uu.net!info-gnuplot
  8. Sender: info-gnuplot-request@arc.nasa.gov
  9. Lines: 47
  10.  
  11. I use gnuplot 3.2 to display NMR spectra. The > 32 k points/plot make
  12. it very attractive to zoom in on several interesting spectral regions.
  13. Hence I would like to keep several expansions (gnuplot_x11 windows) on
  14. the screen.
  15.  
  16. I wrote a program which does all the numerical stuff and for display
  17. purposes writes data files and various gnuplot command files like:
  18.  
  19. 78> cat gnuplot_cmds
  20.  ...
  21.  plot "SQPhase" t" DQ phases" w errorbars,\
  22.       "SQPLin" t" -1.334337  +.023084*f" w lines,\
  23.       "SQPQuad" t" -1.431 +.0257*f-.000016*f^2" w lines,\
  24.       "DQPhase" t" Shift phases" w errorbars,\
  25.       "DQPLin" t"  3.918367  +.004473*f" w lines,\
  26.       "DQPQuad" t"  3.636 +.0238*f-.000276*f^2" w lines
  27.  pause 10000000
  28.  
  29. and then calls "gnuplot gnuplot_cmds&" as often as necessary (...time
  30. for a coffee break). No, I don't like a "pause 3600". I would like to
  31. remove the gnuplot windows myself when I am sure I don't need them any
  32. more.  Well, the command file works except that the most convenient
  33. way to get rid of these windows is to use the window manager (mwm,
  34. RS/6000-320, AIX 3.2, X11R4) to close them.  That kills the
  35. "gnuplot_x11" processes but the "gnuplot" processes survive and fill
  36. up the process table:
  37.  
  38. ps augx | egrep gnuplot
  39. xccbond  11765  0.0  1.0  180  264  pts/2 S    18:48:27  0:00 gnuplot gnuplot_c
  40. xccbond  14380  0.0  1.0  184  264      - S    19:01:49  0:00 gnuplot gnuplot_c
  41.  ...
  42.  
  43. Is there a way to initiate the display of several gnuplot display
  44. windows simultaneously from another program without producing all
  45. these dead processes when the display windows get closed?
  46.  
  47. Thanks
  48.    __                                      _
  49.   |  )      o       |              |      | \            |        |
  50.   | /    _          |_   _    _   _|      |  |           |     _  |
  51.   |/\   /_) |  ^ ^  | |  _)  |   / |      |  | | |  ^ ^  |_)  /_) |
  52.   |  \_/\___|_| | |_| |_(_|__|___\_|      |_/__|_|_| | |_| \_/\___|
  53.  
  54.   Department of Chemistry            Office: (801) 581-7351         
  55.   2020 Henry Eyring Building b113    Home:   (801) 582-7516         
  56.   University of Utah                 FAX:    (801) 581-8433         
  57.   Salt Lake City, UT 84112           dunkel@chemistry.chem.utah.edu 
  58.