\documentclass{article}
\usepackage[active,tightpage]{preview}
\usepackage{varwidth}
\usepackage{pgfplots}
\begin{document}
\begin{preview}
\begin{varwidth}{\linewidth}
\centering
\begin{tikzpicture}
\begin{axis}[ 
	title = \textbf{Naive Bayes},
	xlabel=Number of extracted features, 
	ylabel=Accuracy,
	grid=both,
 	height=5cm, width=8.0cm, 
 	legend pos=south east, 
 	minor tick num = 1,
	xtick={1, 2, 3, 4, 5, 6},
	cycle list={{gray,line width=1.5pt},{black,line width=1.5pt},}
	]
\addplot+[error bars/.cd, x dir=none, x fixed relative=0.5, y dir=both,y explicit relative,]
table[x=features,y=PCA,y error=PCA_conf]{
features	PCA	PCA_conf	BDPC	BDPC_conf
1	0.758065	0.004957	0.755871	0.005414
2	0.752452	0.004850	0.808839	0.005037
3	0.794903	0.006303	0.821613	0.005664
4	0.802710	0.005251	0.814645	0.006014
5	0.808194	0.005222	0.809226	0.005567
6	0.808065	0.005740	0.808065	0.005740
};
\addplot+[error bars/.cd,
x dir=none, x fixed relative=0.5,
y dir=both,y explicit relative,
]
table[x=features,y=BDPC,y error=BDPC_conf]{
features	PCA	PCA_conf	BDPC	BDPC_conf
1	0.758065	0.004957	0.755871	0.005414
2	0.752452	0.004850	0.808839	0.005037
3	0.794903	0.006303	0.821613	0.005664
4	0.802710	0.005251	0.814645	0.006014
5	0.808194	0.005222	0.809226	0.005567
6	0.808065	0.005740	0.808065	0.005740
};
\legend{PCA, Proposed}
\end{axis}
\end{tikzpicture}
\end{varwidth}
\end{preview}
\end{document}
