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

Save to pdf creates a full page figure #10

Open
zhidayat opened this issue Apr 19, 2015 · 4 comments
Open

Save to pdf creates a full page figure #10

zhidayat opened this issue Apr 19, 2015 · 4 comments
Labels

Comments

@zhidayat
Copy link

Saving a plot into pdf creates a full page pdf file

@masumhabib masumhabib added the bug label Apr 21, 2015
@masumhabib
Copy link
Owner

Yes, this is a bug and I'll look into it.

@brona
Copy link

brona commented Apr 26, 2015

Hi I just experienced this issue (Mac OS X R2014b). Any update/workaround on this?

This is only way how I was able to get smaller papersize (but not working with eps):

set(gcf, 'PaperPosition', [0, 0, BoxDim(1), BoxDim(2)]);
set(gcf, 'PaperSize', BoxDim);
saveas(gcf, 'test', 'pdf');

I even tired print('-dpdf',..), but no luck.

And in the same time fixPSlinestyle corrupts resulting eps so Preview.app can not read it.

@masumhabib
Copy link
Owner

@brona, Unfortunately, fixPSlinestyle does not work with R2014b. Could you comment line # 866 and see if that fixes the issue?

Also, please open a new issue ticket for this (eps) problem.

@brona
Copy link

brona commented May 3, 2015

@masumhabib Just found that .eps is generated correctly but Preview.app renders it wrong (Quick Look in Mac OS X too).
When using epstopdf (in LaTeX) images have correct size - Great! (But sill fixPSlinestyle has to be commented out).

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

3 participants