如何使用BreakPlot函数避免boxplot产生不必要的空格?

时间:2019-04-07 22:28:23

标签: matlab plot boxplot

我发现这个神奇的工具可以产生一个y轴跳动的图,以避免不必要的空白https://www.mathworks.com/matlabcentral/fileexchange/21864-breakplot。我想在boxplot中使用breakPlot函数。如何调用BreakPlot函数以避免y轴上不必要的空格数据从20到50?这是代码:

A = [59 4.9329; 
59 6.8063; 
59 4.8889; 
61 6.3772; 
57 4.8113; 
60 4.6193; 
59 6.1924; 
59 4.0577; 
60 7.5035; 
58 4.6016; 

58 5.0844]; 


boxplot(A,'Labels',{'$\pi_1$','$\pi_2$'})

%BreakPlot(A,10,40,'Line'); 

bp = gca; 
bp.XAxis.TickLabelInterpreter = 'latex'; 
xlabel('Data set'')

ylabel('Computation time')

0 个答案:

没有答案