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!