TransWikia.com

Certain plotting functions are setting variables unwantedly

Mathematica Asked by Yousousen on March 22, 2021

I came across the following problem. Certain plotting functions set variables to values, which I do not want. For example, if I run SliceVectorPlot3D with an example from the documentation,

SliceVectorPlot3D[{y, -x, z}, "CenterPlanes", {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]

Then after I run above line the x, y and z symbols are all set to the value of 2. I cannot clear those variables with ClearAll, only by calling Remove onto them.

DensityPlot3D also has this problem and other 3D plotting functions do this as well. But not all of them; Plot3D and ContourPlot3D leave the variables unallocated.

I have no idea if this is intended behavior, but I would love it if I can prevent these functions from setting the variables. I am running Mathematica version 12.2.0.0 on Arch Linux. My Windows machine running the same version of Mathematica has the same behavior for the plotting functions.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP