plotting a bar chart with "text" categories on the x-axis

3 ビュー (過去 30 日間)
AWi
AWi 2018 年 4 月 17 日
回答済み: Ahmet Cecen 2018 年 4 月 17 日
Is it possible to create a bar chart like this in MATLAB?
Any guidance or help is appreciated!
(I included a csv-file with the data for this chart.)

回答 (1 件)

Ahmet Cecen
Ahmet Cecen 2018 年 4 月 17 日

Here is a start:

example = readtable('example.CSV');
example = sortrows(example,'Group');
h = bar(table2array(example(:,3:6)),'stacked');
set(gca,'xticklabel',table2array(example(:,2)));

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by