Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Showing legend with Listcontourplot' topicStudent Support Forum > General > "Showing legend with Listcontourplot"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
jf
05/30/12 12:25pm

What sort of problems do you have?
Could you provide a code example?
The nesting of braces {} is important.

Can you just copy and paste the examples from
http://reference.wolfram.com/mathematica/PlotLegends/tutorial/PlotLegends.html
into your notebook? (Click the code, then copy from the box that opens.)

Examples:

(Loading the package is important:)
<< PlotLegends`

ShowLegend[
DensityPlot[
Sin[x y], {x, 0, \[Pi]}, {y,
0, \[Pi]}], {ColorData["LakeColors"][1 - #1] &, 10, " 1", "-1",
LegendPosition -> {1.1, -0.4}}]

ShowLegend[
Plot3D[Sin[x y], {x, 0, \[Pi]}, {y, 0, \[Pi]},
ColorFunction -> "Rainbow"], {ColorData["Rainbow"][1 - #1] &, 10,
" 1", "-1", LegendPosition -> {1.1, -0.4}}]



URL: ,

Subject (listing for 'Showing legend with Listcontourplot')
Author Date Posted
Showing legend with Listcontourplot Kwame B-A 05/30/12 07:29am
Re: Showing legend with Listcontourplot jf 05/30/12 12:25pm
Re: Showing legend with Listcontourplot Bill Simpson 05/30/12 12:37pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic