by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 5.2, Creation date: 2022-04-10, Last change: 2025-09-15
See Also: , implot
I=getframeaxis([ax])
ax: | default is gca |
I: | Image struct as of getframe |
SGbox; view(0,90); I=getframeaxis(gca); figure(123); implot(I); axis equal;
This function, getframeaxis, is designed to capture the current figure or a specified axis in MATLAB, similar to the built-in getframe function, but with additional axis information.
gca).getframe, but with additional axis information.getfuncparams. If no axis is provided, use the current axis (gca).getframe.I using axis.Tofgca and store it in I.Tt.The function can be used as follows:
SGbox; view(0,90); I=getframeaxis(gca); figure(123); implot(I); axis equal;
This example demonstrates capturing the current axis and displaying it in a new figure with equal axis scaling.
Algorithm explaination created using ChatGPT on 2025-08-18 22:17. (Please note: No guarantee for the correctness of this explanation)