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


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

Re: set range for second independent variable in special file '++'

From Ethan A Merritt <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: set range for second independent variable in special file '++'
Date 2017-03-20 12:36 -0700
Organization gnuplot development
Message-ID <oapapn$po7$1@dont-email.me> (permalink)
References <oao0pn$80p$1@solani.org> <oap0et$g16$1@dont-email.me> <oap546$3i0$1@solani.org>

Show all headers | View raw


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) 

Are you thinking that this would be easier if u/x and v/y were decoupled?   
What would your new set of commands look like?

    Ethan

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


Thread

set range for second independent variable in special file '++' Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-20 08:36 +0100
  Re: set range for second independent variable in special file '++' Ethan A Merritt <EAMerritt@gmail.com> - 2017-03-20 09:39 -0700
    Re: set range for second independent variable in special file '++' Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-20 18:56 +0100
      Re: set range for second independent variable in special file '++' Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-03-20 12:36 -0700
        Re: set range for second independent variable in special file '++' Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-03-20 12:38 -0700
          Re: set range for second independent variable in special file '++' Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-24 13:15 +0100
            Re: set range for second independent variable in special file '++' Ethan A Merritt <EAMerritt@gmail.com> - 2017-03-26 12:30 -0700
              Re: set range for second independent variable in special file '++' Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-27 03:35 +0200
                Re: set range for second independent variable in special file '++' Ethan A Merritt <EAMerritt@gmail.com> - 2017-03-26 23:00 -0700
                Re: set range for second independent variable in special file '++' Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-27 22:15 +0200
                Re: set range for second independent variable in special file '++' Karl Ratzsch <mail.kfr@gmx.net> - 2017-04-02 19:02 +0200
                Re: set range for second independent variable in special file '++' Ethan A Merritt <EAMerritt@gmail.com> - 2017-04-05 22:09 -0700

csiph-web