5

I want to find the maximum value of a plot given by a function like in How can I automatically mark local extrema with pgfplots and scatter?. Is there any way of writing the x-value on the x-acis automatically, too?

diana
  • 61
  • 3
  • 1
    Do you want it to appear strictly as an extra tick or as an arbitrary style just to convey that info? – percusse Jul 27 '13 at 13:42
  • It don't has to be an extra tick. I will edit the question later to be more precise. – diana Jul 27 '13 at 15:08

1 Answers1

1

Ok, I found a solution.

I combined the dashed line in How can I automatically mark local extrema with pgfplots and scatter? with the solution given in the first answer for Generalised: Accessing the logic values of a TikZ coordinate.

diana
  • 61
  • 3