von Holger Witte » Di 4. Mai 2021, 12:19
Vielen Dank für die Antwort. Ich habe die Definitionen in das Beispiel kopiert und es passt wunderbar. Viele Grüße, Holger
\documentclass[a4paper]{scrartcl}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xbar]
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot [blue,fill=blue!30!white,mark=none] coordinates{(10,1)};
\addplot [red,fill=red!30!white,mark=none] coordinates {(10,1)};
\addplot [brown!60!black,fill=brown!30!white,mark=none] coordinates {(10,1)};
\addplot [black,fill=gray,mark=none]coordinates {(10,1)};
\addplot [violet!80!black,fill=violet,mark=none] coordinates {(10,1)};
\addplot [green,fill=green!80!black,mark=none] coordinates {(10,1)};
\end{axis}
\end{tikzpicture}
\end{document}
Vielen Dank für die Antwort. Ich habe die Definitionen in das Beispiel kopiert und es passt wunderbar. Viele Grüße, Holger
[code]\documentclass[a4paper]{scrartcl}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xbar]
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot coordinates {(10,1)};
\addplot [blue,fill=blue!30!white,mark=none] coordinates{(10,1)};
\addplot [red,fill=red!30!white,mark=none] coordinates {(10,1)};
\addplot [brown!60!black,fill=brown!30!white,mark=none] coordinates {(10,1)};
\addplot [black,fill=gray,mark=none]coordinates {(10,1)};
\addplot [violet!80!black,fill=violet,mark=none] coordinates {(10,1)};
\addplot [green,fill=green!80!black,mark=none] coordinates {(10,1)};
\end{axis}
\end{tikzpicture}
\end{document}[/code]