outerlabels

outerlabels(ax, xlabel_str, ylabel_str, varargin)

OUTERLABELS Add big x/y labels on the outside of an axis grid

Usage:

[h_xl, h_yl, h_axbig] = outerlabels(axs, xlabel_str, ylabel_str, ‘Name’, Value, …) outerlabels() % runs demo

Inputs:

axs : array of axes handles – required xlabel_str : char - outer x-label text – required ylabel_str : char - outer y-label text – required

Name-Value Pairs:

‘XAxisLocation’ : ‘bottom’ or ‘top’ (default: ‘bottom’) ‘YAxisLocation’ : ‘left’ or ‘right’ (default: ‘left’) <label options> : any additional name-value pairs forwarded to xlabel/ylabel

(default: {‘FontSize’,17,’FontWeight’,’bold’})

Outputs:

h_xl : xlabel handle h_yl : ylabel handle h_axbig : parent (overlay) axes handle

Example

ax = figdesign(3,2); [~,~,ax_big] = outerlabels(ax,’My X-Label’,’My Y-Label’);

See also: outertitle, figdesign, xlabel, ylabel

∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿