wenn ich das richtig verstanden hab: ein roter strich im symbol des jeweiligen plots?
Code:
\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xbar,enlargelimits=0.15]
\pgfplotsset{/pgfplots/legend image code/.code={
\draw[#1] (0cm,-0.1cm) rectangle (0.1cm,0.2cm)
(0.2cm,-0.1cm) rectangle (0.3cm,0.1cm) ;
\draw [red,] (-0.1cm,0.15cm) -- (0.31cm,0.15cm);}}
\addplot
[draw=blue,pattern=horizontal lines light blue]
coordinates
{(10,5) (15,10) (5,15) (24,20) (30,25)};
\addplot
[draw=black,pattern=horizontal lines dark blue]
coordinates
{(3,5) (5,10) (15,15) (20,20) (35,25)};
\legend{nr1,nr2}
\draw[red] (axis cs:10,10) -- (axis cs:10,0);
\end{axis}
\end{tikzpicture}
\end{document}
Lesezeichen