home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / gnuplot / 672 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.graphics.gnuplot
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!rsm1.physics.uiuc.edu!lewart
  3. From: d-lewart@uiuc.edu (Daniel S. Lewart)
  4. Subject: Re: plot help ?
  5. References: <1993Jan20.232446.1@utxvms.cc.utexas.edu>
  6. Message-ID: <C178uH.M7E@news.cso.uiuc.edu>
  7. Originator: lewart@rsm1.physics.uiuc.edu
  8. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  9. Reply-To: d-lewart@uiuc.edu (Daniel S. Lewart)
  10. Organization: UIUC Physics Department
  11. Date: Thu, 21 Jan 1993 10:23:04 GMT
  12. Lines: 31
  13.  
  14. In article <1993Jan20.232446.1@utxvms.cc> mtaw621@utxvms.cc.utexas.edu writes:
  15.  
  16. > I am a novice in gnuplot.
  17.  
  18. Read the manual.
  19.  
  20. > I need to draw an orthant (x by y) where [x=0:10] and [y=0:10]
  21. > and plot on it two straight lines:
  22. > the first goes horizontally from x=1 to x=3 at y=2 and
  23. > the second one goes vertically at x=5 from y=1 to y=7.
  24.  
  25. Below are the data file ('doi.dat') and the `gnuplot' script file.
  26.  
  27. Daniel Lewart
  28. d-lewart@uiuc.edu
  29. -------------------------------------------------------------------------------
  30. # the first goes horizontally from x=1 to x=3 at y=2 and
  31. 1    2
  32. 3    2
  33.  
  34. # the second one goes vertically at x=5 from y=1 to y=7.
  35. 5    1
  36. 5    7
  37. -------------------------------------------------------------------------------
  38. set data style lines
  39. set xrange [0:10]
  40. set yrange [0:10]
  41.  
  42. plot 'doi.dat'
  43. pause -1 'Hit return to continue'
  44. -------------------------------------------------------------------------------
  45.