%% Semilog Plot with Y-Axis Log Scale
% Import data into a timetable. Then make a stacked plot. By default, all plots have linear scales on both their x- and y-axes.

tbl = readtimetable("outages.csv");
tbl = sortrows(tbl);
s = stackedplot(tbl)

%
% You can access properties of individual y-axes, such as their scales, through the s.AxesProperties property.

s.AxesProperties

%
% To turn the first and second plots into semilog plots, with log scales on their y-axes, set their YScale properties to 'log'.

s.AxesProperties(1).YScale = 'log';
s.AxesProperties(2).YScale = 'log';

% Copyright 2021 The MathWorks, Inc.