subplot for 'controlchart' function

4 views (last 30 days)
Hello,, I was wondering if somebody knows how to subplot with the 'controlchart' function , apparently the normal routine .. subplot(2,2,1) etc, doesn’t work. Thanks

Accepted Answer

Walter Roberson
Walter Roberson on 9 Apr 2021
Use the 'parent' option
ax(1) = subplot(2,1,1);
plot(ax(1), rand(1,20));
ax(2) = subplot(2,1,2);
load parts
st = controlchart(runout,'chart',{'xbar'}, 'Parent', ax(2));
Note: when you use 'Parent', you can only 'chart' one chart at a time, because when you ask to chart multiple items, it needs to create subplots.
Fercho_Sala on 13 Apr 2021
Thank so much for your help :)

Sign in to comment.

More Answers (1)

Fercho_Sala on 10 Apr 2021
Thanks a lot Walter, it helped so much :) , probably I will ask you some stuff about this funtion in the near future.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!