Add a shadow to an existing surface plot.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was a File Exchange Pick of the Week
SHADOWPLOT Add a shadow to an existing surface plot
For some surface plots, it can be helpful to visualize the shadow (2D projection) of the surface. This can give a quick perspective on the data's variance.
SHADOWPLOT PLANE Adds a shadow plot on the PLANE boundary
PLANE can be:
x, y, or z: Plots on back/top wall of x, y or z
1 .. 6 : Plots on Nth wall, numbered as in AXIS:
[xmin xmax ymin ymax zmin zmax]
SHADOWPLOT(HAX,PLANE) Adds a shadow plot on the Nth wall on axes HAX
HS = SHADOWPLOT(...) Returns a handle to the shadow (a patch)
Examples:
figure
surf(peaks)
shading interp
shadowplot x % Back X Wall
shadowplot y % Back Y Wall
Cite As
Michelle Hirsch (2026). SHADOWPLOT (https://github.com/michellehirsch/MATLAB-Shadowplot), GitHub. Retrieved .
Acknowledgements
Inspired: Plot Projections - Project curves on axis boundaries in view
General Information
- Version 1.2.0.0 (294 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
