Creating several boxplots with the same scale in Matlab
I'd like to plot several distinct boxplot in Matlab, but give them the same scale so that readers do not get misled by comparing them side by side.
I've t开发者_开发技巧ried using the datalim option, but it only imposes an upper limit to the boxplot, but does not stretch it if the data doesn't reach it.
Any ideas?
Try linkaxes(). That will give them the same scale, and keep them synchronized if the user zooms or something else changes the scale.
精彩评论