Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #384

Re: Can contour surface model be saved to file?

From Bengt T <bengt_tornqvist@hotmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Can contour surface model be saved to file?
Date 2011-06-17 09:08 -0700
Organization http://groups.google.com
Message-ID <5d1c19ce-1885-44df-a9c8-fb968d1422d3@bl1g2000vbb.googlegroups.com> (permalink)
References <5fcfa1fb-f678-4d88-887e-57fa4303df99@b3g2000vbm.googlegroups.com> <409ab62a-840a-443d-95d3-6e6e4338bbbc@e35g2000yqc.googlegroups.com>

Show all headers | View raw


On Jun 17, 12:07 pm, Johan B <johan.ba...@gmail.com> wrote:
> On Jun 17, 1:52 am, Bengt T <bengt_tornqv...@hotmail.com> 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=1.8 and y=1.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ned
> functions, variables, the set term status, all set options, or all
> of these, plus the last plot (splot) command to the specied 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.pdf
>
> 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.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Can contour surface model be saved to file? Bengt T <bengt_tornqvist@hotmail.com> - 2011-06-16 22:52 -0700
  Re: Can contour surface model be saved to file? Johan B <johan.barne@gmail.com> - 2011-06-17 03:07 -0700
    Re: Can contour surface model be saved to file? Bengt T <bengt_tornqvist@hotmail.com> - 2011-06-17 09:08 -0700
  Re: Can contour surface model be saved to file? Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-06-17 21:26 +0200
    Re: Can contour surface model be saved to file? Bengt T <bengt_tornqvist@hotmail.com> - 2011-06-19 00:37 -0700
      Re: Can contour surface model be saved to file? Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-06-19 16:00 +0200
        Re: Can contour surface model be saved to file? Ingo Thies <ingo.thies@gmx.de> - 2011-06-19 21:30 +0200
          Re: Can contour surface model be saved to file? Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-06-21 00:12 +0200
            Re: Can contour surface model be saved to file? Ingo Thies <ingo.thies@gmx.de> - 2011-06-21 16:00 +0200

csiph-web