Path: csiph.com!news.mixmin.net!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: How to plot a vertical line in GNUPLOT, say x=3. Date: Tue, 20 Nov 2018 17:26:42 +0100 Organization: solani.org Lines: 24 Message-ID: References: <1ad12fd2-315d-4eec-be95-6faff09469c3@googlegroups.com> <4a2d9bba-d73e-4c58-91bd-f91ced09f25a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1542731203 8501 127.0.0.43 (20 Nov 2018 16:26:43 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 20 Nov 2018 16:26:43 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:QwxTPTHtbvyce0RDhV5zQy2NEeQ= Content-Language: en-GB In-Reply-To: <4a2d9bba-d73e-4c58-91bd-f91ced09f25a@googlegroups.com> X-User-ID: eJwNw4ERACEIA7CVBGlhHd7K/iP4uQs2jSeDYGAw+84f5mlQo+SRSlezq9qwgrrGqPyocT0a+BEI Xref: csiph.com comp.graphics.apps.gnuplot:4073 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.