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 (2025). ax2im (https://www.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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.