Re: Plotting a Vertical Line
- To: mathgroup@smc.vnet.net
- Subject: [mg11700] Re: Plotting a Vertical Line
- From: Allan Hayes <hay@haystack.demon.co.uk>
- Date: Sat, 21 Mar 1998 18:35:35 -0500
- References: <6esdkf$57j@smc.vnet.net>
Frank Roescher wrote:
>
> How do I get Mathematica to plot the graph of x = 3, i.e., a vertical
> line in 2D? Thanks.
Frank:
ParametricPlot[{3,y},{y,-1,2}]
Plot[Sin[x],{x,0,6}, Prolog ->{Line[{{3,-1},{3,2}}]}] (*or Epilog*)
Show[%, Graphics[{Line[{{Pi/2,-1},{Pi/2,2}}]}]]
--
Allan Hayes
Training and Consulting
Leicester, UK
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642