Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: why an extra mark in legend?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106271] Re: [mg106240] why an extra mark in legend?
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Thu, 7 Jan 2010 02:28:37 -0500 (EST)
  • References: <201001061057.FAA14960@smc.vnet.net>
  • Reply-to: drmajorbob at yahoo.com

Post what you really did!

When I evaluate THIS code:

Needs["PlotLegends`"]
Plot[Sin@t, {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]

I see only "a" and a horizontal red dash, in the legend.

Bobby

On Wed, 06 Jan 2010 04:57:51 -0600, Haibo Min <haibo.min at gmail.com> 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
>
>


-- 
DrMajorBob at yahoo.com


  • Prev by Date: Re: Re: Re: Re: algebraic numbers
  • Next by Date: Re: difficult/unconventional series expansion
  • Previous by thread: why an extra mark in legend?
  • Next by thread: Re: why an extra mark in legend?