如何控制legend里的每个patch?

3 次查看(过去 30 天)
令宸
令宸 2025-12-26,10:48
我在画柱状图的时候需要区别不同种类的模型跑出来的结果。为了区别深度学习模型和机器学习模型,我在画图的时候使用了hatchfill2对机器学习模型跑出来的结果进行了斜线填充,但是2024b之后的legend不在支持多个输出参量,我没办法用hatchfill2去填充图例里的色块。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!