Quiver - magnitude-dependent color in 2D and 3D
Cite As
Jonas Krimmer (2026). Quiver - magnitude-dependent color in 2D and 3D (https://uk.mathworks.com/matlabcentral/fileexchange/58527-quiver-magnitude-dependent-color-in-2d-and-3d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Vector Fields >
Tags
Acknowledgements
Inspired by: Quiverc
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 2.0 | Breaking change: Normalization behavior changed. Now, all arrows feature the same length in case of normalization. |
||
| 1.3 | Fixed bug in Matlab 2018b and earlier |
||
| 1.2 | Included option to add a colorbar. Implementation based on the comment by Javier - thank you very much! |
||
| 1.1.2 | - Fixed a bug hindering the maximum calculation required for the coloring in older MATLAB releases.
|
||
| 1.1.1 | Adjusted compatibility |
||
| 1.1 | Added compatibility with arrays of arbitrary dimensions. This addition is particularly useful for quiverC3D where the arrows can now be characterized by three-dimensional arrays. |
||
| 1.0.3 | From now on: No automatic normalization. In case of normalization, the longest vector will now be plotted with length one. |
||
| 1.0.2 | Function is now more intelligent: Creates grouped quiver plots if arrays contain more elements than the colormap. Enables plotting of thousands of arrows without major issues. |
||
| 1.0.1 | - Fixed a bug where the colormap was assumed to carry a fixed number of 64 colors.
|
||
| 1.0.0.0 | 2016_08_03: Updated description. |
