Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Tag Times Protected with Show[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89349] Re: Tag Times Protected with Show[]
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 7 Jun 2008 02:55:46 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <g2b4pj$nmp$1@smc.vnet.net>

FreeCaptive6914 at gmail.com wrote:

> Hi all.  I'm updating an old program to Mathematica 6 and I get the
> error message "Tag Times in (*shows a blank graph*) is Protected."
> Here's the code.
> 
> line = Plot[secondfit, {x, 0.8, maxtime}, DisplayFunction ->
> Identity];
> splot = ListPlot[second, PlotRange -> All, DisplayFunction ->
> Identity];
> Show[splot, line]
> 
> secondfit is a valid function from Fit[], maxtime is a real number,
> and second is a valid list.  I've tried plotting line and splot
> individually, but I get the same error.  Ideas?

Note that you do not need to set the option DisplayFunction to
Identity any more, for the semi-column prevents the output to be displayed.

line = Plot[secondfit, {x, 0.8, maxtime}];
splot = ListPlot[second, PlotRange -> All];
Show[splot, line]

The error message you get is because, at some point, you tried 
(involuntarily) to assign a new value to a protected symbol. In other 
words, you have some syntax error(s) at some point in your code. It is 
hard to tell more without the actual code.

Regards,
-- Jean-Marc


  • Prev by Date: Re: Tag Times Protected with Show[]
  • Next by Date: Re: Integral Questions
  • Previous by thread: Re: Tag Times Protected with Show[]
  • Next by thread: Re: Tag Times Protected with Show[]