home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / graphics / gnuplot / 617 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  2.3 KB

  1. Path: sparky!uunet!crdgw1!rpi!gatech!destroyer!ncar!noao!arizona!naucse!kendrick.cse.nau.edu
  2. From: jdc@kendrick.cse.nau.edu (John Campbell)
  3. Newsgroups: comp.graphics.gnuplot
  4. Subject: Re: splot/parametric
  5. Message-ID: <6294@naucse.cse.nau.edu>
  6. Date: 10 Jan 93 15:47:26 GMT
  7. References: <1iknkuINNknd@early-bird.think.com>
  8. Sender: news@naucse.cse.nau.edu
  9. Lines: 40
  10. Nntp-Posting-Host: kendrick.cse.nau.edu
  11. Originator: jdc@kendrick.cse.nau.edu
  12.  
  13. From article <1iknkuINNknd@early-bird.think.com>, by dkramer@think.com (David Kramer):
  14. > I am trying to plot a surface in 3.2, with the data (from a file) in three
  15. > columns representing x, y and z respectively. I find that when I do
  16. > "splot", I get an odd flat surface, and the extents of the plot are all
  17. > wrong. If I "set parametric" and replot, the graph looks correct, with
  18. > correct extents. The problem is that I need to simultaneously plot a 
  19. > non-parametric function. 
  20. > It seems to me that the graph I get with noparametric set is incorrect, 
  21. > and that this is a bug in gnuplot. Has anyone else had similar 
  22. > problems?
  23. > Thanks
  24. > David
  25.  
  26. I'm not sure, but I seem to remember some comments that splot data
  27. processing worked as expected in parametric mode only.  Hopefully someone
  28. else will clarify this.
  29.  
  30. However, any function (z=f(x,y)) that you want to plot can easily be
  31. written in parametric mode (z=x(t),y(t)).  The translation is simple.
  32.  
  33. Consider splot cos(x)/sin(y), in parametric mode, this would be 
  34. u,v,cos(u)/sin(v).  In other words, you have x(u,v),y(v,v),z(u,v) as
  35. three independent tuples to define a single relation.  Functions are
  36. special cases of the more general parametric relations and map
  37. as follows: f(x,y) = u,v,f(u,v).  In other words, there is no such
  38. thing as a "non-parametric function."
  39.  
  40. In reviewing this, I guess it should be in the FAQ.  I believe, but
  41. am not sure, that 3d data files are of two forms--and the most natural
  42. form is where each (x,y,z) column is considered independent of the
  43. others.  Possibly this is why you must specify parametric mode.  I'm
  44. not sure what the non-parametric data file plotting mode means.  Someone
  45. should post a follow-up and add it to the FAQ as well.
  46.  
  47. PS How's the FAQ coming along these days?
  48. -- 
  49.     John Campbell               John.Campbell@nau.edu
  50.         jdc@sunset.cse.nau.edu      JDC@NAUVAX.UCC.NAU.EDU
  51.