Median Inner Size Compact Boxplot
4 views (last 30 days)
Show older comments
I have used the Compact plotstyle for matlab box plot and turned off the tags for box, outliers, and median outer. Essentially all I want to see is a straight line for the whisker and IQR and a black diamond or other symbol for the median. I have made some example data below with the code I have been using. The problem is that although the medianinner markers show up nicely in the fig window they print out very small in jpeg form. How do I get the medianinner markers to display in jpg like they do in fig???
Example Code;: X = [2 4 3 6 4 3 12;3 6 4 2 15 8 5;2 2 3 1 5 19 4]';
figure
b = boxplot(X,'plotstyle','compact'); h1 = findobj(gca,'Tag','Outliers'); set(h1(:,:),'Visible','Off'); h2 = findobj(gca,'Tag','Box'); set(h2(:,:),'Visible','Off'); h3 = findobj(gca,'Tag','MedianOuter'); set(h3(:,:),'Visible','Off'); h4 = findobj(gca,'Tag','MedianInner'); set(h4(:,:),'LineWidth',5)
print boxplot.jpg -djpeg -r300
I am only interested in how to print this so it looks like the display in the figure window. I have tried increasing the size of the medianinner and this does not work. I have also tried making the medianouter bigger and then turning it off in case it was restricting the medianinner and this did not work either.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!