I'm creating a custom legend for some pgfplots graph by drawing a node containing a shortstack.
Inside the node I'm using \ref{} to insert correct line-styles in front of my text labels.
The problem is that while the lines in the graph are printed with line width=1pt, the lines from \ref are the standard thin size of pgfplots.
This does not happen when using the normal pgfplots legend setup (\addlegendentry), but this is not possible in this graph since the legend either needs to contain extra information or is a common legend for 2 different axis.
So how can I control the line width when using \ref?
