Max - Median - Min - Phoney Box Plot
Mostrar comentarios más antiguos
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

Respuesta aceptada
Más respuestas (1)
Johnathan Schaff
el 7 de Feb. de 2019
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.

Categorías
Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
