Run ax2im to convert 2D axes data to image
Hybrid format: Legends, titles, labels, ticks & text left as is
Useful for exporting figures with a large number of datapoints as "pdf" w/ vector graphics & embeddable fonts
Can reduce the file size substantially without significantly sacrificing quality
Example: ax2im(gcf); exportgraphics(gcf,'hybrid.pdf','ContentType','vector')
More extensive documentation included within the function
Cite As
Vasilis Bellos (2026). ax2im (https://uk.mathworks.com/matlabcentral/fileexchange/177779-ax2im), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
