Re: why an extra mark in legend?
- To: mathgroup at smc.vnet.net
- Subject: [mg106278] Re: why an extra mark in legend?
- From: dh <dh at metrohm.com>
- Date: Thu, 7 Jan 2010 02:30:02 -0500 (EST)
- References: <hi1qb7$ejb$1@smc.vnet.net>
Hi Haibo, NDSolve gives a list of lists of solutions. Therefore you have to dig out the first solution set (here the only one) by e.g. NDSolve[...][[1]] Daniel Haibo Min wrote: > Hello, everyone. > > Suppose that I have attained a[t], b[t], c[t] in NDSolve. > > s=NDSolve[...]. > > Then, I use > > Plot[{a[t], b[t], c[t]} /. s // Evaluate, {t, 0, 20}, PlotRange -> {{0, > 20}, {-2, 1}}, Frame -> True, Axes -> True, FrameLabel -> {"Time(s)", > "value"}, > PlotStyle -> {{Red, Dashed, Thick}, {Blue, Thick}, {Black, Dotted, Thick}}, > PlotLegend -> {"a", "b", "c"}, LegendPosition -> {0.5, -0.3}, LegendSize -> > {0.2, 0.3}, > LegendShadow -> None] > > to plot. It was supposed to have three marks in the legend, but I got four, > where one of the marks had no text. Why? > > Thanks. > > Haibo > >
- Follow-Ups:
- Re: why an extra mark in legend?
- From: Haibo Min <haibo.min@gmail.com>
- Re: why an extra mark in legend?