Re: weird behavior when plotting multiple functions in 6.0
- To: mathgroup at smc.vnet.net
- Subject: [mg76105] Re: weird behavior when plotting multiple functions in 6.0
- From: "Rolf.Mertig at gmail.com" <Rolf.Mertig at gmail.com>
- Date: Wed, 16 May 2007 05:34:01 -0400 (EDT)
- References: <f2btov$iga$1@smc.vnet.net>
f[x_] = {Sin[x], Cos[x]}; Plot[Evaluate[f[x]], {x, 0, 4*Pi}] or, maybe better, use: Plot[f[x], {x, 0, 4*Pi}, Evaluated -> True] Of course you can also put something like SetOptions[Plot, Evaluated -> True]; into your init.m file and then it is always set. There seem to be important arguments to let Mathematica 6 interpret the default setting of the functions {ContourPlot, ContourPlot3D, DensityPlot, FindRoot, ParametricPlot, ParametricPlot3D, Plot, Plot3D, RegionPlot, RegionPlot3D}, Evaluated -> Automatic as equivalent to Evaluated -> False.. It looks to me (with some experience of trying to teach the Evaluate - and Hold*-Attribute issues to new users), that an interpretation of Evaluated -> Automatic as Evaluated -> True would be less confusing. But probably it would sacrifice performance in some situations. I do not know. I did ask WRI about this some months ago, and tried to argue that Evaluated -> True would be more convenient for the majority of users, but did not get an answer, unfortunately, yet. I am sure there are good reasons for the current setting! Rolf Mertig GluonVision GmbH, Berlin, Germany http://www.gluonvision.com