🌐
MathWorks
mathworks.com › matlab › graphics › 2-d and 3-d plots › data distribution plots
boxchart - Box chart (box plot) - MATLAB
This MATLAB function creates a box chart, or box plot, for each column of the matrix ydata.
🌐
MathWorks
mathworks.com › matlabcentral › fileexchange › 42470-box-and-whiskers-plot-without-statistics-toolbox
Box and whiskers plot (without statistics toolbox) - File Exchange - MATLAB Central
Creates nice boxplots from data. You don't need a toolbox. Simple yet fully featured. Jonathan C. Lansey ... Requires R2026b and later. Learn more · Share 'Box and whiskers plot (without statistics toolbox)' ... Requires R2026b and later. Learn more · Share 'Box and whiskers plot (without statistics toolbox)' ... Jonathan C. Lansey (2026). Box and whiskers plot (without statistics toolbox) (https://www.mathworks.com/matlabcentral...
🌐
MathWorks
mathworks.com › matlabcentral › answers › 2081311-how-do-i-use-matlab-to-create-a-boxplot
How do I use Matlab to create a boxplot? - MATLAB Answers - MATLAB Central
February 12, 2024 - There are two options, the Statistics and Machine Learning Toolbox boxplot function and the core MATLAB boxchart funciton.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 2010302-side-by-side-boxplots
Side by side boxplots - MATLAB Answers - MATLAB Central
August 18, 2023 - Hi Guys, I've got a .mat file which has two data sets that load in as 35x1 doubles. I would like to create a graph that has the box plots of each data set next to each other. I've had a look a...
🌐
MathWorks
mathworks.com › matlabcentral › answers › 487258-boxplot-for-multiple-categorical-data-sets
Boxplot for multiple categorical data sets - MATLAB Answers - MATLAB Central
October 24, 2019 - Notice the X-axis labels can still be used to correctly identify each boxplot. Sign in to comment. ... https://www.mathworks.com/matlabcentral/answers/487258-boxplot-for-multiple-categorical-data-sets#answer_398117
🌐
YouTube
youtube.com › watch
MATLAB Box Plot Tutorial - Beginner-Friendly Guide - YouTube
Looking to visualize your data effectively using MATLAB? Need help with Data Analysis, Machine Learning, Deep Learning, Numerical Methods, or AI agents? I pr...
Published: April 19, 2025
🌐
Plotly
plotly.com › matlab › box-plots
Box plots in MATLAB
Note: We are retiring documentation for R, MATLAB, Julia, and F#. Learn more about this change here. data1 = normrnd(5,1,100,1); data2 = normrnd(6,1,100,1); fig = figure; boxplot([data1,data2]) fig2plotly(fig); data = {... struct(... 'y', [0, 1, 1, 2, 3, 5, 8, 13, 21], ...
Find elsewhere
🌐
YouTube
youtube.com › jackson fox
Creating a Boxplot with MATLAB - YouTube
This video shows how to create a Boxplot using MATLAB.
Published: September 7, 2023
Views: 4K
🌐
MathWorks
mathworks.com › matlabcentral › answers › 877683-how-to-plot-box-plots-of-data-of-different-sizes-on-the-same-figure
How to plot box plots of data of different sizes on the same figure? - MATLAB Answers - MATLAB Central
July 13, 2021 - https://www.mathworks.com/matlabcentral/answers/877683-how-to-plot-box-plots-of-data-of-different-sizes-on-the-same-figure#comment_1636823 ... ax.YLim = [YLimCoeff*min([x1(:); x2(:)]), YLimCoeff*max([x1(:); x2(:)])]; % so, even if x1 and x2 come from different sources, by now, both are available · % modify XTick: current axis only has the tick value for the second boxplot
🌐
MathWorks
mathworks.com › matlabcentral › fileexchange › 182379-boxplot
boxPlot - File Exchange - MATLAB Central
December 6, 2025 - Ryan Gorzek (2025). boxPlot (https://github.com/ryan-gorzek/boxPlot), GitHub.
🌐
MathWorks
fr.mathworks.com › matlabcentral › answers › 10147-boxplot-data
Boxplot Data - MATLAB Answers - MATLAB Central
June 23, 2011 - For interquartile outlier output, use the 'quartiles' method for isoutlier. To get the same results between boxplot and isoutlier, make sure the whisker value in boxplot is the same value as the threshold factor in isoutlier. ... In that case, you might try using Matlab's quantile function and create a condition for your threshold.
🌐
MathWorks
mathworks.com › matlabcentral › fileexchange › 88808-boxplotperc
boxplotPerc - File Exchange - MATLAB Central
March 13, 2021 - PURPOSE: A boxplot function which allows users to specify the percentile values of boxplot whiskers while still using the standard MATLAB boxplot options.
🌐
Matplotlib
matplotlib.org › stable › api › markers_api.html
matplotlib.markers — Matplotlib 3.11.2 documentation
Functions to handle markers; used by the marker functionality of plot, scatter, and errorbar · All possible markers are defined here:
🌐
MathWorks
mathworks.com › matlabcentral › answers › 587249-how-do-i-make-a-boxplot-with-a-few-groups
How do I make a boxplot with a few groups? - MATLAB Answers - MATLAB Central
September 1, 2020 - Use a grouping variable along with the "Group Appearance" options described in Matlab's boxplot() documentation.
Top answer
1 of 1
1
First of all, if you use boxchart (released in R2020a) you'll have a bit more flexibility than the old boxplot function. The way I interpreted what you were asking for is, two grouping factors: one should be grouping by which column of the matrix, and the other should be grouping by which matrix. To accomplish this with boxchart it's easier to specify data as vectors rather than matrices, this let's you explicitly specify the xgroupdata argument and the cgroupdata argument. You'll need to choose which one you want to be represented by color and which you'll want for x - I think from your description you're looking for 7 sets of 3 boxes (so color is 'which matrix' and x is 'which column'. But if I got that wrong you can just reverse them. Finally, I added a little multiplier to the x so that there was a little space between each set of 3 boxes. I think that makes it a little easier to see, but it means having to set the XTicks/XTickLabels explitily. You could make the below code much more compact, I spread it out so you could see my logic: % Sample Data: trial1 = rand(5,7); trial2 = rand(10,7); trial3 = rand(15,7); % These grouping matrices label the columns: grp1 = repmat(1:7,size(trial1,1),1); grp2 = repmat(1:7,size(trial2,1),1); grp3 = repmat(1:7,size(trial3,1),1); % These color matrices label the matrix id: clr1 = repmat(1,size(trial1)); clr2 = repmat(2,size(trial2)); clr3 = repmat(3,size(trial3)); % Combine the above matrices into one for x, y, and c: x = [grp1;grp2;grp3]; y = [trial1;trial2;trial3]; c = [clr1;clr2;clr3]; % Convert those matrices to vectors: x = x(:); y = y(:); c = c(:); % Multiply x by 2 so that they're spread out: x = x*2; % Make the boxchart, boxchart(x(:),y(:),'GroupByColor',c(:)) % Set the x ticks and labels, and add a legend xticks(2:2:14); xticklabels(1:7) xlabel('Category') legend(["Trial 1" "Trial 2" "Trial 3"],'Location','NorthOutside')