# PlotLegends not showing for individual equations in ContourPlot

**URL:** <https://community.wolfram.com/t/plotlegends-not-showing-for-individual-equations-in-contourplot/25914>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [August 23, 2025, 12:47am UTC](https://community.wolfram.com/t/plotlegends-not-showing-for-individual-equations-in-contourplot/25914 "2025-08-23T00:47:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![studymma168](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@studymma168](https://community.wolfram.com/u/studymma168)\
**Post date:** [August 23, 2025, 12:47am UTC](https://community.wolfram.com/t/plotlegends-not-showing-for-individual-equations-in-contourplot/25914/1 "2025-08-23T00:47:48Z")

</div>

ContourPlot[Evaluate@{#}, {x, -5, 10}, {y, -8, 10},  
AxesOrigin → {0, 0}, Frame → False, Axes → True,  
AxesOrigin → {0, 0}, PlotLegends → Automatic,  
Epilog → {{Purple,  
Line[{{0, 0},  
pt = CoefficientArrays[#, {x, y}][[-1]] // Normal}]}, {Red,  
PointSize@0.02, Point[pt]}}] & /@ (ls = {x + 2 y - 5 == 0,  
2 x - 3 y - 6 == 0, 2 x - 3 y + 6 == 0,  
3 x - 8 y - 10 == 0, -3 x - 7 y + 8 == 0, -3 x - 7 y - 8 == 0})

 ![2025-08-23_084447.png](https://global.discourse-cdn.com/wolfram/original/3X/0/5/05147f3c86c42eecf714b5ef4782994b66aab9f4.png)

PlotLegends Not Showing for Individual Equations in Mathematica ContourPlot

---

<div class="post-metadata">

**Author:** ![mroge02](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mroge02/32/28775_2.png) [@mroge02](https://community.wolfram.com/u/mroge02)\
**Post date:** [August 23, 2025, 11:17am UTC](https://community.wolfram.com/t/plotlegends-not-showing-for-individual-equations-in-contourplot/25914/2 "2025-08-23T11:17:28Z")

</div>

Try `PlotLegends -> {#}`. The `Automatic` setting seems to produce no legend if there is only one equation being plotted. That behavior does not seem to be documented. I don’t know if it’s intentional or a bug.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [August 24, 2025, 3:37pm UTC](https://community.wolfram.com/t/plotlegends-not-showing-for-individual-equations-in-contourplot/25914/3 "2025-08-24T15:37:58Z")

</div>

Another way is with `PlotLegends -> "AllExpressions"`

In the documentation for `PlotLegends`, the section on Possible Issues makes no sense, at least in recent versions of Mathematica.

---

<div class="post-metadata">

**Author:** ![studymma168](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@studymma168](https://community.wolfram.com/u/studymma168)\
**Post date:** [August 25, 2025, 1:04pm UTC](https://community.wolfram.com/t/plotlegends-not-showing-for-individual-equations-in-contourplot/25914/4 "2025-08-25T13:04:31Z")

</div>

Thank you! This method solved the problem!

---

<div class="post-metadata">

**Author:** ![studymma168](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@studymma168](https://community.wolfram.com/u/studymma168)\
**Post date:** [August 25, 2025, 1:05pm UTC](https://community.wolfram.com/t/plotlegends-not-showing-for-individual-equations-in-contourplot/25914/5 "2025-08-25T13:05:10Z")

</div>

This works too. Cheers.
