MathGroup Archive 2009

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

Search the Archive

Re: Epilog doesn't work with loglinearplot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97146] Re: Epilog doesn't work with loglinearplot
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Fri, 6 Mar 2009 04:26:30 -0500 (EST)

On 3/5/09 at 4:51 AM, gtu2003 at alice.it (wiso) wrote:

>I've have a problem with loglinearplot

>Plot[x, {x, 1, 10}, Epilog -> Line[{{4, 0}, {4, 10}}]]

>Ok, I see the line

>LogLinearPlot[x, {x, 1, 10}, Epilog -> Line[{{4, 0}, {4, 10}}]]

>why I don't see the line?

Because the range of the plot doesn't include the coordinates
for the line. The line will appear at x = e^4 which is greater
than 10. You can see this is the case by doing:

LogLinearPlot[x, {x, 1, 60}, Epilog -> Line[{{4, 0}, {4, 10}}]]

You can get the desired result by doing:

LogLinearPlot[x, {x, 1, 10},
  Epilog -> Line[{{Log@4, 0}, {Log@4, 10}}]]

And since you are drawing a vertical line across the entire plot
an alternative would be:

LogLinearPlot[x, {x, 1, 10}, GridLines -> {{4}, None}]



  • Prev by Date: Style for function calls?
  • Next by Date: Re: find the maxima in a function
  • Previous by thread: Re: Epilog doesn't work with loglinearplot
  • Next by thread: RE: Epilog doesn't work with loglinearplot