barvalues(h, precision, textParams)

Display bar values on-top of bars in a bar or histogram plot .
1.7K Downloads
Updated 20 Dec 2021

matlab-barvalues

a matlab function for displaying values atop bars in barplots (and similar plots).

View barvalues(h, precision, textParams) on File Exchange

Cite As

Elimelech Schreiber (2024). barvalues(h, precision, textParams) (https://github.com/lemelech/matlab-barvalues/releases/tag/2.3), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Data Distribution Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
2.3

See release notes for this release on GitHub: https://github.com/lemelech/matlab-barvalues/releases/tag/2.3

2.2.1

See release notes for this release on GitHub: https://github.com/lemelech/matlab-barvalues/releases/tag/2.2.1

2.2.0.0

Supports Horizontal bars.
Added control over text properties (e.g. size, color)

2.1.0.0

stabilized.

2.0.0.0

Supports all types of bars: {'stacked', 'grouped', 'hist' , 'histc'}.

Now supports Histograms as well. (not fully tested, please report bugs)

fixed issue: error when passed handle of stacked bar plot. (Thx Karolis)

1.3.0.0

Now handles stacked bars as well.
Thx dpb for your suggestions. :)
sorry, wrong file.
This should do it.

1.2.0.0

Supports multiple bar plots in single axes.

1.1.0.0

supports empty first parameter:
barvalues([],2);

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.