Re: How create vertical line using Plot?
- To: mathgroup at smc.vnet.net
- Subject: [mg104263] Re: How create vertical line using Plot?
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Sun, 25 Oct 2009 01:08:27 -0400 (EDT)
On 10/24/09 at 2:41 AM, davidfrick2003 at yahoo.com (davef) wrote:
>How can I create a vertical line using the Plot command?
>I can hack it using "y" = very big number times "x" but is there a
>more elegant way to do it?
Here are two ways:
Plot[x, {x, 0, 1}, GridLines -> {{.5}, None}]
Plot[x, {x, 0, 1}, Epilog -> {Line at {{.5, -.1}, {.5, 1.1}}}]