The Short Answer (maybe)

Your problem could be because of the way Plot is defined with an attribute called HoldAll.

Attributes[Plot]

{HoldAll, Protected}

The short answer to possibly fixing this problem is to wrap the first argument what you're plotting inside the function Evaluate.  So if this is what you get the error message from:

Plot[something, {x, a, b}]

then the following might solve your problem

Plot[Evaluate[something], {x, a, b}]


Created by Mathematica  (March 2, 2006) Valid XHTML 1.1!