Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!bl1g2000vbb.googlegroups.com!not-for-mail From: Bengt T Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Can contour surface model be saved to file? Date: Fri, 17 Jun 2011 09:08:52 -0700 (PDT) Organization: http://groups.google.com Lines: 47 Message-ID: <5d1c19ce-1885-44df-a9c8-fb968d1422d3@bl1g2000vbb.googlegroups.com> References: <5fcfa1fb-f678-4d88-887e-57fa4303df99@b3g2000vbm.googlegroups.com> <409ab62a-840a-443d-95d3-6e6e4338bbbc@e35g2000yqc.googlegroups.com> NNTP-Posting-Host: 213.64.58.235 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1308326933 19627 127.0.0.1 (17 Jun 2011 16:08:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 17 Jun 2011 16:08:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: bl1g2000vbb.googlegroups.com; posting-host=213.64.58.235; posting-account=rPxKYAkAAACZL9Ia3g3cZHelK-_cv8q3 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110319 SUSE/3.6.16-0.2.1 Firefox/3.6.16,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:384 On Jun 17, 12:07=A0pm, Johan B wrote: > On Jun 17, 1:52=A0am, Bengt T wrote: > > > > > I have a contour plot (meshed surface) build from file with x-, y- and > > z-coordinates and wish to save the mathematical model, generated by > > gnuplot, in some way. The goal is to use the model to generate z- > > coordinate from new x- and y-coordinates. > > > Example of input file (x, y, z): > > 1 1 1 > > 1 2 2 > > 1 3 3 > > 2 1 2 > > 2 2 4 > > 2 3 1 > > etc. > > > After saving the model I wish to be able to generate z-coordinate for > > any x-/y-coordinates within the surface. For example, x=3D1.8 and y=3D1= .4. > > > Is it possible to save the model generated in a plot or are there any > > other suggestions? > > Hi Bengt! > > You can always use the "save" command which saves userdefi=0Cned > functions, variables, the set term status, all set options, or all > of these, plus the last plot (splot) command to the speci=0Ced file > with the save command and later reload them with the "load" command. > All according to the manual athttp://www.gnuplot.info/docs_4.4/gnuplot.pd= f > > To the best of my knowledge, you would have to use a suitable 2- > dimensional function, then fit with the fit command as described in:http:= //gnuplot.sourceforge.net/demo_4.4/fit.html > > This was you can use the function with the generated fit parameters to > later get a z value for any given x and y. > > There might be other ways as well, but then beyond my (somewhat > limited) knowledge. Thanks for response. I looked into the gnuplot.pdf file and found "table", which maybe is what I was searching for.