# MATLAB: Capaplot: Color change possible

capaplotcolorplotstatistics

Hi, I want do use a Process capability plot ('capaplot') of a dataset but the usual commands (.facecolor and .edgecolor) do not change the color of the plot. Is there a command that would work? Thanks in advance 🙂

% Create a capaplot, the code to create a capaplot can be found in the documentation page. % Documentation link : http://www.mathworks.com/help/stats/capaplot.html#bt53f2orng default; % For reproducibilitydata = normrnd(3,0.005,100,1);S = capability(data,[2.99 3.01])capaplot(data,[2.99 3.01]);grid on% Now we use the command "gca" to get the axes where data is plottedmyPlotAxes = gca% In myPlotAxes, choose the patchchild = myPlotAxes.Children(2)% Change FaceColor and EdgeColor propertieschild.FaceColor ='r'child.EdgeColor ='g'