3
$\begingroup$

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$
0

2 Answers 2

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$
1
  • $\begingroup$ Thank you so much! I spent too much time on this... $\endgroup$
    – drabus
    Aug 29, 2014 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.