3
$\begingroup$

This question already has an answer here:

I have a problem with adding text to a ListLogLinearPlot plot. The text just doesn't show up anywhere. If I use the normal ListPlot, the text coordinates go perfectly wherever I want them to:

Text["a",{x,y}]

Using LogLog plot, I add the extra Log@ and it also works fine

Text["a",Log@{x,y}]

But there is no way I can figure out how to correctly place some text onto a ListLogLinearPlot. I googled the problem extensively to no avail. Help is much appreciated.

$\endgroup$

marked as duplicate by Öskå, bobthechemist, Sjoerd C. de Vries, Simon Woods, m_goldberg Aug 30 '14 at 20:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4
$\begingroup$

Only the abscissa is logarithmic, so:

 ListLogLinearPlot[Table[{x, x^2}, {x, 1, 2, 0.1}], 
 Epilog -> {Text["Hello", {Log[1.2], 3.0}]}]
$\endgroup$
  • $\begingroup$ Thank you so much! I spent too much time on this... $\endgroup$ – drabus Aug 29 '14 at 23:10
3
$\begingroup$
data = Table[{10^n, n}, {n, 1, 5}];

ListLogLinearPlot[
 data,
 Epilog -> Table[Text[#[[i]], {Log @ #[[i]], i + 0.5}], {i, 1, Length @ #}] &[First /@ data],
 PlotRangePadding -> {1, 1},
 PlotTheme -> "Detailed"]

enter image description here

$\endgroup$

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