Error setting property 'MarkerFaceAlpha' of class 'Scatter': Value is NaN, or out of range 0.0 <= value <= 1.0
조회 수: 2 (최근 30일)
이전 댓글 표시
per_all = per_2006_2017/100;% to bring the values in the range of 0 to 1
for i = 1:size(xgrid2,1)
for j = 1:size(xgrid2,2)
s11 = scatter(xgrid2(i,j),ygrid2(i,j),20,skw_mn_wr(i,j),'filled');
%size of xgrid2, ygrid2, skw_mn_wr is 119*177
s11.MarkerFaceAlpha = per_all(i,j); %size of per_all is 119*177
end
end
I don't have any NaN's in per_all, and all values are between 0 to 1.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!