MathGroup Archive 2007

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

Search the Archive

Re: Drowing a vertical or horizontal line in a graphic



Hi Vincent,

you can e.g. use Epilog:

Plot[(x-1)^2,{x,0,2},Epilog\->{Red,Line[{{1,0},{1,1}}]}]

hope this helps, Daniel



Vicent wrote:

> I am using Mathematica 5 and I have a simple question to ask you.

> 

> I am drawing a function with "Plot" function.

> 

> How can I add a vertical or horizontal line (or several ones) at a

> given position?

> 

> For example, I want to draw   y = (x-1)^2, and also want a vertical

> line just at  x = 1,  in order to signal the point where that fuction

> gets its lower value.

> 

> How can I do it?

> 

> Thank you in advance.

> 

> --

> Vicent

> 

> 




  • Prev by Date: Re: Dynamic PlotLabel in Math6?
  • Next by Date: Re: Segregating the elements of a list based on given lower and upper
  • Previous by thread: Re: Drowing a vertical or horizontal line in a graphic
  • Next by thread: Re: Drowing a vertical or horizontal line in a graphic