(0.5,0.7)
to (1,0.7)
is not exactly straight. It is a bit curved. I want to make this line straight.Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{figure}[!htb]
\centering
\begin{tikzpicture}
\begin{axis}[
width=12cm,
height=8cm,
grid=both,
xmin=0,
xmax=1,
ymin=0,
ymax=1.5,
xlabel={Weighing factor for NDT test (w)},
ylabel={Trust factor (T)}
]
\addplot[smooth,mark=*,black] plot coordinates {
(0,1.3)
(0.5,0.7)
(1,0.7)
};
\addlegendentry{Trust factor T = 1.3 - 0.5 w};
\end{axis}
\end{tikzpicture}
\caption{Proposed trust factor for NDT tests}
\label{Proposed trust factor for NDT tests}
\end{figure}
\end{document}