Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: For loop not working as I expected - but now solved Date: Fri, 23 Feb 2018 18:50:07 +0100 Organization: solani.org Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1519408205 1145 eJwNysEBwEAEBMCWuFhWOeHov4Rk3oPH1TvM4YbFnnTWDKyLyZeKk9G3MiSb+Lcc7mQxbFXuBxH1EJY= (23 Feb 2018 17:50:05 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 23 Feb 2018 17:50:05 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Content-Language: de-DE-1901 X-NNTP-Posting-Host: eJwFwYEBwDAEBMCVgvdkHCX2H6F3bhR2gE74+p6QfVCi4950PLyqigw9TFO07pTtZyjh2PwMhBDU X-User-ID: eJwFwYEBwCAIA7CXZLSA54jS/09YQg+LmwgGKGqvxGgumpYmLVYozzmvSx896fPad3urMPgBJysRnw== In-Reply-To: Cancel-Lock: sha1:NcbmBYg3SbS79RN+h9N7E7qc+Eg= Xref: csiph.com comp.graphics.apps.gnuplot:3888 Am 22.02.2018 um 07:38 schrieb Ethan A Merritt: > 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) Yes, of course. Sorry for the noise. Karl