| 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: , |
|