Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Zero-order hold interpolation Followup-To: comp.graphics.apps.gnuplot Date: Tue, 26 Apr 2011 09:35:53 -0700 Organization: gnuplot development team Lines: 15 Message-ID: References: <7f91ef94-a8f3-4c7d-ae0b-60ce98b207c8@f31g2000pri.googlegroups.com> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Tue, 26 Apr 2011 16:35:54 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="joalffpZlyHxFtpFd/PRrw"; logging-data="25100"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1885IDpUpe2Xl8B07WKlUi9" User-Agent: KNode/4.4.3 Cancel-Lock: sha1:oDjYkQbH7zwQI/cCocNciV8Ihq0= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:280 Jonathan Drolet wrote: > > I'm looking to plot values from a datafile with lines; this part is > quite easy with gnuplot. My problem, however, is that gnuplot will > linearly interpolate between datapoints. This is usually what I need, > but for this particular plot, I want the line to be constant between > two datapoints (zero-order hold interpolation), but can't seem to > figure out an easy way to do this. > > Is there a way to do this with gnuplot? Plot styles "steps", "fsteps", and "histeps" are all variants on what you want. http://gnuplot.sourceforge.net/demo/steps.html