How to change corrplot line and scatter dots properties?
5 次查看(过去 30 天)
显示 更早的评论
Hi Eveyone,
I would like to change the properties of corrplot, like linewidth or color of the dot. How can I do that?
Also, is there any way to save only 1 plot in corrplot?
Thank you
0 个评论
采纳的回答
Bora Eryilmaz
2023-1-1
编辑:Bora Eryilmaz
2023-1-2
Get the handle of the plot out and modify the desired properties:
[~,~,h] = corrplot(rand(100,2))
h(1,2)
h(1,2).Color = 'r';
h(1,2).MarkerSize = 4;
The regression line's handle can be found as:
h(1,2).Parent.Children
L = h(1,2).Parent.Children(2);
L.LineWidth = 3;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!