ich würde gerne meine Legende so beschriften, dass die Einträge passen zur Linienart: gestrichelt, gepunktet , durchgezogen
Wie schaffe ich das? Ich kriege es lediglich hin, wenn ich bei jedem \addplot Befehl mir noch samples einzeichnen lasse, also Beispielpunkte die dann in der Legende erkannt werden.
Hier mein absolut fähiges Minimalbeispiel:
\documentclass[a4paper,12pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{pgfplots, pgfplotstable} \usepackage{siunitx} \usepackage{float} \begin{document} \begin{figure}[H] \centering \begin{tikzpicture} %%Linie 1 und 2 \begin{axis} [ legend pos= south west , legend entries ={$\dot{m}_L$=\SI[per-mode=symbol]{6}{\kilogram\per\minute},$\dot{m}_L$=\SI[per-mode=symbol]{5}{\kilogram\per\minute}, $\dot{m}_L$=\SI[per-mode=symbol]{4}{\kilogram\per\minute}}, width=0.9\textwidth, height=10cm, domain=100:200, xmin=0, xmax=1500, ymin=0, ymax=10, samples=2, grid = major, xlabel = {Wasser}, xtick={0,200,400,600,800,1000,1200,1400}, axis y line=left, ylabel = {Leistung }, ytick={0,1,2,3,4,5,6,7,8,9,10}, ] \addplot+[mark=none,black,line width=1pt] {4+1/50*\x}; \addplot+[domain=200:400][mark=none,black,line width=1pt] {7+1/200*\x}; \addplot+[domain=400:500][mark=none,black,line width=1pt] {41/5+1/500*\x}; \addplot+[domain=500:1500][mark=none,black,line width=1pt] {179/20+1/2000*\x}; \addplot+[mark=none,black,dotted,line width=1pt] {41/10+3/200*\x}; \addplot+[domain=200:400][mark=none,black,dotted,line width=1pt] {13/2+3/1000*\x}; \addplot+[domain=400:500][mark=none,black,dotted,line width=1pt] {73/10+1/1000*\x}; \addplot+[domain=500:1500][mark=none,black,dotted,line width=1pt] {151/20+1/2000*\x}; \addplot+[mark=none,black,dashed,line width=1pt] {37/10+1/200*\x}; \addplot+[domain=200:400][mark=none,black,dashed,line width=1pt] {9/2+1/1000*\x}; \addplot+[domain=400:500][mark=none,black,dashed,line width=1pt] {49/10}; \addplot+[domain=500:1500][mark=none,black,dashed,line width=1pt] {97/20+1/10000*\x}; \end{axis} \end{tikzpicture} \end{figure}