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


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

Re: Plot data using every

Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plot data using every
Date Thu, 31 Oct 2019 08:38:25 +0100
Organization solani.org
Lines 29
Message-ID <qpe31k$gos$1@solani.org> (permalink)
References <661235d5-152e-4168-b657-87432e7eade1@googlegroups.com> <349c35dd-78cb-e7d9-9041-9f1d84ca2009@t-online.de> <fb8066d6-4589-4feb-8c3d-d0dbba902e3c@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1572507508 17180 127.0.0.43 (31 Oct 2019 07:38:28 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 31 Oct 2019 07:38:28 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
In-Reply-To <fb8066d6-4589-4feb-8c3d-d0dbba902e3c@googlegroups.com>
Cancel-Lock sha1:mRPEziCmPPXyA7phEjoUtD0BBj8=
X-User-ID eJwNysERACAIA7CVAKHgOIjX/UfQvBMLiklHwINB7syrkC41XNORUdmHbtPWaDp+qJOLWlL2ABIqEJs=
Content-Language de-DE-1901
Xref csiph.com comp.graphics.apps.gnuplot:4252

Show key headers only | View raw


Am 30.10.2019 um 20:29 schrieb s1291:
> On Wednesday, October 30, 2019 at 8:19:30 PM UTC+1, Hans-Bernhard Bröker wrote:
>> Am 30.10.2019 um 15:38 schrieb s1291:
>>
>>> What if I want to plot the points with even x value using 'every' keyword? that is, the points (2, 2.0), (4, 4.0) (6, 6.0).
>>
>> Then you continue reading the documentation of the 'every' option, which
>> you already found.
> 
> Thank you for your reply. 
> I've read the documentation but I don't see how to do that.

Read again ;) (under "help every")

      plot 'file' every {<point_incr>}
                          {:{<block_incr>}
                            {:{<start_point>}
                              {:{<start_block>}
                                {:{<end_point>}
                                  {:<end_block>}}}}}

Your default start_point is zero. You just set it to "1":

    plot dataf every 2::1

Alternative (plot even data, not even point/line numbers)

    plot dataf us ($1 % 2 == 0 ? $1 : NaN):2

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


Thread

Plot data using every s1291 <samirmath01@gmail.com> - 2019-10-30 07:38 -0700
  Re: Plot data using every Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2019-10-30 20:19 +0100
    Re: Plot data using every s1291 <samirmath01@gmail.com> - 2019-10-30 12:29 -0700
      Re: Plot data using every Karl Ratzsch <mail.kfr@gmx.net> - 2019-10-31 08:38 +0100

csiph-web