✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Add non random jitter to boxplot

Hi, I’d like to make a boxplot with vertical boxes, but with the x coordinates spread along x axis: I know that I can use the ‘jitter’ attribute to give them a random offset (as in the picture on the left), but my goal is to keep the order in the y data (as in the picture on the right), in a way similar to the jitter, but in a non random way. Is this possible using only a boxplot trace?
I’m currently using the Plotly Graphing Library for Matlab.
Thanks