3
Plot[Sin[x], {x, 0, 10}, Ticks -> {{{4, "Here"}}, {-1, 1}}]

enter image description here

x1 = Range[0, 10, 0.01];
y1 = Sin[x1];
ListLinePlot[Thread[{x1, y1}], Ticks -> {{{4, "Here"}}, Automatic}]

enter image description here

(* How to make this work? *)
ListLinePlot[Thread[{x1, y1}], Ticks -> {{{4, "Here"}}, Automatic}
     , Mesh -> Full, Frame -> True]

When I have Frame -> True, how can I make Ticks work like the first plot?

dionys
  • 4,321
  • 1
  • 19
  • 46
Chen Stats Yu
  • 4,986
  • 2
  • 24
  • 50

1 Answers1

2

As @YvesKlett suggested, I have sorted it out!

x1 = Range[0, 10, 2];
y1 = Sin[x1];
ListLinePlot[
Thread[{x1, y1}],

FrameTicks -> {
{Automatic, Automatic},
{Thread[{x1, Exp[x1] // N}], x1}
},
Mesh -> Full, Frame -> True]

FrameTicks does the trick!

Chen Stats Yu
  • 4,986
  • 2
  • 24
  • 50