Skip to content

Commit 1b4a37a

Browse files
committed
better colormap positioning
1 parent b1db422 commit 1b4a37a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/uglyPlot.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
y_cot = cot(x); % Cotangent values
1212

1313
% Create a new figure
14-
figure(2); clf;
14+
hFig = figure(2); clf;
1515

1616
% First subplot: sine curve
1717
subplot(2, 2, 1);
@@ -61,3 +61,6 @@
6161
c2.Title.String = 'Zscore';
6262

6363
prettify_plot;
64+
65+
66+
set(hFig, 'SizeChangedFcn', @(src, evnt)wrapTitle(hFig));

0 commit comments

Comments
 (0)