Boxplot x-axis not numerically ordered

I have two arrays, one with a discreet number of X-values, and one with a vide range Y-values. When I make a boxplot it groups the Y-values corresponding to the X (good) but the X values aren't displayed in numerical order, they appear along the axis in the order they are listed (for example: 3,6,2,4,8 rather than 2,3,4,6,8). Can I change this? how?

Antworten (1)

Adam Danz
Adam Danz am 23 Jan. 2019
Bearbeitet: Adam Danz am 31 Jan. 2020

0 Stimmen

See the GroupOrder property of boxplots.

Produkte

Version

R2017b

Gefragt:

am 23 Jan. 2019

Bearbeitet:

am 31 Jan. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by