daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.
http://pyntcloud.readthedocs.io
MIT License
1.4k stars 223 forks source link

Fix voxelgrid 2d plotting bug #278

Closed mawall closed 4 years ago

mawall commented 4 years ago

Don't use axes.flat for a single z-dimension. Create z_dim number of subplots for z_dim < 4. Fix if condition and hide remaining subplots for z_dim values that are not divisible by 4.

mawall commented 4 years ago

On an unrelated note: I think cmap='binary' would be nicer for voxel visualisations, especially since the default feature_vector mode is binary too and this would produce a nice figure-ground map.

In general, the single-color maps don't start from pure white, which I find slightly misleading for the density mode, as it suggests that points are uniformly distributed over the feature space.

daavoo commented 4 years ago

Thanks for the contribution @mawall !!