von vinc14 » Do 7. Aug 2025, 07:16
Keine vorschläge, im Buch (LaTeX Graphics with TikZ) sind leider so "simple" Dinger nicht erwähnt.
Im Buch Seite 240 währe so eine Line Charts
% !TeX document-id = {19f1156d-bdd7-4481-b341-b9423b5f38e5}
% !BIB TS-program = biber
% !TEX lualatex
\documentclass[12pt,a4paper,oneside]{scrbook}
\usepackage[ngerman]{babel}
\usepackage{geometry}
\geometry{
% papersize={130mm,190mm},
% textwidth=120mm,
% textheight=170mm,
marginparwidth=75pt,
left=15mm,
right=20mm,
top=25mm,
bottom=25mm,
foot=10mm,
}
\usepackage[x11names,table]{xcolor} % Packet muss sehr früh geladen werden
\usepackage{tikz}
\usepackage{tikz-cd}
\usepackage{pgfplots}
\usepackage{pgfplots.assert}
\usepackage{sansmath}
\begin{document}
hier der test\\
Buch: LaTeX Graphics with TikZ (2023) Seite 240ff
\tikzset{every node/.style={font=\sffamily}}
\pgfplotsset{tick label style = {font=\sansmath}}
\begin{axis}[title = Keyword popularity in Google trends,
x tick label style =
{/pgf/number format/set thousands separator={}},
legend pos = north west,
legend cell align=left]
\addplot coordinates { (2007,16) (2008,19) (2009,30)
(2010,36) (2011,42) (2012,48) (2013,55) };
\addplot coordinates { (2007,39) (2008,28) (2009,24)
(2010,19) (2011,15) (2012,12) (2013,8) };
\addplot coordinates { (2007,22) (2008,13) (2009,11)
(2010,8) (2011,6) (2012,4) (2013,4) };
\legend{tikz, pstricks, metapost}
\end{axis}
hier noch ein text
\end{document}
Keine vorschläge, im Buch (LaTeX Graphics with TikZ) sind leider so "simple" Dinger nicht erwähnt.
Im Buch Seite 240 währe so eine Line Charts
[code]
% !TeX document-id = {19f1156d-bdd7-4481-b341-b9423b5f38e5}
% !BIB TS-program = biber
% !TEX lualatex
\documentclass[12pt,a4paper,oneside]{scrbook}
\usepackage[ngerman]{babel}
\usepackage{geometry}
\geometry{
% papersize={130mm,190mm},
% textwidth=120mm,
% textheight=170mm,
marginparwidth=75pt,
left=15mm,
right=20mm,
top=25mm,
bottom=25mm,
foot=10mm,
}
\usepackage[x11names,table]{xcolor} % Packet muss sehr früh geladen werden
\usepackage{tikz}
\usepackage{tikz-cd}
\usepackage{pgfplots}
\usepackage{pgfplots.assert}
\usepackage{sansmath}
\begin{document}
hier der test\\
Buch: LaTeX Graphics with TikZ (2023) Seite 240ff
\tikzset{every node/.style={font=\sffamily}}
\pgfplotsset{tick label style = {font=\sansmath}}
\begin{axis}[title = Keyword popularity in Google trends,
x tick label style =
{/pgf/number format/set thousands separator={}},
legend pos = north west,
legend cell align=left]
\addplot coordinates { (2007,16) (2008,19) (2009,30)
(2010,36) (2011,42) (2012,48) (2013,55) };
\addplot coordinates { (2007,39) (2008,28) (2009,24)
(2010,19) (2011,15) (2012,12) (2013,8) };
\addplot coordinates { (2007,22) (2008,13) (2009,11)
(2010,8) (2011,6) (2012,4) (2013,4) };
\legend{tikz, pstricks, metapost}
\end{axis}
hier noch ein text
\end{document}
[/code]