Simple question about PlotLegend problem in Mathematica 6
- From: mikemathmodeler@xxxxxxxxx
- Date: Mon, 9 Jun 2008 23:26:38 -0700 (PDT)
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?
.
- Follow-Ups:
- Prev by Date: Re: Using Mathematica to create body of switch() statement
- Next by Date: Re: Simple question about PlotLegend problem in Mathematica 6
- Previous by thread: Combing braids
- Next by thread: Re: Simple question about PlotLegend problem in Mathematica 6
- Index(es):
Relevant Pages
|