home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!caen!hellgate.utah.edu!irit.cs.utah.edu!gershon
- From: gershon%irit.cs.utah.edu@cs.utah.edu (Elber Gershon)
- Subject: Re: Locus
- Date: 17 Nov 92 16:00:12 MST
- Message-ID: <1992Nov17.160012.29870@hellgate.utah.edu>
- Organization: University of Utah CS Dept
- References: <1992Nov16.013111.11911@en.ecn.purdue.edu>
- Lines: 31
-
- In article <1992Nov16.013111.11911@en.ecn.purdue.edu> kwan@en.ecn.purdue.edu (Yik-Yin Edwin Kwan) writes:
- >Is there a way to plot a locus with Gnuplot? For example, how can I
- >plot x**2 + y**2 = 1 as a circle, without using the parametric form?
- >
- I have seen this question several times, so it might be a candidate for
- FAQ.
- What you call locus is an implicit curve representation and gnuplot
- does not support it explicitly... However you can draw this curve as follows.
- Splot the explicit surface x**2 + y**2 - 1, and contour it at z = 0 (a
- single contour at z = 0). 'set view 0,0' and 'set nosurface' will give
- you the 2D plot of the contour you need without the surface.
- Mathematically speaking, an implicit object is the zero set of an
- explicit object of one dimension up. An implicit curve is the zero set
- of an explicit surface, and implicit surface is the zero set of an
- explicit hypersurface in 4d. Contouring is just constant sets of the
- surface, and so the zero set of an explicit surface (=implicit curve)
- is the contour at z = 0.
-
- Here is a gnuplot script:
-
- set contour
- set cntrparam discrete 0 # may be off here
- set view 0,0
- set nosurface
- splot x**2 + y**2 - 1
-
- Gershon
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- Elber Gershon gershon@cs.utah.edu
- 918 University village Tel: (801) 582-1807 (Home)
- Salt Lake City, Utah 84108-1180 Tel: (801) 581-5642 (Work)
-