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: [mg104260] Re: [mg104232] How create vertical line using Plot?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 25 Oct 2009 01:07:54 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Use Epilog and Line

f[x_] := (x - 1) (x - 2) (x - 3)

mm = x /. Solve[f'[x] == 0, x];

Plot[f[x], {x, 3/4, 13/4},
 Epilog -> {Red,
   AbsoluteDashing[{5, 5}],
   Line[{{#, 0}, {#, f[#]}}] & /@ mm}]


Bob Hanlon

---- davef <davidfrick2003 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?


--

Bob Hanlon



  • Prev by Date: Re: ReplaceAll and rules from a list v7.0
  • Next by Date: Re: How create vertical line using Plot?
  • Previous by thread: RE: How create vertical line using Plot?
  • Next by thread: Re: How create vertical line using Plot?