In my plot, there are 6-7 \addplot[] entries but I want legend for only one of those functions. How can I do that? I tried \addlegendentry after the function I wish to have a legend for but it creates a legend corresponding to the first one.
Asked
Active
Viewed 48 times
1
forget plotto the plots that you want to exclude from the legend. – Jake Feb 03 '14 at 06:29legend entries={My Function}and\addlegendimage{no markers, mycolor}in the\begin axis[]part. – sm176357 Feb 03 '14 at 06:57