RemoveVisual
Removes a visual object from a diagram or scene, or removes a diagram or scene from the front end.
Syntax
-
RemoveVisual(r)-
ris a reference to a visual object
-
Description
RemoveVisual(r) removes the visual object referred to by r. This may be a diagram, a scene, a visual object in a diagram, or a visual object in a scene.
If r is an object in a diagram or scene, it is removed from it. If r is a diagram or scene, it is removed from the front end along with all of its objects.
If r isn’t a valid reference (for instance, if the object it used to referred to has been removed), nothing happens.
RemoveVisual(r) returns null.
Examples
trig ≔ diagram("trig");
s ≔ plot(y = sin(x));
c ≔ plot(y = cos(x));
at ≔ plot(y = arctan(x));
AdjustVisual(trig.view, "ymin": −2, "ymax": +2)
RemoveVisual(at)