0

I will like to get a density plot (in *Mathematica 8*) as in: Make legend same height as plot.

However, anytime I run

```
DensityPlot[ Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}, PlotLegends -> Automatic]
```

I get a red coloured `"PlotLegends"`

within the input text followed by an error message. I need your help!

@Rolf and R.M., I now have Mathematica 9 and enjoying the autocruise. Thanks. – Dean – 2017-02-26T15:26:34.787

you need Mathematica 9. – Rolf Mertig – 2013-08-26T16:33:51.707

As Rolf said, you need

– rm -rf – 2013-08-28T23:06:13.380Mathematica9 to use those functions. For v8, you can use Jens' solution in the linked question. See also this post by Jens for creating good looking legends in v8 and below.