## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ label minimum point of the function

Information and discussion about graphics, figures & tables in LaTeX documents.
Rafi
Posts: 1
Joined: Wed Jan 10, 2018 4:37 pm

### label minimum point of the function

Hello,
I use the code below to plot my data

\begin{tikzpicture}
\begin{axis}[
grid = both,
minor tick num=3,
every major grid/.style={red, opacity=0.2},
height= 1\textwidth,
width = 0.95\textwidth,
thick,
scale=0.3,
xlabel=Itteration,
ylabel=P Values]

major tick length=0pt,
minor tick length=0pt,
\end{axis}
\end{tikzpicture}

I need to label the minimum point with its coordinate. I need a code to find the minimum value of the data.
Thanks

Tags:

Stefan Kottwitz
Posts: 8708
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hi Rafi,

welcome to the forum!

Would you like to post complete (compilable) code? So we could test it. Of course, the used file data.dat would be needed too. We can post files here, as attachments to posts. The "Attachments" link is below the text edit field, when writing a post.

Stefan