Dear all,
I have some data I want to plot as a waterfall plot by using the
shift={()} option in \addplot. Unfortunately this seems to break the
legend entries/legend box in general.
Here's a minimal example
----------------------------
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [samples=50] {x^2};
\addplot [shift={(0,15)}, samples=50] {x^2};
\addplot [shift={(0,25)}, samples=50] {x^2};
\addlegendentry{A}; %
\addlegendentry{B}; %
\addlegendentry{C}; %
\end{axis}
\end{tikzpicture}
\end{document}
---------------------------
With best wishes,
- J.
|