When saving plots to PDF in MATLAB one had to use a tool like export_fig in order to prevent that the PDF looks totally different from the plot on the screen.
export_fig added a hint to use exportgraphics from MATLAB in a commit in 2020
What should a user keep in mind when deciding whether to use the internal exportgraphics or the external export_fig tool with MATLAB 2022a or later?
What are the major differences?