Graphics, Figures & Tables ⇒ label minimum point of the function
label minimum point of the function
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10326
- Joined: Mon Mar 10, 2008 9:44 pm
label minimum point of the function
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