\documentclass{article}%Mahmood Amintoosi
\usepackage{pgfplots}
\usetikzlibrary{plotmarks}

\usepackage{xepersian}
\settextfont[Scale=1.2]{XB Niloofar}

\begin{document}
\pgfplotstableread{regData_test.txt}{\table}
\pgfplotsset{every axis/.append style={
thick,
tick style={thick}}}
\pgfplotscreateplotcyclelist{mylist}{%
{cyan,densely dashed,mark=triangle,mark options={solid}},
{red,mark=asterisk},
{dashed,brown!60!black,mark options={fill=brown!40,solid},mark=o}}

\begin{figure}
\centering
\pgfplotstableread{Data.txt}{\table}
\begin{tikzpicture}
\pgfplotsset{every axis legend/.append style={at={(0.5,1.03)},anchor=south}}
\begin{semilogyaxis}[cycle list name=mylist,legend columns=2, 
 width=1\textwidth, height=9cm,
xtick={1,2,3,4,5},
xticklabels={5,11,17,23,29},
 x tick label style={rotate=90,anchor=east},  ylabel=Pixel Location Error, xlabel=$\phi$ (degree)]
\addplot+[smooth] table[x=dbNo,y=m1] from \table;
\addplot+[smooth] table[x=dbNo,y=m2] from \table;
\addplot+[smooth] table[x=dbNo,y=m3] from \table;
\addplot+[smooth] table[x=dbNo,y=m4] from \table;
\addplot+[smooth] table[x=dbNo,y=m5] from \table;
\legend{Vandewalle (Mean=274.24),Keren (Mean=300.06),GCBPM (Mean=291.87),OXYT SIFT (Mean= 0.28),RANSAC (Mean= 2.22) }
\end{semilogyaxis}
\end{tikzpicture}
\caption{Registration Pixel Location Error}
\end{figure}

\end{document}