Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #455
| From | Christoph Bersch <usenet@bersch.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Plotting y(i)-y(i-1) vs x(i) |
| Date | 2011-07-20 09:03 +0200 |
| Organization | GWDG, Goettingen |
| Message-ID | <j05uk4$29qg$1@gwdu112.gwdg.de> (permalink) |
| References | <4125d32f-f8f0-465c-a18f-379177459896@glegroupsg2000goo.googlegroups.com> |
On 20.07.2011 01:27, Victor wrote: > I have a data file with 2 columns for X and Y values. I want > to plot delta Y vs X, i.e. at each point I'll have y(i)-y(i-1) for > the current y value and x(i) for the x value. Try: y = 0 oldy = 0 diff(x) = (oldy = y, y = x, y - oldy) plot '+' u 1:(sin($1)), '+' u 1:(diff(sin($1))) only the first point is not defined properly. Christoph
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
Plotting y(i)-y(i-1) vs x(i) Victor <victor.prosolin@gmail.com> - 2011-07-19 16:27 -0700 Re: Plotting y(i)-y(i-1) vs x(i) Christoph Bersch <usenet@bersch.net> - 2011-07-20 09:03 +0200
csiph-web