问题
What I basically want to do is to have boxplots for one data set on a scatter plot using Matlab.
We can do the scatter plot with scatter(X, Y)
and instead of the points corresponding to Y
, I would like to have boxplots.
Something like scatter(X, (boxplot(Y))
- which of course does not work.
Have been searching high and low but could not find a relevant answer, or even something similar.
The scatter-points from the left-hand side have to be replaced with box plots as on the right:
来源:https://stackoverflow.com/questions/17356734/boxplot-the-data-of-the-y-axis-of-a-scatter-plot-using-matlab