MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting a Vertical Line



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




  • Prev by Date: Re: series expansion of polys with real exponents
  • Next by Date: Error Bars
  • Prev by thread: Re: series expansion of polys with real exponents
  • Next by thread: Re: Plotting a Vertical Line