2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00
LaTeX-examples/tikz/gpx-gps-elevation-chart-generator/elevation-chart.tex
2016-07-04 17:23:02 +02:00

23 lines
624 B
TeX

\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ybar,
ylabel={Elevation in m},
ylabel style={at={(0.02,0.5)}},
xlabel={Traveled distance in km},
width=0.8*\textwidth,
height=5cm,
x tick label style={/pgf/number format/.cd,%
scaled x ticks = false,
set decimal separator={,},
fixed}%
]
\addplot[mark=none, mark size=0.2, smooth]
table [x=dist, y=ele, col sep=comma] {data.csv};
\end{axis}
\end{tikzpicture}
\end{document}