0
$\begingroup$

This question already has an answer here:

I am trying to visualizing the unit circle under different norm functions, here is the code:

ContourPlot[{
Abs[x]^(1/2)+Abs[y]^(1/2)==1,
Abs[x] + Abs[y] == 1,
x^2+y^2==1,
Abs[x]^3+Abs[y]^3==1,
Max[Abs[x], Abs[y]] == 1
},
{x, -1.1, 1.1}, {y, -1.1, 1.1}
]

I want to add a legend show the expression for each circle, how can this be done?

$\endgroup$

marked as duplicate by Kuba, user9660, Sjoerd C. de Vries, Yves Klett, MarcoB Dec 13 '15 at 15:33

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$ This can be easily found in docs: PlotLegends -> "Expressions". $\endgroup$ – Artes Apr 28 '14 at 15:02
  • $\begingroup$ @Artes it does not label the curves though, does it? $\endgroup$ – chris Apr 28 '14 at 15:03
  • $\begingroup$ ContourLabels -> All additionally displays tooltips... $\endgroup$ – Yves Klett Apr 28 '14 at 15:06
  • $\begingroup$ @YvesKlett it would be nice to be able to grab/fix those? $\endgroup$ – chris Apr 28 '14 at 15:07
  • $\begingroup$ @chris yes, in the help examples those are rendered as well. $\endgroup$ – Yves Klett Apr 28 '14 at 15:08

Browse other questions tagged or ask your own question.