Changing plot axes proportions with split axes?
조회 수: 7 (최근 30일)
이전 댓글 표시
To plot notched box plots, I use:
x = [A_data B_data];
g = [zeros(length(A_data),1); ones(length(B_data),1)];
%boxplot(x, g)
figure;
boxplot(x,g,'Notch','on','Labels',{'A_condition','B_condition'})
xlabel('Data','FontSize',16);
ylabel('Y_Title','FontSize',16);
title('Figure title')
The y axis limits for these plots depend on the range of my data, but I would like to be able to change the proportions of the axis to better display the results. For example, instead of having a linear y axis from 0 to 30, I would like 70% of the y axis to show from 0 to 15, and 30% of the y axis to show from 15 to 30. This is different from an axis segmentation, where the axis may go from 0 to 15, break, then 25 to 30.
I have searched and I have not found a way to implement this in MATLAb (but it is easy to do in GraphPad Prism). Any ideas? Thank you.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!