How can I plot these two variable in bars?

1 回表示 (過去 30 日間)
flashpode
flashpode 2022 年 5 月 2 日
コメント済み: dpb 2022 年 5 月 2 日
I have these two variables one of values of each month(C) and the other with the names of the corresponding values(T) I mean the names under the bars of each value of VARIABLE C. How can I plot them where we could see each other well? I attached the file with the variables. Than you in advance

採用された回答

dpb
dpb 2022 年 5 月 2 日
編集済み: dpb 2022 年 5 月 2 日
load sl % get variable titles
T=categorical(T); % turn into categorical variable
C=randi(200,1,numel(T)); % make up some data to got with...
bar(T,C)
  10 件のコメント
flashpode
flashpode 2022 年 5 月 2 日
yeah but its no so much data just 6 numbers
dpb
dpb 2022 年 5 月 2 日
For MATLAB, investigate colormap to learn about more and different choices and how to set/change them.
While inherently utterly flexible, the UI is, unfortunately, still based on 60s-70s era engineer-like syntax of writing code and delving into the internals of "how things work" in order to make changes. "User-friendly" and "rapid development" haven't much evolved into this arena yet if one isn't satisfied with the default colormaps supplied.
You can fiddle with Excel and see how like the color choices, then move those over to MATLAB -- what's newish and different in Excel is all the addtional visual enhancements of how can display that MATLAB just doesn't have equivalents for. Most, if not all, of these probably have more use in business graphics than scientific, but they do tend to have a more modern look and feel about them.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRed についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by