PGFplots und Beamer

Marc van Dongen hat heute bei stackexchange ein schönes Minimal-Beispiel zu PGFplots veröffentlicht (http://tex.stackexchange.com/questions/44923/create-slide-with-graph-in-beamer).

\documentclass{beamer}
\usepackage{pgfplots}
\begin{document}
\begin{frame}[fragile]
   \frametitle{Bar Graphs}
\begin{tikzpicture}[scale=0.85]
\begin{axis}[xbar,tick align=outside,
             width=11cm,
             height=8cm,
             bar width={10pt},
             enlargelimits=0.13,
             nodes near coords,
             nodes near coords align=horizontal,
             point meta=x * 1, % The displayed number.
             xlabel=\textbf{Frequency of Winning the Final},
             xtick={0,5,...,35},
             ytick={1,...,13},
             yticklabels={Kerry,Laois,London,Waterford,Clare,Offaly,
                      Galway,Wexford,Dublin,Limerick,Tipperary,Cork,Kilkenny}
            ]
\addplot
[draw=blue,fill=blue!15]
coordinates
{(1,1) (1,2) (1,3) (2,4) (3,5) (4,6) (4,7) (6,8) (6,9) (7,10) (26,11) (30,12) (33,13)};
\end{axis}
\end{tikzpicture}
\end{frame}
\end{document}

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website