简体   繁体   中英

matlab bar3 diagram higher bars

I habe a problem with bar3 diagram. I want to change the design of the bars and tried it with axis handle, but I could not solve the problem yet.

I want bars which are thinner and longer. Additionally the bars should have quadratic base areas.

Thank you very much in anticipation!

在此处输入图片说明

Use bar3(..., width) , where width is normalized bar width between 0 and 1. See bar3 documentation .

The bars have a square base. If it doesn't look so, that's because of different axis scales. To solve it use axis equal .

Example:

bar3(1:3, ones(3,5), .2)
axis equal

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM