%% FILE DESCRIPTION
% This m-file plots modified stacked-horizontal-bar-graphs with desired colours of the
% bars. Following conditions are used to set the colour of each bars:
%
% * 0 <Time_Duration<= 255 : White
% * 255 <Time_Duration<= 499 : Light
% * 499 <Time_Duration<= 569 : Medium
% * 569 <Time_Duration <=628 : Dark
%% Idea behind code
%
% * *How bar graph works* _(for a series of data sets)_ :
% Stacked bar graph plots any point of a data set as its cumulative sum. For example, if
% we command to plot 5th point of a data set, the bar graph will add the
% summation of the last four points to it, and only then it will plot the
% point. In this manner, different data points are stacked together.
%
% * *Way the code is written*:
% Every data point is plotted indiviually with its respective colour and
% brought together usnig hold on command.
% Last data point of each series is plotted first. So that other points can
% be plotted to overlap on it. Note: Last point when plotted contanis
% cumulative sum of its preceeding points, this feature is used to plot all
% the data points
引用格式
Ahteshamul Haq (2024). stacked-horizontal-bar-graphs (https://www.mathworks.com/matlabcentral/fileexchange/127679-stacked-horizontal-bar-graphs), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2023a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |