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.

Define

In[1]:=
v=Graphics[Line[{{3,-y},{3,y}}]];

 Give y any convenient value, say
In[2]:=
y = 3;

Then
In[3]:=
Show[v] 

does the trick. Use PlotRange and Axes -> True options in Show to
determine proper size of graph. 

Good luck,

Tomas Garza
Mexico City




  • Prev by Date: Error Bars
  • Next by Date: Re: odd behavior of NDSolve
  • Prev by thread: Re: Plotting a Vertical Line
  • Next by thread: RE: Plotting a Vertical Line