%% Specify Title and Labels Using Name-Value Pairs
% Load a timetable that has a set of weather measurements. Display its first three rows.

load outdoors
outdoors(1:3,:)

%
% Create a stacked plot. Specify the title and labels for the y-axes using name-value pair arguments. You can use name-values pairs to change any properties from their defaults values. (Also note that you can specify the degree symbol using char(176).)

degreeSymbol = char(176);
newYlabels = {'RH (%)',['T (' degreeSymbol 'F)'],'P (in Hg)'};
stackedplot(outdoors,'Title','Weather Data','DisplayLabels',newYlabels)

%
% Copyright 2018 The MathWorks, Inc.