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
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')
The text was updated successfully, but these errors were encountered:
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')
The text was updated successfully, but these errors were encountered: