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? Can someone suggest an alternative method to
superimpose a line over a loglinearplot?
since Epilog wotk after all Mathematica actions
LogLinearPlot[x, {x, 1, 10},
Epilog -> Line[{Log[#[[1]]], #[[2]]} & /@ {{4, 0}, {4, 10}}]]
will do it.
Regards
Jens
David Park
djm...@comcast.net
http://home.comcast.net/~djmpark/
LogLinearPlot[x, {x, 1, 10}, Epilog -> Line[{{Log@4, 0}, {Log@4,
10}}]]
If you had used LogPlot, you would need to take Log of the y-
coordinates in your Epilog command; if you had used LogLogPlot, take
the Log of both x- and y-coordinates.
-Daniel
>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}]
LogLinearPlot[x, {x, 1, 10},
Epilog -> Line[{Log[4], #} & /@ {0, 10}]]
Bob Hanlon
---- wiso <gtu...@alice.it> 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? Can someone suggest an alternative method to
Hi,
I am also always struggling with manual positioning in any Log-Plot.
Problem is that Epilog doesn't know how LogLinearPlot rescales the Image-
Coordinates. Try:
LogLinearPlot[x, {x, 1, 10},
Epilog -> Line[{{Log@4, 0}, {Log@4, 10}}]]
Cheers,
Markus
Thanks, now it works, but I think it's not very intuitive.