stacked-horizontal-bar-graphs
バージョン 1.0.0 (2.83 KB) 作成者:
Ahteshamul Haq
This m-file plots modified stacked-horizontal-bar-graphs with desired colors of the bars.
%% 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 (2025). stacked-horizontal-bar-graphs (https://jp.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 |
