I am trying to save the figure with a black background. But Matlab was only able to print it in white. I notice a similar question here:
Save MATLAB figure with different background color
But this does not solve my issue. My code is like this:
scatter3(randn(1000,1),randn(1000,1),randn(1000,1))
set(gca,'color','k')
set(gcf,'color','k')
set(gcf, 'InvertHardCopy', 'off');
I got my axis region black but the background is still white. Can you guys help me out?
I am using Matlab 2013a, if this matters. Thanks in advance!
saveasand now it works! Used to save by hand but failed... Why so different? - HJC