New answers tagged

0

This seems to meet your requirements, MyDensityPlot::argerr = "Number of undefined variables > 3"; Options[MyDensityPlot] := Options[DensityPlot]; MyDensityPlot[fn_, range_, options : OptionsPattern[]] := Module[{p1, externalSymbol, localx, localy, reg}, externalSymbol = With[{currentContextQ = Context@# === $Context &}, ...


4

From the documentation, Show allows any option that can be applied to graphics to be given. But if you try to look at the options specific to Show you find none, Options[Show] (* {} *) So you should use Options[Graphics] instead. And to the main problem, it's a scoping thing. Module replaces all instances of cm with cm$232494 or some other random ...



Top 50 recent answers are included