Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{pgfplots}
- \pgfplotsset{compat=newest}
- \begin{document}
- \begin{tikzpicture}
- \begin{axis}[width=4in, height=2.25in,
- axis on top=false,
- scaled y ticks=false,
- ybar,
- ymin=0,
- ymax=70,
- ytick={0,10,...,70},
- restrict y to domain=0:70,
- ymajorgrids,
- minor y tick num=4,
- yticklabel={${\pgfmathprintnumber{\tick}\%}$},
- yticklabel style={/pgf/number format/.cd,fixed,fixed zerofill,precision=0,/tikz/.cd},
- xlabel={Frequency},
- symbolic x coords={Never, Sometimes, Often, Always},
- xtick=data,
- legend style={
- cells={anchor=east},
- at={(0.5,-0.5)},
- anchor=north,
- legend columns=-1
- },
- cycle list={%
- {black,fill=red!60!black},%
- {black,fill=blue!60!red}%
- },
- axis background/.style={fill=gray!20}
- ]
- \addplot coordinates {
- (Never, 0)
- (Sometimes, 23)
- (Often, 14)
- (Always, 62)
- };
- \addlegendentry{Agile}
- \addplot coordinates {
- (Never, 12)
- (Sometimes, 23)
- (Often, 62)
- };
- \addlegendentry{Plan Based}
- \end{axis}
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement