Can i change the style of my legend (to have a space between them and also look more academic graph?)
\documentclass{article}
\usepackage[margin=0.5in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage[dvipsnames]{xcolor}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.16}
\begin{document}
\begin{tikzpicture}
\pgfplotsforeachungrouped \X in {1,...,9}
{\ifnum\X=1
\edef\mylst{Testing1}
\else
\edef\mylst{\mylst,Testing\X}
\fi}
\begin{axis}[symbolic x coords/.expanded=\mylst,
ylabel=Number,
enlargelimits=0.05,
x tick label style={anchor=north west,rotate=-30},
legend style={at={(0.5,-0.2)},
anchor=north,legend columns=-1},
ybar,
]
\addplot
coordinates {(Testing1,9) (Testing2,4)
(Testing3,4) (Testing4,1) (Testing5,1) (Testing6,8) (Testing7,1) (Testing8,1) (Testing9,1)};
\addplot
coordinates {(Testing1,3) (Testing2,5)
(Testing3,5) (Testing4,4) (Testing5,5) (Testing6,7) (Testing7,0) (Testing8,0) (Testing9,0)};
\legend{Series 1, Series2}
\end{axis}
\end{tikzpicture}
\end{document}


/tikz/every even column/.append style={column sep=0.5cm}}, see https://tex.stackexchange.com/a/18162. However, I do not know what you mean by a more academic look? (Do you mean even more boring? just kidding;-) – Dec 27 '19 at 00:39legend style:legend style={at={(0.5,-0.2)}, anchor=north,legend columns=-1,/tikz/every even column/.append style={column sep=0.5cm}},. If you tell me what you mean by "more academic" I may attempt to answer the question. – Dec 27 '19 at 01:09legend style. Anyway, my question aboutmore academicis the legend current shown have2 barin each legand, it looks too fancy and less professional. I prefer to haveone barin each legand. – aan Dec 27 '19 at 01:11legend image code. Give me a few minutes. – Dec 27 '19 at 01:12