Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use Epilog in my plots but the way that Epilog uses coordinate positions isn't making sense to me. As a minimal example consider,

LogPlot[Sin[x], {x, 0, π}, Epilog -> {Text["x", {π, 0.2}]}]

I'd have expected this to put an "x" in the center of the graph but instead it shows up in the corner:

enter image description here

I've also tried ListLogplot and other graphics but they all produce similar results.

How do I force Epilog to use the same positions as the plot?

Note: I'm using Mathematica V10 on Linux.

share|improve this question
up vote 5 down vote accepted

As shown by the graphic, the Log is applied on the y-axis, thus you need to apply Log to the y coordinate of your point:

LogPlot[Sin[x], {x, 0, π}, Epilog -> {Text["x", {π/2, Log@0.2}]}]

Mathematica graphics

For completeness purposes as suggested by rcollyer:

LogLinearPlot[Tanh[x], {x, 1, 100}, Epilog -> {Text["x", {Log@10, 0.98}]}]

Mathematica graphics

  Sum[i/(x^2 - 2 i 0.99 x + i^2), {i, {1, 10, 100}}], {x, 0.1, 1000}, 
  Epilog -> {Text["x", Log@{10, 10}]}]

Mathematica graphics

share|improve this answer
Ah, I guess I should have tried that. Perfect, thanks! – JeffDror Jul 15 '14 at 13:10
@JeffDror We all faced the same issue ;o) And for LogLogPlot it has to be applied to both coordinates of course :) – Öskå Jul 15 '14 at 13:11
@Öskå for completeness, would you post examples with LogLinearPlot and LogLogPlot, too? – rcollyer Jul 15 '14 at 13:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.