Shade below a graph above certain value
이전 댓글 표시
Hi,
I'd like to add shade into the region right of the vertical line and below the graph. I have a set of data y, the code is following:
figure;
hold all
[p, q] = ksdensity(y)
plot(p, q)
y_star = 1.5;
line([y_star, y_star], get(gca, 'ylim'));
Thank you very much!

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!