In version 10.1 I found a strange Plot
behavior I did not anticipate. It seems that various heads including PlusMinus
are treated as wrappers and stripped by Plot
in a way that is not safe. This means that definitions that do not appear in the plot expression can radically and errantly affect its output:
ClearAll[PlusMinus]
Plot[x^2, {x, -1, 1}]
PlusMinus = Power;
Plot[x^2, {x, -1, 1}]
Surely this is a bug? What versions are affected? What is the easiest way to patch this in version 10.1?
Charting`ParserDump`plotStripWrappers
$\endgroup$ – Mr.Wizard May 22 '20 at 10:58Charting`ParserDump`
context doesn't seem to exist in v9.0.1. $\endgroup$ – xzczd May 22 '20 at 11:09