matlab boxplot legend
时间: 2023-08-27 21:15:19 浏览: 172
在Matlab中,boxplot函数无法直接添加图例。因此,在使用boxplot函数生成盒图后,可以使用plot函数创建一个额外的图例。可以通过以下步骤实现:
1. 使用boxplot函数生成盒图,如示例代码中的boxplot(x, {g2,g1}, 'notch', 'on', 'whisker', 1, 'colorgroup', g1, 'factorgap', [8 1], 'symbol', '.', 'outliersize', 4, 'widths', 0.6, 'positions', positions)。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Matlab boxplot for Multiple Groups(多组数据的箱线图)](https://blog.csdn.net/weixin_29682503/article/details/115935769)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [用matlab画boxplot中的一些应用说明](https://blog.csdn.net/weixin_39593498/article/details/111496518)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文