I wanted to add the mean of the Young's modulus to my box plot. It works perfectly fine with a vertical box plot, but I can’t get it to work with a horizontal box plot... It looks like MATLAB is doing something, but not displaying anything except the box plot.
I tried to fix the axis, but that doesn’t work either. It looks like whenever the box plot is rotated everything that worked before gets thrown away.
%Boxplot all tensile strength tests
figure(f1)
subplot(2,1,2)
hold on
xlabel('Youngs Modulus [MPa]') ;
ylabel('Samples:') ;
boxplot(E,k,'orientation','vertical') ;
plot(E_mean,'ok');
hold off