Simple question about PlotLegend problem in Mathematica 6



Hi,

So I'm trying to get a nice, straightforward graph with a nice,
straightforward legend. I've used NDSolve to get a couple
solutions...then I enter

Plot[Evaluate[{x[t], y[t]} /. solution], {t, 0, 200},
PlotPoints -> 1000, PlotRange -> All, Frame -> True,
FrameLabel -> {t, "E(t), L(t)"},
PlotStyle -> {Darker[Green], {Darker[Blue], Dashed}},
AxesOrigin -> {0, 0},
PlotLegend -> {"Environmental Quality", "Local Population"},
LegendShadow -> {0, 0}, LegendTextSpace -> 8,
LegendPosition -> {.01, -.4}]

and everything pops out as expected, except there is an extra line in
my legend. There should be two lines, a dark green one for E and a
dark blue one for L, but I get three. This extra line dark green, and
the label to its right is blank.

Any ideas on what I've done wrong and a possible fix?

Also, how would I get the line for L in the legend (L is dashed in the
graph itself) to become dashed?

.



Relevant Pages

  • Re: How do I put legend in a figure caption
    ... graph is not complete without its legend. ... you'll have to use Text Boxes in the caption (which now isn't ... I am trying to import these bar graphs as ...
    (microsoft.public.word.docmanagement)
  • Re: strange cell indexing anomaly
    ... reasonable behaviour when printing graphs. ... i haven't managed to work out a way of contraining a legend ... to scale the font inside it correctly. ... printing to PDF produces a graph that way ...
    (comp.soft-sys.matlab)
  • Re: Simple question about PlotLegend problem in Mathematica 6
    ... AxesOrigin ->, ... Oleksandr Pavlyk ... So I'm trying to get a nice, straightforward graph with a nice, ... straightforward legend. ...
    (sci.math.symbolic)
  • Re: (Visually Appealing) Scientific Notation on the Y-Axis
    ... Make your chart with a single series, then double click the series, and on ... I did it this way to make the legend show what each column ... > I want it to automatically graph the columns that have data. ...
    (microsoft.public.excel.charting)
  • add colours to specific data columns in graph
    ... How do I obtain red crosses for y/x and blue crosses for z/x in a ... multiplot graph, ... set up a load file with the legend box positioned outside (to the ... documentation for the command key doesn't seem to ...
    (comp.graphics.apps.gnuplot)