I have a simple pgfplots graph taken from PGFPlots Gallery
\begin{tikzpicture}
\begin{axis}
\addplot+[ybar] plot coordinates {(0,3) (1,2) (2,4) (3,1) (4,2)};
\end{axis}
\end{tikzpicture}
I would like to remove the frame (the vertical line, the horizontal line and the dashes in these lines) but keep the xtick and ytick labels.
How can I do this?
NB. I am trying to produce this image that's why I need to remove the frame:
every outer y axis line/.style={draw=none}
andtick style={draw=none}
.