Question: How to add a legend to a graph?

Hello all,

 

I've been trying to add a legend to a graph in Maple 11 but have been having no luck. Here's what I tried:

plot({z, ff(z), fr(z)}, z = 0 .. 1, legend = {front, rear, ideal});

This gives me the following error:

Error, (in plot) the legend option cannot be used when plotting a set of objects

 

After looking in the help file I tried plotting this, which works:

plot([ff, fr], 0 .. 1, legend = [front, rear]);

Unfortunately with the above method (using the square brackets), I can't plot my third graph, z.

 

How can I plot all 3 graphs and show a legend in the command?

Thanks

--Amr

Please Wait...