You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting a 2D plot (contour plot for example) in vector form (PDF or EPS), the title of the color-bar is cut off by the boundary if the main plot has no title or just whitespace in the title. It works just fine with -PNG option.
MWE below.
[X,Y,Z] =peaks;
F =figure;
contour(X,Y,Z,20);
cb =colorbar;
title(cb,'Tst','FontSize',18);
export_fig(F,'Tst','-pdf','-png','-transparent');
The text was updated successfully, but these errors were encountered:
When exporting a 2D plot (contour plot for example) in vector form (PDF or EPS), the title of the color-bar is cut off by the boundary if the main plot has no title or just whitespace in the title. It works just fine with -PNG option.
MWE below.
The text was updated successfully, but these errors were encountered: