Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132931 views
License: OTHER
1
% Source: http://tex.stackexchange.com/a/8584/5645
2
\documentclass[varwidth=true, border=2pt]{standalone}
3
4
\usepackage{pgfplots}
5
6
\begin{document}
7
\begin{tikzpicture}
8
\begin{axis}[
9
symbolic x coords={a small bar, a medium bar, a large bar},
10
xtick=data
11
]
12
\addplot[ybar,fill=blue] coordinates {
13
(a small bar, 42)
14
(a medium bar, 50)
15
(a large bar, 80)
16
};
17
\end{axis}
18
\end{tikzpicture}
19
\end{document}
20
21