Nota dell'editore: 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
Cita come
Michelle Hirsch (2025). SHADOWPLOT (https://github.com/michellehirsch/MATLAB-Shadowplot), GitHub. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato: Plot Projections - Project curves on axis boundaries in view
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.2.0.0 | Moved code to GitHub. |
|
|
1.1.0.0 | Updated copyright. |
||
1.0.0.0 | Now includes limited support for data inside of HGTRANSFORMS. Thanks to Patrick Barney for this enhancement. |