getframe
Capture figure or axes as movie frame.
📝 Syntax
F = getframe
F = getframe(ax)
F = getframe(fig)
📥 Input argument
ax - axes object: Axes to capture.
fig - figure object: Figure to capture.
📤 Output argument
F - struct: Movie frame.
📄 Description
F = getframe captures the current axes as displayed on the screen as a movie frame. F is a structure containing the image data. The capture preserves the on-screen size of the axes but does not include tick labels or any content outside the axes boundaries.
F = getframe(ax) captures the specified axes ax instead of the current axes.
F = getframe(fig) captures the entire figure window specified by fig, including the axes title, labels, and tick marks. However, the captured frame does not include the figure’s menu or toolbars.
💡 Examples
🔗 See also
🕔 History
1.13.0
initial version
Last updated
Was this helpful?