Shaded areas in scatter figure
Afficher commentaires plus anciens
I would like to emphasize 6 areas in a scatter figure by shading the background areas and labeling them. So far I could only emphasize the areas by adding lines (hv, hh1, hh0).
figure
scatter(iDLvector,kaDLvector,'DisplayName','iDLvector,kaDLvector')
xlabel('iDL')
ylabel('kaDL')
title('Displaced-Lognormal Distribution')
axis([-0.25 0.25 -3 3])
hv = line([0 0],[-3 3]);
hh1 = line([-0.25 0.25],[1 1]);
hh0 = line([-0.25 0.25],[0 0]);
set([hh0 hv hh1],'LineStyle','--','Color','k')
figure(gcf);
The first area would be (-0.25 0) for the horizontal and (1 3) for the vertical, the second area (-0.25 0) for the horizontal and (0 1) for the vertical, and so on...
Thank you very much!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Scatter Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!