Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch 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: References: <661235d5-152e-4168-b657-87432e7eade1@googlegroups.com> <349c35dd-78cb-e7d9-9041-9f1d84ca2009@t-online.de> 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: Cancel-Lock: sha1:mRPEziCmPPXyA7phEjoUtD0BBj8= X-User-ID: eJwNysERACAIA7CVAKHgOIjX/UfQvBMLiklHwINB7syrkC41XNORUdmHbtPWaDp+qJOLWlL2ABIqEJs= Content-Language: de-DE-1901 Xref: csiph.com comp.graphics.apps.gnuplot:4252 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 {} {:{} {:{} {:{} {:{} {:}}}}} 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