How to make barh figure have minimum value of vertical axis zero?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi All
I was trying to force the barh figure to always have 0 as minimum
ranged = ranges(0 < ranges & ranges < max(ranges)*1.1)
but doing so, if the minimum is too close to zero but positive, the minimum of the plot will be a negative value. since for my parameter on vertical axis , negative value has no meaning, I wanted to have it always positive, even Ylim did not work. any suggestion ?
1 件のコメント
Adam Danz
2020 年 4 月 28 日
Wait, I'm confused. barh produces horizontal bars. What do you mean by "minimum balue of vertical axis"? What is ranges? Perhaps a screenshot would be helpful.
採用された回答
Adam Danz
2020 年 4 月 28 日
Assuming, ranges is a matrix or vector identifying the bar hight of each bar,
ranged = max(0, ranges);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!