0

I have a spatial dataset with the center coordinates of cubes with a specific size (20 m), and a variable for color mapping.

I want to plot these cubes in 3D; however, I couldn't find a way to do it. I've tried to implement a voxel code by calculating the corner coordinates of the cubes but got stuck after some point.

The dataset looks like this:

      x       y      z     variable
0   14630   21750   4690    0.087
1   14630   21770   4690    0.046
2   14630   21790   4690    0.045
3   14630   21930   5290    0.1657
4   14630   21950   5270    0.1144

I'm not sure if I should be using ax.voxels or Poly3DCollection. So, if you have any tips, I'd appreciate it.

0 Answers0