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


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

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

From Chris Elvidge <chris@mshome.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: For loop not working as I expected - but now solved
Date 2018-02-19 15:25 +0000
Organization A noiseless patient Spider
Message-ID <p6eq9d$ibo$1@dont-email.me> (permalink)
References (1 earlier) <p6dti7$cpk$1@solani.org> <p6eh76$i4j$1@dont-email.me> <p6ejat$rqg$1@solani.org> <p6emic$npo$1@dont-email.me> <p6epe8$g0$1@solani.org>

Show all headers | View raw


On 19/02/2018 03:11 pm, Karl Ratzsch wrote:
> Am 19.02.2018 um 15:22 schrieb Chris Elvidge:
> 
>> I put it down to my misreading (i.e. not fully understanding what is
>> going on) of this (first example) where 'plot [-10:10]' is used; 'for'
>> is not mentioned:
>>
>> http://gnuplot.sourceforge.net/demo_svg_5.0/simple.html
> 
> 
> The full syntax for plot iteration is this:
> 
>    plot {[xmin:xmax] {[ymin:ymax]}} for [i=a:b] F(x)
> 
> , where everything in curly brackets is optional. Try
> 
>    plot [-2:2] [-5:10] x**2
> 
> against
> 
>    plot for [i=0:3] x**i
> 
> xmin,xmax,ymin,ymax just give the length of the axes, while iteration
> needs the "for" keyword.
> 
Got it now - I think!
Cheers again


-- 

Chris Elvidge, England

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