Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{report}
- usepackage{pgfplots} % for histograms
- begin{document}
- begin{tikzpicture}
- begin{axis}[ height = 0.4paperheight
- , width = 0.7paperwidth
- ]
- addplot [ybar interval, color = black, fill = blue, line width = 0.5mm]
- table {hist1.data};
- end{axis}
- end{tikzpicture}
- end{document}
- 1 0.06
- 3 0.23
- 5 0.35
- 7 0.2
- 9 0.1
- 11 0.04
- 13 0.01
- 15 0
- 17 0
- 19 0.01
- 21 0
- documentclass{report}
- usepackage{pgfplots} % for histograms
- usepackage{filecontents}
- begin{filecontents*}{hist1.data}
- 1 0.06
- 3 0.23
- 5 0.35
- 7 0.2
- 9 0.1
- 11 0.04
- 13 0.01
- 15 0
- 17 0
- 19 0.01
- 21 0
- end{filecontents*}
- begin{document}
- begin{tikzpicture}
- begin{axis}[
- height = 0.4paperheight,
- width = 0.7paperwidth,
- ytick=data,xtick=data
- ]
- addplot [ybar interval, color = black, fill = blue, line width = 0.5mm]
- table {hist1.data};
- end{axis}
- end{tikzpicture}
- end{document}
Add Comment
Please, Sign In to add comment