
[英]How can I compile a mex function in Windows with Eclipse (4.20.0 version) and Matlab (R2021a)
[英]Why are the scatterplot colors in MATLAB R2021a different?
如发行说明中所述,R2021a 中的行为确实发生了变化:
视觉外观更新与生成的地块
eyediagram
和scatterplot
功能。
该eyediagram
和scatterplot
函数现在默认提供黑色曲线背景。
您可以通过修改轴/图形的属性来根据需要更改颜色,如下所示:
%Taking the example from the documentation
d = (0:63)';
s = qammod(d,64);
scatterplot(s);
%Modifying the colors
h=gca; %Axis handle
h.Title.Color='k' %Color of title
h.Children.Color='b'; %Color of points
h.YColor='k'; %Y-axis color including ylabel
h.XColor='k'; %X-axis color including xlabel
h.Color ='w'; %inside-axis color
h.Parent.Color='w' %outside-axis color
不加修改,我们得到:
修改后,根据需要,我们得到:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.