stacked-horizontal-bar-graphs

This m-file plots modified stacked-horizontal-bar-graphs with desired colors of the bars.
2 download
Aggiornato 12 apr 2023

Visualizza la licenza

%% 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

Cita come

Ahteshamul Haq (2024). stacked-horizontal-bar-graphs (https://www.mathworks.com/matlabcentral/fileexchange/127679-stacked-horizontal-bar-graphs), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2023a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0