plot - Overlapping graphs in matlab -
i drawing several graphs in same plot in matlab using command, hold on. problem drawing points big markersize on top of of graphs, , theses points have specific color. happens of them take color , others take color, guess colors of points mixed colors of graphs on top of put them. there mean ask matlap overwrite whatever under points color assign them?
example:
x= 0:1:10; plot(x,x,'r',x,-x,'b','linewidth',2) hold on plot(5,-5,'.',10,10,'.','markercolor',[0,0.5,0],'markersize',24) hold on plot(5,5,'.',10,-10,'.','markerfacecolor',[0,0.75,0],'markersize', 24) imagine curves more complicated theses simple lines no way start having fun cutting them each time want represent point... problem points 5,-5 , 10,10 have same color. namely 0 0.5 0 dark green. color mixed depending on line lie. if specify color '.g' don't problem, problem got many points covered few number of colors labeled letters (eg 'r' 'b' 'k' etc..).
thankfully
Comments
Post a Comment