This question already has an answer here:

    ParametricPlot[  {Table[{Cos[t] - Cos[n*t], Sin[t] - Sin[n*t]}, {n, 6, 10, 1}]}  , {t, 0, 8*Pi}, GridLines -> Automatic, Frame -> True,  PlotLegends -> "Expressions"]

What can't I see the PlotLegends.

enter image description here

Only if I separately execute it, then I can see them. Is there an easier way to do this? enter image description here


marked as duplicate by Edmund, Community Mar 19 '18 at 23:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ Please post CODE (not pictures of code). FOR ALL your code... including the code that generated the figures. $\endgroup$ – David G. Stork Mar 19 '18 at 22:39
  • 1
    $\begingroup$ Also note that you do not need to put Table in a list as it generates a list. $\endgroup$ – Edmund Mar 19 '18 at 22:45

You have to Evaluate the Table so it "knows" what the expressions are:

 Evaluate@Table[{Cos[t] - Cos[n t], Sin[t] - Sin[n t]},
   {n, 6, 10}],
 {t, 0, 8 \[Pi]},
 PlotLegends -> "Expressions"]

Also, you added unnecessary brackets around your Table.


Not the answer you're looking for? Browse other questions tagged or ask your own question.