K3D-tools / K3D-jupyter

K3D lets you create 3D plots backed by WebGL with high-level API (surfaces, isosurfaces, voxels, mesh, cloud points, vtk objects, volume renderer, colormaps, etc). The primary aim of K3D-jupyter is to be easy for use as stand alone package like matplotlib, but also to allow interoperation with existing libraries as VTK.
MIT License
953 stars 121 forks source link

Missing part on 3D plot #452

Open GiudiceVitor opened 7 months ago

GiudiceVitor commented 7 months ago

I am plotting 3d cubes. Most work fine, but I have found some weird artifacts on some, like this one:

image

Notice we have a missing part on the cube. I checked, and this is not a problem on the data (there are not NaN values, nor 0s). When plotting a single slice of this cube on matplotlib, we get:

image

Notice the black part near y=40 is the missing part on the k3d plot. It's just a part with lower values (close to -0.4) with the exact same value all along.

What would that interaction with k3d be?

artur-trzesiok commented 4 months ago

Hi @GiudiceVitor Can you tell me what k3d object it is. k3d.voxels?

GiudiceVitor commented 4 months ago

It is a k3d.volume

artur-trzesiok commented 4 months ago

@GiudiceVitor can you share data with me? artur.trzesiok@gmail.com

GiudiceVitor commented 4 months ago

I'm afraid I cannot :'( It is sensitive data and tbh I don't recall specifically what data point that was. Sorry. I don't know If this will be too difficult to reproduce, because it is not very common, from my experiment with k3d (happened only with one or two data points only)