Stacked Plot
Stacked plots are commonly seen in NMR spectroscopy. They often illustrate the evolution of spectra with time or some other parameter. There are several (somewhat equivalent) methods to produce such plots in Matlab. This function serves as a common interface to these various methods. Certainly some methods may be evoked directly, e.g. mesh, but some others are not as obvious, e.g. plot3. In addition a method (style 1) has been added that produces the traditional stacked plot format. This fucntion can be found inside the program as "splot".
The purpose of this program is to educate through sample code and to provide a unified interface to these various styles. Select the method you like best.
There did not seem to be available such a program in the file exchange and it took some experimentation and time to explore different Matlab commands. As a result it seemed beneficial to have a common interface to these commands. Please leave or send me comments as improvements are hastened by user feedback.
Included in the downloaded documentation is a pdf describing how to make the z matrix, the 2D data array.
Citation pour cette source
Mirko Hrovat (2026). Stacked Plot (https://fr.mathworks.com/matlabcentral/fileexchange/24368-stacked-plot), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Volume Visualization > Vector Volume Data >
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.3.0.1 | Minor changes, documentation changes, and splot is available as a standalone function. |
||
| 1.3.0.0 | One bug pertaining to sytle selection has been fixed, errors in documetation, and axis labels can now be orientated in the reverse direction. |
||
| 1.1.0.0 | changed title in help file. |
||
| 1.0.0.0 |
