I want to plot following data using pgfplots.
Code: Select all
(1.3 , 0.006418)
(1.6 , 0.015143)
(1.9 , 0.010009)
(2.2 , 0.014109)
(2.5 , 0.009640)
Code: Select all
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
height=4cm,
width=9cm,
grid=major,
xlabel=Distance,
ylabel=\% deviation from mean,
xmin=1.2,
xmax=2.6,
domain=1.2:2.6
]
\addplot coordinates {(1.3,0.006418),(1.6,0.015143),(1.9,0.010009),(2.2,0.014109),(2.5,0.009640)};
\addlegendentry{CPSS}
\addplot coordinates {(1.3,0.032756),(1.6,0.017977),(1.9,0.020863),(2.2,0.034741),(2.5,0.049633)};
\addlegendentry{Kinect}
\end{axis}
\end{tikzpicture}
\end{figure}
Code: Select all
! Package pgfplots Error: Sorry, I could not read the plot coordinates near ',(
1.6,0.017977),(1.9,0.020863),(2.2,0.034741),(2.5,0.049633) '. Please check for
format mistakes.