Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Problem with PlotLegend in Mathematica 6.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77954] Problem with PlotLegend in Mathematica 6.0
  • From: "peter.steneteg at gmail.com" <peter.steneteg at gmail.com>
  • Date: Wed, 20 Jun 2007 05:38:41 -0400 (EDT)

I can not figure out why I get different results for these two cases.

Needs["PlotLegends`"]
fn = {Sin[x], Cos[x]}
Plot[fn, {x, 0, 2 Pi}, PlotLegend -> {"sin", "cos"}]
Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, PlotLegend -> {"sin", "cos"}]

When i use Plot[fn,... the Legend will only show one line, "sin" but
if I use the later case with Plot[{Sin[x],Cos[x]},... the Legend will
show correctly. Does anyone have any idea why this happens. And if
there are any solution?



  • Prev by Date: Re: Solving a symbolic complex linear system of equation.
  • Next by Date: Re: Combination List
  • Previous by thread: Locator in Graphics3D
  • Next by thread: Re: Problem with PlotLegend in Mathematica 6.0