This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Color blends in the background

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Value Summary

InheritedFlat, LeftRight, Pyramid, or TopBottom

Graphics Primitives

ObjectsBackgroundStyle Default Values


BackgroundStyle gives a color blend in the background of a 3D scene.

The background of a 3D scene may be set to a single color (BackgroundStyle = Flat, using BackgroundColor) or to a blend from BackgroundColor to BackgroundColor2, in one of three possible directions: LeftRight and TopBottom are linear blends from left to right or from top to bottom, respectively, while Pyramid sets a linear blend from the center to the borders.


Example 1

We demonstrate all possible styles, using a simple plot and the default values for BackgroundColor and BackgroundColor2:

c1 := plot::Cone(1, [0, 0, 0], [0, 0, 1]):
c2 := plot::Cone(1, [0, 0, 2], [0, 0, 1]):
plot(plot::Scene3d(c1, c2, BackgroundStyle = Flat),
     plot::Scene3d(c1, c2, BackgroundStyle = TopBottom),
     plot::Scene3d(c1, c2, BackgroundStyle = LeftRight),
     plot::Scene3d(c1, c2, BackgroundStyle = Pyramid),
     Layout = Tabular)

delete c1, c2:

See Also

MuPAD Functions

Was this topic helpful?