barvalues(h, precision, textParams)

Display bar values on-top of bars in a bar or histogram plot .

https://github.com/lemelech/matlab-barvalues

You are now following this Submission

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 (2026). barvalues(h, precision, textParams) (https://github.com/lemelech/matlab-barvalues/releases/tag/2.3), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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.