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: set range for second independent variable in special file '++' Date: Mon, 27 Mar 2017 22:15:43 +0200 Organization: solani.org Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1490645742 30711 eJwFwYEBwCAIA7CXqBSY51SU/09YEp7ILmYkY2Jg871qO7y+Wbd15KDDxcILpHpr3Sq1j60fHQMRFw== (27 Mar 2017 20:15:42 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 27 Mar 2017 20:15:42 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:JxNnpCDs18oXnK5zewpQFkg6ivc= X-User-ID: eJwFwYEBACAEBMCVEv80jsT+I3QHpbDcCBoGo8so4i1nGA8rohtwZs4uvyXmd3se3ZjXMh8HcxDc In-Reply-To: X-NNTP-Posting-Host: eJwVw4kNwDAIBLCVgIRvHALc/iNUtWQ9xtZ+Te0qFKTV/p/iVPCD07St5GKkFkxRT46EZXDgAzD3EZQ= Xref: csiph.com comp.graphics.apps.gnuplot:3599 Am 27.03.2017 um 08:00 schrieb Ethan A Merritt: > Karl Ratzsch wrote: >> Not much of a downside, but what about "+" ? Will it use trange now? >> That's a bit strong, re backwards compatibility. ? > > Good question. > > Although the syntax required is not quite the same as for '++' > you can already effectively do that like this: > > set xrange [1:100] > plot sample [t=10:20] '+' using (t):(sin(t)) Ja, that's definitely sufficient, and probably better than reusing the parametric 't' variable outside of it's original scope. For "++", this plot sample [var1=10:20] [var2=-3:3] '++' using ... would be my favourite (nice not having to use the cryptic $n's, ranges can be varied for subplots), but it's probably heck to get the parser to recognise it. One "sample" keyword demands for one following range specifer, a second one might not be so easy to catch. ?