![]() |
Microscopy Image Browser 2.91
MIB
|
generate a box plot with points More...
Functions | |
function handles = | generateBoxPlot (dataset, label, options) |
generate a box plot with points | |
function xVec = | generateBoxPlot>calculateXSpread (datasets, spereadFactor, nbins) |
generate a box plot with points
function handles = generateBoxPlot | ( | dataset, | |
label, | |||
options ) |
generate a box plot with points
Example
dataset{1} = normrnd(50,2,200,1); dataset{2} = normrnd(25,2,200,1); label = Distribution 1
; label(2,:) = Distribution 2
; options.xlabel = Specimen Id
; options.ylabel = Distribution
; options.figIndex = 1024; hFig = generateBoxPlot(dataset, label, options);
dataset | - a cell array with datasets label - a char array with labels (Note that the labels should be the same length! ), use char(cell_array) to generate options - a structure with optional parameters .mode - a string, when preview the plot is scaled to the figure .width - plot width in cm .height - plot height in cm .ylim - a vector with min and max y-value .xlabel - label for the x axis .ylabel - label for the y axis .showpoints - a switch to show or not the data points .spereadfactor - a number with a spread factor, from 0 to 1 .nbins - a number of bins for the points spread .figIndex - an index of a figure to plot results .fontsize - font size |
handles | handle for the figure .hFig - handle of the figure .plotAxes - handle of the axes .h2 - handle of the dot plot |