Patch - how to choose colors
Afficher commentaires plus anciens
Hey,
I'm having trouble getting a hold on Patch. I have this code:
xFit = logspace(4,8,1000);
yPredict = predint(fitresult,xFit,0.683,'functional','off');
x=[xFit;xFit];
y=[yPredict(:,1)';yPredict(:,2)'];
patch(x,y,1,'FaceColor','r')
I want it to create a filled area that is transparent red, but I can't even get it to be red... it's always black. I went over the documentation and didn't manage to do it myself... any help?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Polygons 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!