From 1b4a37a044e5f762ecf6802c462c48341adc97ef Mon Sep 17 00:00:00 2001 From: Julie-Fabre Date: Sun, 5 Nov 2023 16:41:49 +0000 Subject: [PATCH] better colormap positioning --- examples/uglyPlot.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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