Bar Fill Pattern problem in plot
20 次查看(过去 30 天)
显示 更早的评论
Good morning.
I am plotting bar chart that I want to change the fill pattern for each bar. Can anybody help me to write the affiliated code?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/981385/image.jpeg)
This is an example of I want to plot
Thank you very much
0 个评论
采纳的回答
DGM
2022-4-28
编辑:DGM
2022-4-28
There are tools on the File Exchange for doing that.
See this example:
7 个评论
DGM
2022-4-28
I see you already saw the examples on this post:
I think Simeon's example is the simpler of the two, though it would probably be easiest if you showed what your plotting code looks like so far and we can just adapt that instead.
For what it's worth, if you're having trouble getting everything from GitHub, you can just get it from here.
The legendflex() package includes getpos(), so you shouldn't need to get that separately. Just get legendflex and stick it in a folder and add the folder (and its subfolders) to the path.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!