MathGroup Archive 2007

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

Search the Archive

Re: Problem with PlotLegend in Mathematica 6.0


On Wednesday 20 June 2007 03:38:41 peter.steneteg at gmail.com wrote:
> 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"}]

Hi, Peter. 

   In the first (nonworking) case, wrap "fn" with an Evaluate. Then it will 
work as you expect. I'm not sure _why_ (I usually don't follow how things 
really do evaluate in Mathematica).



-- 
==========================================================
Curtis Osterhoudt
cfo at remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================


  • Prev by Date: Re: v5.2 preferred for stability over v6.0
  • Next by Date: Re: Reproducible crash in version 6
  • Previous by thread: Problem with PlotLegend in Mathematica 6.0
  • Next by thread: Re: Problem with PlotLegend in Mathematica 6.0