Max - Median - Min - Phoney Box Plot
古いコメントを表示
I have some data in which I need to plot the min, max and median in a similar fashion to a box plot.
The x axis would have my variables and the y axis would have values with a marker for mean, min and max.
Something like the below would be brill. (Sorry for poor image quality!)
I don't really want to create a

採用された回答
その他の回答 (1 件)
Johnathan Schaff
2019 年 2 月 7 日
I've attached the code I used to create something similar to the plot you posted. The main built-in that came to mind for me was to use the errorbar function. This would allow you to specify your data points with some for of +/- bound on either the x or y axis to create the pseudo box plot. Then the next part involves editing the figure and axes parameters.
% Display matlab.ui.Figure properties
h = figure()
properties(h)
Looking at the figure properties can give a good idea of what can be easily modifiable for the plot needs. In this case, specifying the grid axis, xticks, and xticklabels can you some customization for your plot in this case. Getting the multiline xticklabels is probably the trickiest part as that involves using the latex interpreter. I also include some references that I found which were helpful in making this, so more information about the properties can be found in the script.

カテゴリ
ヘルプ センター および File Exchange で Data Distribution Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
