diff --git a/examples/uglyPlot.m b/examples/uglyPlot.m index 8d2e462..ad94342 100644 --- a/examples/uglyPlot.m +++ b/examples/uglyPlot.m @@ -11,7 +11,7 @@ y_cot = cot(x); % Cotangent values % Create a new figure -figure(2); clf; +hFig = figure(2); clf; % First subplot: sine curve subplot(2, 2, 1); @@ -61,3 +61,6 @@ c2.Title.String = 'Zscore'; prettify_plot; + + +set(hFig, 'SizeChangedFcn', @(src, evnt)wrapTitle(hFig)); \ No newline at end of file