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


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

Re: Substract value from contour line to surface

Newsgroups comp.graphics.apps.gnuplot
Date 2018-09-18 07:34 -0700
References <452156f4-823d-4c96-822e-0ef8d56b0d81@googlegroups.com> <g0agueF642eU1@mid.dfncis.de> <1b1b4ef8-c458-426a-872b-cba3db812414@googlegroups.com> <pnq3gj$bkn$1@solani.org> <dde48b84-344a-45d1-b6ee-622931e8eea0@googlegroups.com>
Message-ID <97b7cda5-a9d0-43c8-90db-cfaa918867c6@googlegroups.com> (permalink)
Subject Re: Substract value from contour line to surface
From Gavin Buxton <gavinbuxton@gmail.com>

Show all headers | View raw


I too am confused, but maybe its because your system is complex. Let me try and see if a simpler system helps. So if you wanted to subtract a function from a plot of data you could do something like this. 

Here's my data in a temporary file named temp.dat

0 1
1 2
2 4
3 7
4 11
5 16

Now I want to subtract a function f(x) which I define below.

f(x) = x

and then plot the data, but my y-axis is the data minus the function evaluated at x (in column 1)

plot 'temp.dat' u 1:($2 - f($1))


I'm not too sure if this is what you are trying to do or not, but I hope it helps!

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


Thread

Substract value from contour line to surface "laterite@laposte.net" <hematitefr@gmail.com> - 2018-09-17 08:17 -0700
  Re: Substract value from contour line to surface Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2018-09-17 22:25 +0200
    Re: Substract value from contour line to surface "laterite@laposte.net" <hematitefr@gmail.com> - 2018-09-17 22:08 -0700
      Re: Substract value from contour line to surface Karl Ratzsch <mail.kfr@gmx.net> - 2018-09-18 07:46 +0200
        Re: Substract value from contour line to surface "laterite@laposte.net" <hematitefr@gmail.com> - 2018-09-18 00:36 -0700
          Re: Substract value from contour line to surface Gavin Buxton <gavinbuxton@gmail.com> - 2018-09-18 07:34 -0700
          Re: Substract value from contour line to surface Karl Ratzsch <mail.kfr@gmx.net> - 2018-09-18 17:43 +0200
      Re: Substract value from contour line to surface Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2018-09-18 20:11 +0200

csiph-web