Boxplot - how to set x-axis position
Show older comments
Hi there.
Briefly, i have a set of 10 arrays (numeric values) of different sizes i want to plot in a boxplot.
I created a vector containing the whole data and grouped it using numeric values, specified by a grouping variable g (using the repmat routine i've found in the community).
I would the values in g to be the x-axis position of the boxes; now, the x labels show the right values but the matlab function boxplot just places the boxes in evenly spaced locations, regardless of the specific x-value.
the x values are: [48; 52; 53; 64; 68; 84; 86; 89; 90; 91] and i want the range [30 100] for the x-axis.
Is there a way to manually set the location of the boxes? I have access to an old version of Matlab (7.0 R14) that does not support the 'positions' parameter as input argument.
Thank you in advance.
Antonio Mancini
Answers (0)
Categories
Find more on Box Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!