boxplotCsub (boxplotC)

版本 (8.1 KB) 作者: Brian Katz
Revised version of boxplotC to allow coloring and subgroup plotting of boxplots.

4.0K 次下载

更新时间 2014/9/2


This function provides some additional propoerties to the standard boxplot display. The basic old syntax of boxplot is retained, for compatibility.
The primary purpose is to allow for GROUPED boxplots, or subplots, of color coded boxplots on the same graph. This is useful for boxplot data comparrisons over multiple variables. It is also possible to overlay boxplots or to simply color different sets differently.

This routine allows for subgroup plotting of colorcoded boxplots (boxplotCsub) using the subfunction boxplotC (which allows for multiple colored box plots to be overlayed). In addition, standard line color and line width definition is available, as well as the filled option. This allows for color coding multiple box plots and overlaying. Download ZIP contains boxplotCsub with a revised boxplotC and boxutilC.

Reverse compatible with standard boxplot old (v.2002) syntax. While less obvious than the current syntax, looking at the examples should help clarify usage for those unfamiliar with boxplot.

Due to changes in boxplot in v.2011, the old BOXPLOT syntax help has been inclued, along with several examples.

BOXPLOTC is now obsolete, and superceded by this function.


Brian Katz (2023). boxplotCsub (boxplotC) (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
Windows macOS Linux

参考作品: boxplotC, Hatched Fill Patterns

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明

Added warning for h_ticklabels call when unavailable. Added additional example showing default settings usage.

Revised help to be more readable.
Corrected bug when using RGB color definitions.

Small fonctionality, such as mean symbol. Fixes to various comments by users. As the BOXPLOT syntax has changed in recent versions of MatLab, I have copied the original help syntax as that is what is used here. BOXPLTCSUB now makes BOXPLOTC obsolete.

March 2011 revision includes the addition of mean symbol and variable widths.

Rev.2010 includes modification of box widths and control of overlap. Help modified to highlight these features.

Revised description only.