Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Drowing a vertical or horizontal line in a graphic

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77315] Re: Drowing a vertical or horizontal line in a graphic
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 6 Jun 2007 07:30:01 -0400 (EDT)
  • References: <f43h19$2sm$1@smc.vnet.net>


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