MATLAB Answers

1

How make the background of pcshow white instead of black?

Asked by Jared Strader on 28 Mar 2019
Latest activity Answered by Mohammad Ebrahim Mohammadi on 21 May 2019
If I use pcshow in MATLAB R2019a, the background is black. How do I make it the standard color? I tried using:
set(gcf,'color','w');
but the figure background is only affected and not the plot background. I don't think the default was black with previous versions of MATLAB for pcshow. Any suggestion?

  0 Comments

Sign in to comment.

2 Answers

Answer by Shunichi Kusano on 28 Mar 2019

Hi, you also need:
set(gca,'color','w');

  1 Comment

If you do this, then the axes itself comes out odd, hardly visible. You may wish to also
set(gca, 'XColor', [0.15 0.15 0.15], 'YColor', [0.15 0.15 0.15], 'ZColor', [0.15 0.15 0.15])

Sign in to comment.



To address this matter in MATLAB 2019a you need to add the following codes after each PCSHOW command. see the below:
...
pntClouddata=pointCloud(data);
pcshow(pntClouddata);
set(gcf,'color','w');
set(gca,'color','w');
...

  0 Comments

Sign in to comment.