Who even knows at this point

This commit is contained in:
2024-07-30 13:42:48 -04:00
parent fe9b338324
commit 79e3676ed3
38 changed files with 465 additions and 746 deletions

View File

@@ -1,6 +1,6 @@
close all
figure('units','pix','pos',[200 200 850 750])
ax = axes;
ax=axes;
plot((1:10).^2)
set(ax,'units','pix')
legend('x^2')
@@ -10,11 +10,11 @@ title('Title','fontsize',24)
drawnow
% Now capture the axes and labels.
P = get(ax,'pos');
T = get(ax,'tightinset');
h = [P(1)-T(1)-5 P(2)-T(2)-5 P(3)+P(1)/2+T(3)+15 P(4)+P(2)/2+T(4)+10];
F = getframe(gcf,h);
[X,Map] = frame2im(F);
P=get(ax,'pos');
T=get(ax,'tightinset');
h=[P(1)-T(1)-5 P(2)-T(2)-5 P(3)+P(1)/2+T(3)+15 P(4)+P(2)/2+T(4)+10];
F=getframe(gcf,h);
[X,Map]=frame2im(F);
% I put the funny background color so the captured area stands out.
figure('color',[.6 .2 .2],'units','pix','pos',[26 33 1184 925])
image(X)