LaTeX forum ⇒ Graphics, Figures & Tableslabel 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

Postby Rafi » Wed Jan 10, 2018 4:49 pm

Hello,
can you please help me?
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]

\addplot table [smooth,mark=none,y=accuracy, x=itteration]{data.dat};
\addlegendentry{accuracy}

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:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8945
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Jan 10, 2018 5:09 pm

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
Site admin


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests