1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- \documentclass[a4paper]{article}
- \usepackage{pgfplots}
- \pgfplotsset{compat=1.8}
- \begin{document}
- \begin{tikzpicture}
- \begin{axis}[
- width=\textwidth,
- xtick=data,
- x tick label style={
- /pgf/number format/1000 sep=,
- rotate=90,
- },
- y tick label style={
- /pgf/number format/1000 sep=
- },
- ylabel={Bandwidth (MB/s)},
- xlabel={Data size},
- symbolic x coords={4KB, 16KB, 32KB, 64KB, 128KB, 256KB, 512KB, 1MB, 2MB, 4MB, 8MB, 16MB, 32MB},
- ymajorgrids=true,
- major grid style={
- dotted,
- },
- axis x line*=bottom,
- axis y line*=left,
- tick align=outside,
- legend style={
- at={(0.2, 0.95)},
- draw=none,
- fill=none,
- cells={anchor=west},
- /tikz/every even column/.append style={
- column sep=8pt,
- },
- },
- ]
- \addplot coordinates {
- (16KB, 106.178754056)
- (32KB, 211.084895305)
- (64KB, 415.703896443)
- (128KB, 810.339674944)
- (256KB, 1547.57365213)
- (512KB, 2776.37262474)
- (1MB, 5137.62674525)
- (2MB, 5915.08598317)
- (4MB, 6233.33653831)
- (8MB, 6276.50844112)
- (16MB, 6305.9174769)
- (32MB, 6307.81059127)
- };
- \addplot coordinates {
- (16KB, 112.769066994)
- (32KB, 223.614235747)
- (64KB, 415.094840869)
- (128KB, 758.692184621)
- (256KB, 1301.14745592)
- (512KB, 2000.44858544)
- (1MB, 2726.52144668)
- (2MB, 4446.83980882)
- (4MB, 4908.10674445)
- (8MB, 5155.21548317)
- (16MB, 5858.33741922)
- (32MB, 5945.28752544)
- };
- \legend{MT, ST}
- \end{axis}
- \end{tikzpicture}
- \end{document}
|