Positive-zero-negative colorbar
Create positive-zero-negative colormaps and colorbars. Customized colormap/colorbar options are available.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Xiaowei He (2026). Positive-zero-negative colorbar (https://in.mathworks.com/matlabcentral/fileexchange/110190-positive-zero-negative-colorbar), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.8.1 (8.42 KB)
MATLAB Release Compatibility
- Compatible with R2014b and later releases
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.8.1 | Fixed a bug where using the 'log' option with both negative caxis limits [caxis1, caxis2] <= 0 gives wrong color maps. |
||
| 1.8.0 | - Function name changed to >>colorbarpzn denoting positive-zero-negative. 'colorW' option name changed to 'colorZ' accordingly.
|
||
| 1.7.2 | - Fixed a bug where the number of levels is incorrect when using the 'log' option.
|
||
| 1.7.1 | - Fixed a bug in v1.7.0 where using [R G B] and P2value/N2value together in 'colorP2' or 'colorN2' can cause a fault error. |
||
| 1.7.0 | - Added options 'colorP2' and 'colorN2' for secondary colors in the positive and negative color spectra, respectively.
|
||
| 1.6.1 | - Fixed a bug in v1.6.0 where the white color is not at zero when using default cmin and cmax settings. |
||
| 1.6.0 | - Added an option 'wrs' for extending the white color region so small values are displayed in a uniform color.
|
||
| 1.5.0 | - Added predefined low-saturation colors which allows for changing the default colormap with combinations of these predefined colors.
|
||
| 1.4.0 | - Added support for reversed colorbar direction by switching cmin and cmax order.
|
||
| 1.3.0 | - Added support for setting colormap and displaying colorbar on specific target, e.g., colorbarpwn(ax, cmin, cmax).
|
||
| 1.2.0 | - Changed the function name from >>colorbarPWN to >>colorbarpwn for friendlier user experience.
|
||
| 1.1.1 | - Minor code improvement.
|
||
| 1.1.0 |