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


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

Re: Plot data using every

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plot data using every
Date 2019-10-31 08:38 +0100
Organization solani.org
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>

Show all headers | 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