Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: set range for second independent variable in special file '++' Date: Mon, 20 Mar 2017 12:38:49 -0700 Organization: gnuplot development Lines: 54 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Mon, 20 Mar 2017 19:35:55 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ed8c9d0b7af68b17b2e1fdd0ef4870b1"; logging-data="26765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ukPgWwaUThFYjeUrfgXu1" User-Agent: KNode/4.14.5 Cancel-Lock: sha1:uuOMdcfs6qtRSRkP/0qD267ak4s= Xref: csiph.com comp.graphics.apps.gnuplot:3588 Ethan A Merritt wrote: > Karl Ratzsch wrote: > >> Am 20.03.2017 um 17:39 schrieb Ethan A Merritt: >>> Karl Ratzsch wrote: >>>> . Can i set the range for the second independent variable of "++" and >>>> still set the x,y display range independently? >>>> >>>> I managed to do it plotting the numbers to a table, and then plotting >>>> that with different (auto)ranging: >>> >>> Those commands as shown do not work. >>> There must be some other stuff you don't show. >>> I still a can't figure out what you are aiming for here, >>> so I can't offer a suggestion how else to get there. >> >> (Sorry for the copypasted nonsense.) >> >> set xr [-9:9] ; set yr [-1:1] >> set table $dat >> splot '++' using (cos($1)):(sin($1)):($1+$2) w l >> unset table >> >> reset >> splot $dat w l >> >> It seems I can only specify one independent variable with range for >> '++'. Is that so? > > Yes, but... > That's mostly because it's not clear how one could use it. > If you have an example of a type of plot that this would allow, > I'd be happy to look into adding it. > >> I want to plot a ribbon wound on a cylindrical core (not actually such a >> boring one, but nevermind). > > Hmm. The way I know of is this: > > set xrange [-1:1] > set yrange [-1:1] > rise = 3. > radius = 0.5 > set parametric > splot radius*sin(u), radius*cos(u), (rise*u-v) Bonus points for style: set isosample 100, 10 set hidden3d replot