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

Axis labels sometimes cropped (.pdf, Mtlab 2015a) #125

Closed
hpay opened this issue Jan 16, 2016 · 1 comment
Closed

Axis labels sometimes cropped (.pdf, Mtlab 2015a) #125

hpay opened this issue Jan 16, 2016 · 1 comment

Comments

@hpay
Copy link

hpay commented Jan 16, 2016

Either with or without the '-nocrop' option, my x axis labels are getting cut off on some plots.
baseW.pdf

Not sure why, they are perfectly visible on the figure window:
picture1

Otherwise, export_fig is perfect. Any ideas? This is my command:

export_fig(fullfile(cd,'results','baseW.pdf'),'-painters','-nocrop')
@JorgeGT
Copy link

JorgeGT commented Feb 7, 2016

I have the same problem. As a temporary fix I suggest you "manually" adjust the axes size like this before exporting, in order to have more white space at the bottom:

ax.Position = ax.Position .* [1 1.5 1 0.9]; % <- where ax is the handle of the bottom axes

Adjust the proportions as you wish, it usually needs a few tries but after that it works.

@hpay hpay closed this as completed Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants