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

m2015a imagesc issue #66

Closed
enigmaldc opened this issue May 10, 2015 · 1 comment
Closed

m2015a imagesc issue #66

enigmaldc opened this issue May 10, 2015 · 1 comment

Comments

@enigmaldc
Copy link

I have used this tool in matlab 2013a and it works perfectly. In matlab 2015a, the exact code gives a issue with exporting imagesc figures with colorbars. It exports, but It always displays a white diagonal stripe from botton left to top right on the colorbar in the pdf. This occurs no matter which colormap I use. (see attached, I took a screenshot of the pdf file)

%code
R = rand(50,50);
figure(111)
imagesc(R)
colormap(hot)
v = colorbar;
axis square
h = gcf;
set(h,'PaperPositionMode','auto');
set(gca,'YDir','normal');
set(h,'Position',[40 40 800 600]);
set(h, 'Color', 'w');
name = [pwd '\figures\error_example' num2str(dataset) '.pdf'];
export_fig(name,'-painters','-q101','-nocrop')

error_ex_1

@altmany
Copy link
Owner

altmany commented May 10, 2015

This is apparently a duplicate of issue #44, due to internal Matlab bug in HG2 [R2014+]

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

No branches or pull requests

2 participants