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


Groups > comp.graphics.apps.gnuplot > #4056 > unrolled thread

How to plot a vertical line in GNUPLOT, say x=3.

Started bydarshanbeniwal11@gmail.com
First post2018-11-16 22:41 -0800
Last post2018-11-20 08:28 -0800
Articles 7 — 4 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  How to plot a vertical line in GNUPLOT, say x=3. darshanbeniwal11@gmail.com - 2018-11-16 22:41 -0800
    Re: How to plot a vertical line in GNUPLOT, say x=3. Gavin Buxton <gavinbuxton@gmail.com> - 2018-11-17 06:18 -0800
      Re: How to plot a vertical line in GNUPLOT, say x=3. Darshan Beniwal <darshanbeniwal11@gmail.com> - 2018-11-20 03:30 -0800
      Re: How to plot a vertical line in GNUPLOT, say x=3. Karl Ratzsch <mail.kfr@gmx.net> - 2018-11-20 15:38 +0100
        Re: How to plot a vertical line in GNUPLOT, say x=3. Darshan Beniwal <darshanbeniwal11@gmail.com> - 2018-11-20 08:12 -0800
          Re: How to plot a vertical line in GNUPLOT, say x=3. Karl Ratzsch <mail.kfr@gmx.net> - 2018-11-20 17:26 +0100
            Re: How to plot a vertical line in GNUPLOT, say x=3. Darshan Beniwal <darshanbeniwal11@gmail.com> - 2018-11-20 08:28 -0800

#4056 — How to plot a vertical line in GNUPLOT, say x=3.

Fromdarshanbeniwal11@gmail.com
Date2018-11-16 22:41 -0800
SubjectHow to plot a vertical line in GNUPLOT, say x=3.
Message-ID<1ad12fd2-315d-4eec-be95-6faff09469c3@googlegroups.com>
how to plot a vertical line in gnuplot, say x=3.

i could do a horizontal using

plot 3

which would be the equivalent of y = 3.

anyone??
I NEED URGENT FOLKS PLEASE!!!

[toc] | [next] | [standalone]


#4057

FromGavin Buxton <gavinbuxton@gmail.com>
Date2018-11-17 06:18 -0800
Message-ID<e0d81b1f-cfd5-4de7-b156-a99d97572ef4@googlegroups.com>
In reply to#4056
plot (x<3?-10:10)

[toc] | [prev] | [next] | [standalone]


#4069

FromDarshan Beniwal <darshanbeniwal11@gmail.com>
Date2018-11-20 03:30 -0800
Message-ID<6c0d39f2-a7f9-4a01-b69a-ac82a102e7cf@googlegroups.com>
In reply to#4057
On Saturday, November 17, 2018 at 7:48:23 PM UTC+5:30, Gavin Buxton wrote:
> plot (x<3?-10:10)

Thank you, Gavin Buxton. Much obliged.!!!

[toc] | [prev] | [next] | [standalone]


#4071

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2018-11-20 15:38 +0100
Message-ID<pt169d$3kn$1@solani.org>
In reply to#4057
Am 17.11.2018 um 15:18 schrieb Gavin Buxton:
> plot (x<3?-10:10)
> 

nice, but not perfectly vertical ;-)

   plot "+" us (3):(x<3?-10:10) w l

otherwise

  set arrow 1 nohead from 3,-10 to 3,10

[toc] | [prev] | [next] | [standalone]


#4072

FromDarshan Beniwal <darshanbeniwal11@gmail.com>
Date2018-11-20 08:12 -0800
Message-ID<4a2d9bba-d73e-4c58-91bd-f91ced09f25a@googlegroups.com>
In reply to#4071
On Tuesday, November 20, 2018 at 8:08:39 PM UTC+5:30, Karl Ratzsch wrote:
> Am 17.11.2018 um 15:18 schrieb Gavin Buxton:
> > plot (x<3?-10:10)
> > 
> 
> nice, but not perfectly vertical ;-)
> 
>    plot "+" us (3):(x<3?-10:10) w l
> 
> otherwise
> 
>   set arrow 1 nohead from 3,-10 to 3,10

Yes, you are right Karl Ratzsch. I made a plot with your command also, gives me required to my work.
But Gavin Commands also gives me the perfect verticle line. I don't know why you said: "not perfectly verticle." 
Thank you Karl .

[toc] | [prev] | [next] | [standalone]


#4073

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2018-11-20 17:26 +0100
Message-ID<pt1ck3$89l$1@solani.org>
In reply to#4072
Am 20.11.2018 um 17:12 schrieb Darshan Beniwal:
> On Tuesday, November 20, 2018 at 8:08:39 PM UTC+5:30, Karl Ratzsch wrote:
>> Am 17.11.2018 um 15:18 schrieb Gavin Buxton:
>>> plot (x<3?-10:10)
>>>
>>
>> nice, but not perfectly vertical ;-)
>>
>>    plot "+" us (3):(x<3?-10:10) w l
>>
>> otherwise
>>
>>   set arrow 1 nohead from 3,-10 to 3,10
> 
> Yes, you are right Karl Ratzsch. I made a plot with your command also, gives me required to my work.
> But Gavin Commands also gives me the perfect verticle line. I don't know why you said: "not perfectly verticle." 
> Thank you Karl .


  set sample 100 # that's the default
  plot (x<3?-10:10)
  replot "+" us (3):(x<3?-10:10) w l

if you increase the sampling, it _looks_ nearly vertical, but still isn't.

[toc] | [prev] | [next] | [standalone]


#4074

FromDarshan Beniwal <darshanbeniwal11@gmail.com>
Date2018-11-20 08:28 -0800
Message-ID<29d265df-d777-426a-84fa-78cc582bea52@googlegroups.com>
In reply to#4073
On Tuesday, November 20, 2018 at 9:56:44 PM UTC+5:30, Karl Ratzsch wrote:
> Am 20.11.2018 um 17:12 schrieb Darshan Beniwal:
> > On Tuesday, November 20, 2018 at 8:08:39 PM UTC+5:30, Karl Ratzsch wrote:
> >> Am 17.11.2018 um 15:18 schrieb Gavin Buxton:
> >>> plot (x<3?-10:10)
> >>>
> >>
> >> nice, but not perfectly vertical ;-)
> >>
> >>    plot "+" us (3):(x<3?-10:10) w l
> >>
> >> otherwise
> >>
> >>   set arrow 1 nohead from 3,-10 to 3,10
> > 
> > Yes, you are right Karl Ratzsch. I made a plot with your command also, gives me required to my work.
> > But Gavin Commands also gives me the perfect verticle line. I don't know why you said: "not perfectly verticle." 
> > Thank you Karl .
> 
> 
>   set sample 100 # that's the default
>   plot (x<3?-10:10)
>   replot "+" us (3):(x<3?-10:10) w l
> 
> if you increase the sampling, it _looks_ nearly vertical, but still isn't.

Oh!!! Noted with thanks Karl.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web