H = comm.EyeDiagram('SamplesPerSymbol',1,...
'DisplayMode','2D color histogram',...
'YLimits',[min(rx),max(rx)],...
'Position',[640 310 640 560],...
'OversamplingMethod' ,'Input interpolation','ShowGrid',0,...
'ColorFading',1)
H(rx)
eyeobjq=comm.EyeDiagram('SampleRate', 40e6, ...
'SamplesPerSymbol', 8, ...
'DisplayMode', 'Line plot', ...
'ColorFading', true, ...
'ShowImaginaryEye', false, ... % 如果含有虚数,那么设置位true
'YLimits', [-600 600]) % 更详细的设置参考matlab官网
eyeobjq(Qin2)