Skip to Main Content Skip to Search
Product Documentation

AffectViewingBox – influence of objects on the ViewingBox of a scene

AffectViewingBox determines whether the ViewingBox of an object should be taken into account for the total ViewingBox of the graphical scene.

→ Examples

Attribute

Type

Value

See Also:

ViewingBox

Details:

Usually, the visible area/volume of a graphical scene is automatically chosen as the smallest box containing all objects of the scene. Objects with AffectViewingBox = FALSE are ignored in the computation of this box.

Example 1

We plot the sine and the exponential function in one scene:

plot(plot::Function2d(sin(x), x = -PI..PI),
     plot::Function2d(exp(x), x = -PI..PI))

MuPAD graphics

The exponential function dominates the sine. We set AffectViewingBox = FALSE for exp. Now, only the sine function determines the visible area and exp is only visible where it is in the ViewingBox of the sine function:

plot(plot::Function2d(sin(x), x = -PI..PI),
     plot::Function2d(exp(x), x = -PI..PI,
                      AffectViewingBox = FALSE))

MuPAD graphics

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS