Small Value bars are missing in bar graph.

1 回表示 (過去 30 日間)
wasim hassan
wasim hassan 2020 年 9 月 16 日
編集済み: Abdolkarim Mohammadi 2020 年 9 月 16 日
I have two 24x16 matrix. For each row of these matrixs, I am ploting 24 different bar graphs on one figure with same y-axis limit for all graphs. Some of entries of that matrix are very small as compared to others and bars of these small values are missing (as you can see in the figure some bars are not there although matrix entries are not zero at these locations).

回答 (1 件)

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2020 年 9 月 16 日
編集済み: Abdolkarim Mohammadi 2020 年 9 月 16 日
You can add a constant to the bars with small values. For example:
X (X<4) = X (X<4) + 0.2;

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by