X-Received: by 2002:a6b:8e83:: with SMTP id q125mr1662164iod.9.1542731294415; Tue, 20 Nov 2018 08:28:14 -0800 (PST) X-Received: by 2002:a9d:5403:: with SMTP id j3mr46229oth.2.1542731294170; Tue, 20 Nov 2018 08:28:14 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!z5-v6no552649ite.0!news-out.google.com!v141ni717ita.0!nntp.google.com!z5-v6no552644ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 20 Nov 2018 08:28:13 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=43.231.57.43; posting-account=8SNwFAoAAACMlYSccTSYy0kXtaQrNAbU NNTP-Posting-Host: 43.231.57.43 References: <1ad12fd2-315d-4eec-be95-6faff09469c3@googlegroups.com> <4a2d9bba-d73e-4c58-91bd-f91ced09f25a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <29d265df-d777-426a-84fa-78cc582bea52@googlegroups.com> Subject: Re: How to plot a vertical line in GNUPLOT, say x=3. From: Darshan Beniwal Injection-Date: Tue, 20 Nov 2018 16:28:14 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 26 Xref: csiph.com comp.graphics.apps.gnuplot:4074 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.