How make the background of pcshow white instead of black?

45 visualizaciones (últimos 30 días)
Jared Strader
Jared Strader el 28 de Mzo. de 2019
Respondida: Mohammad Ebrahim Mohammadi el 21 de Mayo de 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?

Respuestas (2)

Shunichi Kusano
Shunichi Kusano el 28 de Mzo. de 2019
Hi, you also need:
set(gca,'color','w');
  1 comentario
Walter Roberson
Walter Roberson el 28 de Mzo. de 2019
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])

Iniciar sesión para comentar.


Mohammad Ebrahim Mohammadi
Mohammad Ebrahim Mohammadi el 21 de Mayo de 2019
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');
...

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by