stacked-horizontal-bar-graphs
Versión 1.0.0 (2,83 KB) por
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
Citar como
Ahteshamul Haq (2025). stacked-horizontal-bar-graphs (https://www.mathworks.com/matlabcentral/fileexchange/127679-stacked-horizontal-bar-graphs), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2023a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |