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


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

Re: For loop not working as I expected - but now solved

From Ethan A Merritt <EAMerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: For loop not working as I expected - but now solved
Date 2018-02-21 22:38 -0800
Organization A noiseless patient Spider
Message-ID <p6logm$ci3$1@dont-email.me> (permalink)
References <p69m96$82n$1@dont-email.me> <p6dti7$cpk$1@solani.org> <p6eh76$i4j$1@dont-email.me> <p6ejat$rqg$1@solani.org>

Show all headers | View raw


Karl Ratzsch wrote:


> The command
> 
>   plot [j=1:7] dataf ...
> 
> should assign the value 1 to "j", and make a plot with abscissa
> range[1:7]. (The assignment is not actually done, but the parser also
> doesn't throw an error. It arguably should do one or the other, so
> that's a small bug.)
 
No bug there.  The dependent variable becomes j rather than x,
allowing you to say:

    plot [theta=1:7] sin(theta)


	Ethan

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


Thread

For loop not working as I expected Chris Elvidge <chris@mshome.net> - 2018-02-17 16:46 +0000
  Re: For loop not working as I expected Karl Ratzsch <mail.kfr@gmx.net> - 2018-02-19 08:15 +0100
    Re: For loop not working as I expected - but now solved Chris Elvidge <chris@mshome.net> - 2018-02-19 12:50 +0000
      Re: For loop not working as I expected - but now solved Karl Ratzsch <mail.kfr@gmx.net> - 2018-02-19 14:26 +0100
        Re: For loop not working as I expected - but now solved Chris Elvidge <chris@mshome.net> - 2018-02-19 14:22 +0000
          Re: For loop not working as I expected - but now solved Karl Ratzsch <mail.kfr@gmx.net> - 2018-02-19 16:11 +0100
            Re: For loop not working as I expected - but now solved Chris Elvidge <chris@mshome.net> - 2018-02-19 15:25 +0000
        Re: For loop not working as I expected - but now solved Ethan A Merritt <EAMerritt@gmail.com> - 2018-02-21 22:38 -0800
          Re: For loop not working as I expected - but now solved Karl Ratzsch <mail.kfr@gmx.net> - 2018-02-23 18:50 +0100

csiph-web