Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[]{article}
- \usepackage{pgf,tikz}
- \usepackage{pgfplots}
- \begin{document}
- \begin{tikzpicture}
- [scale=0.5]
- \begin{axis}[
- ybar,
- enlarge x limits=0.04,
- enlarge y limits=0,
- legend style={at={(0.5,-0.3)}, anchor=north,legend columns=-1},
- nodes near coords style={anchor=west, rotate=90},
- ylabel={Time (ns)},
- width=20cm,
- symbolic x coords=
- {A,
- B,
- C,
- D,
- E,
- F,
- G,
- H,
- I,
- J,
- K,
- L,
- M,
- N,
- O,
- P,
- Q,
- R,
- S,
- T,
- },
- xtick=data,
- ymin=0,
- ymax=1700,
- restrict y to domain*=0:10000,
- visualization depends on=rawy\as\rawy,
- after end axis/.code={\draw [ultra thick, white, decoration={snake, amplitude=1pt}, decorate] (rel axis cs:0,1.05) -- (rel axis cs:1,1.05);},
- nodes near coords={\pgfmathprintnumber{\rawy}},
- clip=false,
- %nodes near coords align={vertical},
- x tick label style={rotate=60,anchor=east}
- ]
- \addplot coordinates {
- (A,27.53 )
- (B,33.71 )
- (C,9238.36)
- (D,9184.26)
- (E,119.82 )
- (F,57.62 )
- (G,28.11 )
- (H,101.59 )
- (I,245.64 )
- (J,316.80 )
- (K,107.50 )
- (L,334.93 )
- (M,395.91 )
- (N,558.37 )
- (O,588.47 )
- (P,166.14 )
- (Q,183.95 )
- (R,619.40 )
- (S,95.75 )
- (T,134.50 )};
- \addplot coordinates {
- (A,79.48 )
- (B,95.78 )
- (C,9926.58)
- (D,9864.55)
- (E,314.25 )
- (F,165.87 )
- (G,58.52 )
- (H,188.77 )
- (I,188.34 )
- (J,343.45 )
- (K,196.34 )
- (L,1387.44)
- (M,1671.64)
- (N,604.58 )
- (O, 688.11)
- (P,286.23 )
- (Q,936.79 )
- (R,757.05 )
- (S,205.32 )
- (T,200.74 )};
- \legend{Do not collides,Collides}
- \end{axis}
- \end{tikzpicture}
- \end{document}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement