Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: How create vertical line using Plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104246] Re: How create vertical line using Plot?
  • From: Hannes Kessler <HannesKessler at hushmail.com>
  • Date: Sun, 25 Oct 2009 01:05:16 -0400 (EDT)
  • References: <hbu7s7$7ic$1@smc.vnet.net>

Hello Dave,

here is an example for a plot with red, dashed, vertical lines:

Plot[x^2, {x, -2, 2},  Epilog -> {Red, Dashed, Line[{{-1, -10}, {-1,
10}}], Line[{{1, -10}, {1, 10}}]}]

Best regards,
Hannes Kessler

On 24 Okt., 08:46, davef <davidfrick2... at yahoo.com> wrote:
> How can I create a vertical line using the Plot command?
>
> I can hack it using "y" = very big number times "x" but is there a
> more elegant way to do it?



  • Prev by Date: Re: How create vertical line using Plot?
  • Next by Date: Re: How to format Superscript and Subscript for a symbol to the same vertical level??
  • Previous by thread: Re: How create vertical line using Plot?
  • Next by thread: Re: How create vertical line using Plot?