Re: Tag Times Protected with Show[]
- To: mathgroup at smc.vnet.net
- Subject: [mg89360] Re: Tag Times Protected with Show[]
- From: Helen Read <read at math.uvm.edu>
- Date: Sat, 7 Jun 2008 02:57:47 -0400 (EDT)
- 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? It would be helpful to include in your post your definitions of secondfit, second, and maxtime. You'll get more (and better) replies if you provide working code that anyone can copy/paste and execute without having to make up their own example. That said, the "Tag Times ... is Protected" error usually means you need to clear something. Try quitting Mathematica and running your code in a fresh session. Also, in Mathematica 6, there is no need to muck around with DisplayFunction here. line = Plot[secondfit, {x, 0.8, maxtime}]; splot = ListPlot[second]; Show[splot,line,PlotRange->All] will output only the combined plot from Show. -- Helen Read University of Vermont