Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colorbar titles in 2D plot exports do not work properly #382

Closed
mahendraK96 opened this issue Dec 5, 2023 · 1 comment
Closed

Colorbar titles in 2D plot exports do not work properly #382

mahendraK96 opened this issue Dec 5, 2023 · 1 comment
Labels

Comments

@mahendraK96
Copy link

mahendraK96 commented Dec 5, 2023

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');
@altmany altmany added the bug label Dec 5, 2023
altmany added a commit that referenced this issue Dec 5, 2023
@altmany
Copy link
Owner

altmany commented Dec 5, 2023

Fixed in latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants